Package 'reference.fabric'

Title: Hydrological Reference Fabric Tools
Description: Development tools and `targets` pipeline for generating a national hydrological geospatial reference fabric.
Authors: Mike Johnson [aut] , Justin Singh-Mohudpur [cre]
Maintainer: Justin Singh-Mohudpur <[email protected]>
License: GPL (>= 3)
Version: 1.0.0.9000
Built: 2024-12-19 22:20:50 UTC
Source: https://github.com/lynker-spatial/reference.fabric

Help Index


Make Reference Fabric

Description

Make Reference Fabric

Usage

make_fabric(...)

Arguments

...

Additional arguments passed to tar_make.


Burnline Events Processing Target

Description

Processes burn line events according to step 4.3.1

Usage

rf.targets.burnline_events(nhd_gdb, rf_vaa, dir_data)

Arguments

nhd_gdb

Path to NHDPlus Seamless GeoDatabase

rf_vaa

NHD Value-added attributes table

dir_data

Data output directory

Value

Path to outputted burn line events file for CONUS


Clean Catchments Target

Description

Processes catchments according to steps 4.2.1 - 4.2.3.

Usage

rf.targets.clean_catchment(cat_info, simplify_keep = 0.2)

Arguments

cat_info

data.frame containing path information for catchments and flowlines

simplify_keep

Tolerance value for weighted Visvalingam simplification

Value

Path to cleaned catchment output (cat_info$outfile).


Clean Flowlines Target

Description

Processes flowlines according to step 4.3.2

Usage

rf.targets.clean_flowlines(
  flowlines_path,
  rf_cat_paths,
  rf_ble_path,
  rf_vaa,
  rf_enhd,
  dir_cleaned
)

Arguments

flowlines_path

Path to NHD flowlines file

rf_cat_paths

Path to reference catchment outputs

rf_ble_path

Path to CONUS burn line events file

rf_vaa

NHDPlus-VAA table

rf_enhd

E2NHDPlus River Attributes table

dir_cleaned

Cleaned output directory

Value

Path to cleaned flowlines


Clean Waterbodies Target

Description

Processes waterbodies according to steps 4.1.1 - 4.1.6.

Usage

rf.targets.clean_waterbodies(waterbodies_path, dir_cleaned)

Arguments

waterbodies_path

Path to unmodified NHDWaterbody file

dir_cleaned

Directory to output cleaned waterbody geometry

Value

Path to cleaned waterbodies


Catchment VPU Rectification Target

Description

Processes VPU rectification of cleaned catchments according to step 4.2.4.

Usage

rf.targets.rectify_catchment_borders(
  cat_cleaned_paths,
  vpu_topology,
  dir_reference
)

Arguments

cat_cleaned_paths

Paths to cleaned catchment files

vpu_topology

data.frame containing topology definition for VPUs

dir_reference

Output directory for reference features

Value

List of catchment output paths

Note

This process is highly data-dependent, so we must process it sequentially.


Catchments Reference Output Target

Description

Processes remaining catchment steps according to step 4.2.5.

Usage

rf.targets.reference_catchments(rf_cat_path)

Arguments

rf_cat_path

Path to VPU-rectified catchment

Value

Path to outputted reference catchment

FIXME

Snap to underlying grid with size of .0009?


Reference Flowlines Target

Description

Processes flowlines according to step 4.3.3

Usage

rf.targets.reference_flowlines(nhd, vpu, rf_enhd_comid, dir_reference)

Arguments

nhd

Path to cleaned flowlines

vpu

Current VPU for nhd.

rf_enhd_comid

COMIDs with E2NHDPlus river attributes

dir_reference

Reference output directory

Value

Path to reference flowlines


Process Reference Waterbodies Target

Description

Processes cleaned waterbodies according to steps 4.1.7 - 4.1.9.

Usage

rf.targets.reference_waterbodies(wb_clean, wb_vpu, wb_reference_dir)

Arguments

wb_clean

Path to cleaned waterbodies file

wb_vpu

The corresponding VPU of wb_clean

wb_reference_dir

Directory to output reference waterbodies

Value

Path to reference waterbodies

FIXME

On/off network waterbodies based on NHD flowlines?