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 33 forks source link

ERROR in create_aoi_grid.py #36

Open XiaoXiaoLeisure opened 2 years ago

XiaoXiaoLeisure commented 2 years ago

Dear KMarket, I followed the software installation instructions and the VICsetup commands.

However, when I Run the command: $ python create_aoi_grid.py ../data/input/gis/Nyando_basin.shp ../data/input/gis/Nyando_grid.tif 0.05

I met an errorr: IOError: Raster file input error, check that all paths are correct. But I checked my input file path and it is correct. Then I changed the path in the command line into an absolute path, which didn't work out. /Nyando_basin/data/input/gis/Nyando_basin.shp

Looking forward to your reply!

KMarkert commented 2 years ago

You have a / at the beginning of the path. This signifies an absolute path from the beginning of the directory structure. If you meant to use a relative path, please remove the initial / and try again.