Run checks on an API request object
ca_preflight(
x,
slug_check = TRUE,
date_check = TRUE,
loc_check = TRUE,
units_check = TRUE,
spag_check = TRUE,
check_for = c("getvals", "getrst"),
quiet = FALSE,
ignore_spag = deprecated()
)
A Cal-Adapt API request
Cross check the slug against the raster series catalog
Cross check the start and end date against the raster series catalog
Check to make sure the location is within the Cal-Adapt coverage area
Check for consistent units
Check spatial aggregation option
What to check for - getting values or getting rasters
Suppress messages
Deprecated
TRUE if no messages are reported, else FALSE
This function checks an Cal-Adapt API request for potential problems. It checks to make sure the request:
is complete
doesn't have conflicting elements
specifies an existing datasets
specifies a location within the Cal-Adapt coverage area
specifies area-of-interest presets correctly
has features that are not too large for the Cal-Adapt API
doesn't mix datasets that have different units
uses dates that fall within the Cal-Adapt time series
includes a spatial aggregation function if needed
Most of the checks can be selectively disabled using arguments. check_for
allows you to tailor checks for
querying values and/or downloading rasters.