mtop / speciesgeocoder

Species locality data + polygons -> nexus file.
GNU General Public License v3.0
39 stars 21 forks source link

Tiff file does not exist #27

Closed mtop closed 10 years ago

mtop commented 10 years ago

[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'

mtop commented 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.