| xtracto_3D {xtractomatic} | R Documentation |
xtracto_3D uses the ERD ERDDAP data web service to extact
environmental data in a given longitude, latitude and time bounding box
xtracto_3D(xpos, ypos, tpos, dtype, verbose = FALSE)
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". |
dtype |
- number or string identfying the ERDDAP parameter to extract |
verbose |
- logical for verbose download output, default FALSE |
structure with data and dimensions:
extract$data - the data array dimensioned (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(230, 231)
ypos <- c(40, 41)
tpos <- c('2006-05-05', '2006-05-06')
extract <- xtracto_3D(xpos, ypos, tpos, 'ncdcOisst2Agg')
extract <- xtracto_3D(xpos, ypos, tpos, 'erdMBsstd8day', verbose=TRUE)