Skip to content

Commit

Permalink
Start exploring options for depth data, #48.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-edwards committed Apr 24, 2024
1 parent 62ab12e commit cb3efc9
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions data-raw/depth/depth.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Create an object of depth values, based on grid26.

load_all()
library(PBSdata) # devtools::install_github("pbs-software/pbs-data/PBSdata")
library(PBSmapping)

grid26 # sf object

vignette('PBSdata-UG', package = "PBSdata")
# Page 5 says:
# Figure 2. Data frame of sea floor topography (Smith and Sandwell, 1997) downloaded from
# TOPEX and reformatted for use by makeTopography in PBSmapping .
# and gives example code. Also
# ?bctopo
# gives the Smith and Sandwell 1997 reference.

# Probably better to use more recent data, and process it once (PBSdata already
# processed values).

# Philina suggested marmap. Looking at first vignette it talks about raster and
# sp packages (but not sf).

# Search on Canadian Hydrographic Service gives S102and111.zip from
# https://www.charts.gc.ca/data-gestion/index-eng.html
# S102/ contains .h5 files. Can read these in using the rhdf5 package
# https://www.bioconductor.org/packages/release/bioc/vignettes/rhdf5/inst/doc/rhdf5.html
# install.packages("BiocManager")
# BiocManager::install("rhdf5")

library(rhdf5) # vignette at
# https://www.bioconductor.org/packages/release/bioc/vignettes/rhdf5/inst/doc/rhdf5.html
a <- H5Fopen("S102_S111sample/S102/102CA0024600N07100W.h5")

0 comments on commit cb3efc9

Please sign in to comment.