Description Usage Arguments Value Examples
extract.woa
extracts the desired temperature data from a global
dataset derived from monthly gridded climatology data contained in the 2013
World Ocean Atlas
1 | extract.woa(dir, bbox = NULL, resolution)
|
dir |
path to load the global nc file from; specify the complete path to the nc file unless it is in your current working directory |
bbox |
bounding box of form list(long min, long max, lat min, lat max) |
resolution |
indicates whether oceanographic data is gridded at 'quarter' or 'one' degree resolution |
a list containing: DAT is an array of temperature data with dimensions (long, lat, depth, time) depth contains 57 standard depth levels by default and levels are defined in variable 'depth' contained here. time is monthly and spans the entire year. LON/LAT are vectors of lon/lat bounds
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# download WOA data (large RData file!) from GitHub
woa.dir <- paste('my_woa_dir')
get.env(type = 'woa', resol = 'quarter')
# extract desired data based on spatial bounds
woa <- extract.woa(woa.dir, bbox, 'quarter')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.