This is the recommended function to use for cleanup of a river network. It calls all available river network editing functions in appropriate sequence, detecting which are needed or recommended, and prompts user input wherever necessary.
Currently, it automatically calls removeduplicates, prompts the user whether to run dissolve, automatically runs removemicrosegs and splitsegments if needed, provides user prompts for addverts and setmouth, detects if segments are unconnected and provides user prompts for removeunconnected or connectsegs, automatically runs checkbraidedTF, and prompts the user whether to run buildsegroutes if no braiding is detected.
cleanup(rivers)
rivers | The river network object to use |
---|
A new river network object, see rivernetwork
line2network
data(abstreams0,Koyukuk0,Kenai1) # abstreams_fixed <- cleanup(abstreams0) # Koyukuk <- cleanup(Koyukuk0) # Kenai <- cleanup(Kenai1)