mdbartos / pysheds

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

strang plots #233

Open oraibalmegdadi opened 1 year ago

oraibalmegdadi commented 1 year 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 4 months ago

256

I haven't resolved this issue either.