Subset Hydrofabric Network
Usage
subset_network(
id = NULL,
comid = NULL,
hl_uri = NULL,
nldi_feature = NULL,
xy = NULL,
base_s3 = "s3://lynker-spatial/pre-release/",
base_dir = NULL,
lyrs = c("divides", "nexus", "flowpaths", "network", "hydrolocations",
"reference_flowline", "reference_catchment", "refactored_flowpaths",
"refactored_divides"),
outfile = NULL,
cache_dir = NULL,
qml_dir = system.file("qml", package = "hydrofabric"),
cache_overwrite = FALSE
)
Arguments
- id
hydrofabric id (relevant only to nextgen fabrics)
- comid
NHDPlusV2 COMID
- hl_uri
hydrolocation URI (relevant only to nextgen fabrics)
- nldi_feature
list with names 'featureSource' and 'featureID' where 'featureSource' is derived from the "source" column of the response of dataRetrieval::get_nldi_sources() and the 'featureID' is a known identifier from the specified 'featureSource'.
- xy
Location given as vector of XY in CRS 4326 (long, lat)
- base_s3
the base hydrofabric directory to access in Lynker's s3
- base_dir
the base hydrofabric directory
- lyrs
layers to extract. Default is all possible in the hydrofabric GPKG data model
- outfile
file path to write to. Must have ".gpkg" extension
- cache_dir
should data be cached to a local directory? Will speed up multiple subsets in the same region
- cache_overwrite
description. Should a cached file be overwritten