file_toopen = /home/cneto/Downloads/201407020000.nc params = dict( filename = file_toopen, field = 'Band1 GDAL Band Number', coordinateSystem = LATLON, latLonBounds=(15,-75,-58,-24), ) sat = loadFile(**params)
I get the following error :
Traceback (most recent call last): File "<string>", line 33, in <module> File "<string>", line 2867, in loadFile AttributeError: 'NoneType' object has no attribute 'subset'
I can load and display the file manually with no problema
I'm missing something? How can i open the file? the file is aattached
It looks like the only problem in your script is that the field keyword is specified incorrectly. field= is supposed to be the field's shortname. In this case, it should simply be:
... here, Band1 is the shortname, and GDAL Band Number 1 is the longname.
Just as a note, we're aware that the error message you saw doesn't specifically point towards an invalid entry for field=. loadFile is still a work in progress, and better error handling is something that will be addressed.