xtracto: Extract environmental data along a trajectory using ERDDAP.

Description Usage Arguments Value Examples

View source: R/xtracto.R

Description

xtracto uses the ERD ERDDAP data web service to extact environmental data along a longitude, latitude and time trajectory

Usage

1
2
xtracto(dtype, xpos, ypos, tpos = NA, xlen = 0, ylen = 0,
  verbose = FALSE)

Arguments

dtype

- number or string identifying the ERDDAP parameter to extract

xpos

- a real array with the longitudes of the trajectory (in decimal degrees East, either 0-360 or -180 to 180)

ypos

- a real array with the latitudes of the trajectory (in decimal degrees N; -90 to 90)

tpos

- character array with the times of the trajectory in "YYYY-MM-DD". Default is NA for no time.

xlen

- optional real array defining the longitude box around the given point (xlen/2 around the point). Default 0.

ylen

- optional real array defining the latitude box around the given point (tlen/2 around the point). Default 0.

verbose

- optional logical for verbose download out, default FALSE

Value

A dataframe containing:

Examples

1
2
3
4
5
6
xpos <- c(230, 235)
ypos <- c(40, 45)
tpos <- c('2006-01-15', '2006-01-20')
xlen <- 0.025
ylen <- 0.025
extract <- xtracto('erdMBsstd8day', xpos, ypos, tpos = tpos, xlen = xlen, ylen = ylen)

xtractomatic documentation built on Jan. 10, 2018, 1:06 a.m.