r-barnes / faster-unmixer

A faster implementation of the sediment inverse/unmixing scheme proposed in Lipp et al (2021).
5 stars 1 forks source link

Add "distance_to_downstream_node" as attribute to SampleNode object in pyfastunmix #39

Open AlexLipp opened 1 year ago

AlexLipp commented 1 year ago

Some tracers are non-conservative and could, reasonably, be modelled as decaying in the river system as an exponential decay through time. To consider this exponential decay in this scheme we need to account for this decay. If, for a node X that flows into Y, we can calculate the distance of the flow-path that connects them, we can approximate the exponential decay that may occur in the transport between these nodes. faster-unmixer.cpp builds the network by iterating upstream and building the network as it goes. In doing so, is it possible @r-barnes to store how many pixels have been traversed between node X and Y and store this as an attribute on the (upstream) node?