mdbartos / pysheds

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

strang plots #233

Open oraibalmegdadi opened 8 months ago

oraibalmegdadi commented 8 months ago

Hi, I following the tutolrail from here (https://www.esipfed.org/merge/community-fellow-blog/pysheds-a-fast-open-source-digital-elevation-model-processing-library). I am following the exact code, I only added this code to crop the dem file:

xmin = -8.98468252990038
ymin = 41.074313083534335
xmax = -6.902773350212881
ymax = 42.304872816149896
with rasterio.open(DEMfile_path) as src:
    window = src.window(xmin, ymin, xmax, ymax)
    dem_cropped = src.read(1, window=window)

I am using this dem : https://drive.google.com/file/d/1DywF3erKEUvaAH39lH1haXlWfUDaL3fr/view?usp=sharing

I get this dem

image

Then I have these strange plots for the flow direction,

image image

Is there an explanination for these plots? Thanx Oraib

mht2953658596 commented 2 days ago

256

I haven't resolved this issue either.