| xtracto {xtractomatic} | R Documentation |
xtracto uses the ERD ERDDAP data web service to extact environmental
data along a longitude, latitude and time trajectory
xtracto(xpos, ypos, tpos, dtype, xlen, ylen, verbose = FALSE)
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 |
A dataframe containing:
column 1 = mean of data within search radius
column 2 = standard deviation of data within search radius
column 3 = number of points found within search radius
column 4 = time of returned value
column 5 = min longitude of call (decimal degrees)
column 6 = max longitude of call (decimal degrees)
column 7 = min latitude of call (decimal degrees)
column 8 = max latitude of call (decimal degrees)
column 9 = requested time in tag
column 10 = median of data within search radius
column 11 = median absolute deviation of data within search radius
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)