Open itcarroll opened 5 years ago
I think this is a bug.
It looks like one of your input rasters has integer cells (possibly your dtm) where malstroem expected float32 cells.
You can cast that raster to float32 and it will hopefully work.
Yep, I can bypass the error with gdal_translate -ot Float32 ...
. This solves my problem, I'll leave the issue open in case you plan to look into the bug.
I think we should consider if we can safely do the cast in malstroem.
Otherwise we should show a better error message to the user.
I have installed malstroem from your fork on a linux platform, but cannot run the given example successfully. I don't know how C extensions for Python work, so I'm at a loss to debug this. Is there additional information I could provide to help?
Versions Ubuntu==16.04 Python==3.5.2 numpy==1.16.2 Cython==0.29.6 click-log=0.1.8 GDAL==2.1.3 scipy==1.2.1