openSTARS (version 1.0.0)

assign_binIDs: Recursive function to assign binary id to stream segments Should be run for all outlets in the network ( = most downstream segments) and fills the binID for all segments

Description

Recursive function to assign binary id to stream segments Should be run for all outlets in the network ( = most downstream segments) and fills the binID for all segments

This function is run for all outlets in the network ( = most downstream segments) and fills the binID for all segments. It is called by calc_binary in export_ssn and should not be called by the user.

Usage

assign_binIDs(dt, id, binID, lastbit)

assign_binIDs(dt, id, binID, lastbit)

Arguments

id:

stream segment

binID:

binary ID

lastbit:

last char to be added (0 or 1)

id:

stream segment

binID:

binary ID

lastbit:

last char to be added (0 or 1)