Query NIMS cameras and enrich with NWIS site metadata
Source:R/find_gage_cameras.R
find_gage_cameras.RdCalls find_cameras() for the given NWIS site ID, then joins the result
with site metadata from dataRetrieval::read_waterdata_monitoring_location().
Optionally appends a data_types list-column with the available time series
at the site via get_site_data_availability().
Requires the dataRetrieval package.
Arguments
- site_id
Character. A single 8-to-15-digit NWIS site number (e.g.
"05366800").- include_availability
Logical. When
TRUE(default), adata_typeslist-column is appended containing a tibble of available time series for the site (fromget_site_data_availability()). Set toFALSEto skip this extra API call and return only the camera and site metadata.
Value
A tibble with all camera columns from find_cameras() plus
these site metadata columns when available: monitoring_location_name,
state_name, county_name, hydrologic_unit_code, drainage_area
(total drainage area in square miles), and altitude (elevation in feet
above the stated vertical datum). When include_availability = TRUE,
a data_types list-column is also included; each element is a tibble
with columns from get_site_data_availability().