extract.woa: Extract temperatures from World Ocean Atlas

Description Usage Arguments Value Examples

View source: R/extract.woa.r

Description

extract.woa extracts the desired temperature data from a global dataset derived from monthly gridded climatology data contained in the 2013 World Ocean Atlas

Usage

1
extract.woa(dir, bbox = NULL, resolution)

Arguments

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

Value

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

Examples

 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)

HMMoce documentation built on Nov. 17, 2017, 5:57 a.m.