mdbartos / pysheds

:earth_americas: Simple and fast watershed delineation in python.
GNU General Public License v3.0
706 stars 191 forks source link

RFSM for a point source #136

Closed joeshuttleworth closed 2 years ago

joeshuttleworth commented 3 years ago

Hi - does anyone know if it is possible to run RFSM flooding for a point source as opposed to a uniform distribution of water?

Thanks

mdbartos commented 3 years ago

Greetings,

You should be able to specify a point source using an appropriately-defined input_vol array as shown here: https://github.com/mdbartos/pysheds/blob/master/examples/rfsm.ipynb

The example uses a uniform water distribution by using np.ones to define the array (i.e. water at every pixel). But you can specify a custom array to input water at any subset of pixels you'd like.

Thanks, MDB