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
xtracto(xpos, ypos, tpos, dtype, xlen, ylen, verbose = FALSE)

Arguments

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

- a character array with the times of the trajectory in "YYYY-MM-DD"

dtype

- number or string identfying the ERDDAP parameter to extract

xlen

- real array defining the longitude box around the given point (xlen/2 around the point)

ylen

- real array defining the latitude box around the given point (tlen/2 around the point)

verbose

- logical for verbose download out, default FALSE

Value

A dataframe containing:

Examples

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

extract <- xtracto(xpos, ypos,tpos, 'erdMBsstd8day', xlen, ylen, verbose = TRUE)

xtractomatic documentation built on May 29, 2017, 12:30 p.m.