reconcile_catchment_divides: Reconcile Catchment Divides

View source: R/reconcile.R

reconcile_catchment_dividesR Documentation

Reconcile Catchment Divides

Description

Reconciles catchment divides according to the output of reconcile_collapsed_flowlines and refactor_nhdplus

Usage

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
)

Arguments

catchment

sf data.frame NHDPlus Catchment or CatchmentSP layers for included COMIDs

fline_ref

sf data.frame flowlines as returned by refactor_nhdplus and reconcile_collapsed_flowlines

fline_rec

sf data.frame flowpaths as returned by reconcile_collapsed_flowlines

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 ms_simplify. Set to NULL to skip simplification.

Details

Note that all inputs must be passed in the same projection.

Value

Catchment divides that have been split and collapsed according to input flowpaths

See Also

The refactor_nhdplus function implements a complete workflow using 'reconcile_collapsed_flowlines()' and can be used in prep for this function.


dblodgett-usgs/hyRefactor documentation built on Oct. 14, 2024, 12:59 p.m.