dap_crop: Crop DAP file

View source: R/dap_crop.R

dap_cropR Documentation

Crop DAP file

Description

Crop an OpenDAP resource file to a given AOI and time bound

Usage

dap_crop(
  URL = NULL,
  catalog = NULL,
  AOI = NULL,
  startDate = NULL,
  endDate = NULL,
  varname = NULL,
  verbose = TRUE
)

Arguments

URL

local file path or dodC URL

catalog

subset of open.dap catalog

AOI

sf object

startDate

start date (YYYY-MM-DD)

endDate

end date (YYYY- MM-DD)

varname

name of variable to extract. If NULL, then get all

verbose

Should dap_summary be printed?

Details

if AOI is NULL no spatial crop is executed. If startDate AND endDate are NULL, no temporal crop is executed. If just endDate is NULL it defaults to the startDate.

Value

data.frame


mikejohnson51/opendap.catalog documentation built on Jan. 27, 2023, 1:25 a.m.