jtgilbert / SeRFE

Sediment Routing and Floodplain Exchange model.
2 stars 1 forks source link

slope bottlenecks #3

Open jtgilbert opened 5 years ago

jtgilbert commented 5 years ago

If there is a sudden drop in slope between two segments it creates a huge storage bottleneck.

jtgilbert commented 5 years ago

trying this fix:

for i in network.index:
    ds = topo.get_next_reach(i)
    if ds is None:
        ds = topo.get_next_chain(i)

    if ds is not None:
        if network.loc[ds, 'Slope'] <= 0.5 * network.loc[i, 'Slope']:
            network.loc[ds, 'Slope'] = 0.5 * network.loc[i, 'Slope']
jtgilbert commented 5 years ago

fix helps but hasn't been pushed yet.