xtracto_3D {xtractomatic}R Documentation

Extract environmental data in a 3-D bounding box using ERDDAP.

Description

xtracto_3D uses the ERD ERDDAP data web service to extact environmental data in a given longitude, latitude and time bounding box

Usage

xtracto_3D(xpos, ypos, tpos, dtype, verbose = FALSE)

Arguments

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

Value

structure with data and dimensions:

Examples

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)


[Package xtractomatic version 3.3.2 Index]