xtracto_3D
uses the ERD ERDDAP data web service to extact
environmental data in a given longitude, latitude and time bounding box
xtracto_3D(dtype, xpos, ypos, tpos = NA, verbose = FALSE)
dtype | - number or string identifying the ERDDAP parameter to extract |
---|---|
xpos | - 2-element array giving min and max longitude (in decimal degrees East, either 0-360 or -180 to 180) |
ypos | - 2-element array giving min and max latitude (in decimal degrees N; -90 to 90) |
tpos | - 2-element array giving min and max time (specify both minimum and maximum dates). For the last available time, use "last". Default NA. |
verbose | - logical for verbose download output, default FALSE |
structure with data and dimensions:
extract$data - the data array dimensions (lon,lat,time)
extract$varname - the name of the parameter extracted
extract$datasetname - ERDDAP dataset name
extract$longitude - the longitudes on some scale as request
extract$latitude - the latitudes always going south to north
extract$time - the times of the extracts
xpos <- c(-130., -125.) ypos <- c(30., 35.) tpos <- c('2015-01-16', '2015-02-16') extract <- xtracto_3D('mhsstdmday', xpos, ypos, tpos = tpos)xpos <- c(230, 231) ypos <- c(40, 41) tpos <- c('2006-05-05', '2006-05-06') extract <- xtracto_3D('erdMBsstd8day', xpos, ypos, tpos = tpos, verbose=TRUE)#> Downloading: 10 B Downloading: 10 B Downloading: 10 B Downloading: 10 B Downloading: 10 B Downloading: 10 B Downloading: 8 kB Downloading: 8 kB Downloading: 8 kB Downloading: 8 kB Downloading: 8 kB Downloading: 8 kB Downloading: 8.2 kB Downloading: 8.2 kB Downloading: 8.2 kB Downloading: 8.2 kB Downloading: 8.2 kB Downloading: 8.2 kB Downloading: 10 kB Downloading: 10 kB Downloading: 10 kB Downloading: 10 kB Downloading: 10 kB Downloading: 10 kB Downloading: 10 kB Downloading: 10 kB