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

Description Usage Arguments Value Examples

View source: R/xtracto_3D.R

Description

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

Usage

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

Arguments

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

Value

structure with data and dimensions:

Examples

1
2
3
4
5
6
7
8
9
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)

xtractomatic documentation built on May 2, 2019, 8:54 a.m.