ContinuumIO / whitebox-geospatial-analysis-tools

An open-source GIS and remote sensing package
http://www.uoguelph.ca/~hydrogeo/Whitebox/
7 stars 7 forks source link

Unrecognized raster type #11

Closed snowman2 closed 7 years ago

snowman2 commented 7 years ago

After downloading the elevation file with quest and running BreachDepression, I see this message: image

dharhas commented 7 years ago

Is this with the notebook I attached. Because that notebook worked on my laptop and Jim's on Thursday. If that notebook doesn't run then it is an install/environment issue. If it does then we need to compare differences.

snowman2 commented 7 years ago

@dharhas, I used the notebook in this PR https://github.com/ContinuumIO/EarthSim/pull/90. The fork is located here: https://github.com/snowman2/EarthSim/tree/gssha

snowman2 commented 7 years ago

@dharhas, can you try the notebook WorkflowGSSHA.ipynb and see if you can get it to work?

dharhas commented 7 years ago

To narrow things down @snowman2 Can you check if the first part of the attached notebook (i.e. until breachdepressions) works for you.

dharhas commented 7 years ago

ok it won't let me attach a notebook...

dharhas commented 7 years ago

@snowman2

I think I got it. It is a difference in our download_data scripts. My notebook always merges and clips the data to a bbox. This has the side effect of converting the raster to a geotiff file. Your download_data function only merges if more than one tile is downloaded.

Whitebox has limited raster support since it doesn't depend on gdal, so it doesn't support the original .img format that is downloaded and hence fails.

snowman2 commented 7 years ago

@dharhas, thanks! I updated the download script to match your behavior so the file is always a tiff as it will be clipped.