mdbartos / pysheds

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

AttributeError: 'Grid' object has no attribute 'detect_nondraining_flats' #61

Closed hikmet34 closed 5 years ago

hikmet34 commented 5 years ago

Hi @mdbartos

I carried out "messy_dem" recipe.

depressions = grid.detect_nondraining_flats('dem')

AttributeError Traceback (most recent call last)

in 1 # Detect pits ----> 2 depressions = grid.detect_nondraining_flats('dem') AttributeError: 'Grid' object has no attribute 'detect_nondraining_flats'
mdbartos commented 5 years ago

Greetings,

The function was renamed to grid.detect_depressions a couple weeks ago. Docs has updated version: https://mdbartos.github.io/pysheds/dem-conditioning.html

I will change the notebook. I will also look into linking the dataset used for that notebook.

Thanks, MDB

hikmet34 commented 5 years ago

Okay, thank you. Solved the problem.

Thanks, Hikmet