-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type casting problems with SRTM DEM #5
Comments
@mbjoseph I'll have a look later today. I'd rather not intentionally cast unsafely, I'll see if there's another fix. Thanks for finding this! I haven't kept up with changes in numpy -- evidently. Are you up and running at least? Are you on a windows machine? |
Your fix with 311d217 worked beautifully, thanks! Also I was able to replicate this on OSX and Ubuntu - I haven't tried on a Windows machine. |
Excellent, I'll push it into master for the next release. |
I was hoping to compute slope and aspect for some digital elevation models from the NASA SRTM mission, and ran into a type error that seems to be related to the _find_flats_edges function.
Here's a reproducible example Jupyter notebook that demonstrates the problem: https://gist.github.com/mbjoseph/9934454330b5715db9529502cf415f72#file-pydem-srtm-example-ipynb
A TypeError is raised:
It seems like similar issues have arisen elsewhere, e.g., numpy/numpy#7225
The text was updated successfully, but these errors were encountered: