Skip to contents

Crop DAP file

Usage

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

Arguments

URL

local file path or URL

catalog

subset of open.dap catalog

AOI

an sf of SpatVect point or polygon to extract data for

startDate

a start date given as "YYYY-MM-DD" to extract data for

endDate

an end date given as "YYYY-MM-DD" to extract data for

start

for non "dated" items, start can be called by index

end

for non "dated" items, end can be called by index

varname

variable name to extract (e.g. tmin)

verbose

Should dap_summary be printed?

Value

data.frame