fastscape-lem / fastscapelib

A C++/Python library of efficient algorithms for landscape evolution modeling
http://fastscapelib.readthedocs.io
GNU General Public License v3.0
36 stars 6 forks source link

Support masked (raster) grids #126

Open benbovy opened 1 year ago

benbovy commented 1 year ago

This would be useful for modeling non-rectangular domains (e.g., single catchment, volcanic island, etc.) using uniform, raster grids.

This would require an additional node_status label value for skipping nodes that are outside of the domain.

Regarding diffusion_adi_eroder, it only supports solving for the whole grid but I guess one workaround would be to interpolate or extrapolate elevations for each row (column) from the domain boundaries to the grid borders before running the solver in each direction.