mdbartos / pysheds

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

Issue with Catchment #89

Closed ayebiahwea closed 2 years ago

ayebiahwea commented 5 years ago

Hello,

I am using a Ghana TIFF(attached) to perform the Rapid Flood Spilling Model for a final class project. However, I get an error whenever I specify any pour points to delineate catchment from the flow direction.

Can you please help to get over this step? The error that I get is below as well. image

Below is the folder with the python code and the Ghana Tiff file Elevation.zip

Thanks, Anthony.

mdbartos commented 5 years ago

Make sure that the 'blockxsize' is argument is less than the horizontal dimensions of the raster. Similarly, 'blockysize' has to be less than the vertical dimensions of your raster. So for instance, try setting blockxsize to 16.

See also: https://github.com/mdbartos/pysheds/issues/60

mdbartos commented 2 years ago

Please reopen if the issue persists.