reconcile_catchment_divides | R Documentation |
Reconciles catchment divides according to the output of
reconcile_collapsed_flowlines
and refactor_nhdplus
reconcile_catchment_divides(
catchment,
fline_ref,
fline_rec,
fdr = NULL,
fac = NULL,
para = 2,
cache = NULL,
min_area_m = 800,
snap_distance_m = 100,
simplify_tolerance_m = 40,
vector_crs = 5070,
fix_catchments = TRUE,
keep = 0.9
)
catchment |
sf data.frame NHDPlus Catchment or CatchmentSP layers for included COMIDs |
fline_ref |
sf data.frame flowlines as returned by
|
fline_rec |
sf data.frame flowpaths as returned by
|
fdr |
character path to D8 flow direction |
fac |
character path to flow accumulation |
para |
integer numer of cores to use for parallel execution |
cache |
path .rda to cache incremental outputs |
min_area_m |
minimum area in m^2 to filter out slivers (caution, use with care!!) |
snap_distance_m |
distance in meters to snap SpatRaster generated geometry to polygon geometry |
simplify_tolerance_m |
dTolerance in meters for simplification of grid-cell based polygons |
vector_crs |
integer or object compatible with sf::st_crs coordinate reference. Should be a projection that supports area-calculations. |
fix_catchments |
logical. should catchment geometries be rectified? |
keep |
Only applicable if fix_catchments = TRUE. Defines the proportion
of points to retain in geometry simplification (0-1; default 0.05).
See |
Note that all inputs must be passed in the same projection.
Catchment divides that have been split and collapsed according to input flowpaths
The refactor_nhdplus
function implements a complete
workflow using 'reconcile_collapsed_flowlines()' and can be used in prep
for this function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.