openSTARS (version 1.2.2)

assign_binIDs: assign_binIDs Recursive function to assign binary id to stream segments

Description

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)