dap: Get Data (Data Access Protocol)

View source: R/dap.R

dapR Documentation

Get Data (Data Access Protocol)

Description

this function provides a consistent data access protocol (dap) to a wide range of local and remote resources including VRT, TDS, NetCDF

Define and get data from a DAP resource

Usage

dap(
  URL = NULL,
  catalog = NULL,
  AOI = NULL,
  startDate = NULL,
  endDate = NULL,
  varname = NULL,
  grid = NULL,
  start = NULL,
  end = NULL,
  toptobottom = FALSE,
  ID = 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

varname

variable name to extract (e.g. tmin)

grid

a list containing an extent (), and crs

start

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

end

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

toptobottom

should data be inverse?

ID

a column of unique identifiers

verbose

Should dap_summary be printed?

Details

Wraps dap_get and dap_crop into one. 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

See Also

Other dap: .resource_grid(), .resource_time(), climater_dap(), climater_filter(), dap_crop(), dap_get(), dap_meta(), dap_summary(), dap_to_local(), dap_xyzv(), extract_sites(), get_data(), go_get_dap_data(), grid_meta(), make_ext(), make_vect(), merge_across_time(), parse_date(), read_dap_file(), read_ftp(), time_meta(), try_att(), var_to_terra(), variable_meta(), vrt_crop_get()


mikejohnson51/climateR documentation built on March 27, 2024, 5:31 p.m.