Closed mtop closed 10 years ago
I have added a try/except statement that instead returns the following error message:
[mtop@albiorix speciesgeocoder]$ phylogeocoder -l /usr/local/git/geocoder/example_data/localities.csv -p /usr/local/git/geocoder/example_data/polygons.txt -t /usr/local/git/geocoder/elevation_data/test/Gotland.tif ERROR 4: `/usr/local/git/geocoder/elevation_data/test/Gotland.tif' does not exist in the file system, and is not recognised as a supported dataset name.
[ Error ] No such file '/usr/local/git/geocoder/elevation_data/test/Gotland.tif' [mtop@albiorix speciesgeocoder]$
Good enough for now.
[mtop@albiorix geocoder]$ ./phylogeocoder -l devel_data/localities-2.csv -p devel_data/polygons.ELEV.txt -t /usr/local/git/geocoder/elevationdata/.tif ERROR 4: `/usr/local/git/geocoder/elevationdata/.tif' does not exist in the file system, and is not recognised as a supported dataset name.
Traceback (most recent call last): File "./geocoder.py", line 496, in
main()
File "./geocoder.py", line 414, in main
index = indexTiffs(args.tif)
File "/home/mtop/git/geocoder/lib/readGeoTiff.py", line 125, in indexTiffs
tifObj = geoTiff(my_file)
File "/home/mtop/git/geocoder/lib/readGeoTiff.py", line 33, in init
self.width = ds.RasterXSize
AttributeError: 'NoneType' object has no attribute 'RasterXSize'