KMarkert / servir-vic-training

Training materials for the VIC hydrologic model setup developed for the @SERVIR program
GNU General Public License v3.0
36 stars 32 forks source link

snap_raster.py: 'Error setting output data type' #5

Closed Tarikbouram closed 6 years ago

Tarikbouram commented 6 years ago

Hello I'v been trying lately to use your Nyando basin tutorial, to familiarize myself with the VIC model. I encounter this issue with the 'snap_raster.py' command: " python snap_raster.py ../data/input/gis/Nyando_basin_SRTM_filled.tif ../data/input/gis/Nyando_basin_SRTMSnap.tif ../data/input/gis/Nyando_grid.tif True bilinear Traceback (most recent call last): File "snap_raster.py", line 143, in main() File "snap_raster.py", line 137, in main snap_raster(sys.argv[1],sys.argv[2],sys.argv[3],sys.argv[4],sys.argv[5]) File "snap_raster.py", line 74, in snap_raster raise KeyError('Error setting output data type') KeyError: 'Error setting output data type'

"

KMarkert commented 6 years ago

The original script was expecting the input raster to be of a specific data type. The script has been updated in the repo to fix this problem. Please try using it again with the updated script and post results.

Tarikbouram commented 6 years ago

I used the updated script and there are no problems reported with snap_raster.py. Thank you