I processed landsat 8 data with Polymer 4.11. And two months ago, I can process landsat8 data successfully, but these days it throw the error as follows:
Code: Select all
Reading coordinates from /home/yanny/graduation_project/try/LC08_L1TP_012031_20171004_20171014_01_T1/LC08_L1TP_012031_20171004_20171014_01_T1_B1.TIF
Image size is 7901x8011
Traceback (most recent call last):
File "./try_landsat8_data1.py", line 15, in <module>
example_landsat8()
File "./try_landsat8_data1.py", line 10, in example_landsat8
Level1_OLI('/home/yanny/graduation_project/try/LC08_L1TP_012031_20171004_20171014_01_T1'),
File "/home/yanny/software/old_polymer-v4.11/polymer/level1_landsat8.py", line 143, in __init__
self.init_ancillary()
File "/home/yanny/software/old_polymer-v4.11/polymer/level1_landsat8.py", line 155, in init_ancillary
self.ozone = self.ancillary.get('ozone', self.date())
File "/home/yanny/software/old_polymer-v4.11/polymer/ancillary.py", line 278, in get
return self.read(param, res)
File "/home/yanny/software/old_polymer-v4.11/polymer/ancillary.py", line 190, in read
hdf = SD(filename)
File "/home/yanny/anaconda3/lib/python3.6/site-packages/pyhdf/SD.py", line 1429, in __init__
_checkErr('SD', id, "cannot open %s" % path)
File "/home/yanny/anaconda3/lib/python3.6/site-packages/pyhdf/error.py", line 23, in _checkErr
raise HDF4Error(err)
pyhdf.error.HDF4Error: SD (15): File is supported, must be either hdf, cdf, netcdf
Code: Select all
l8_angles LC08_..._ANG.txt BOTH 1
Another thing worth to say it that I can successfully run the landsat8 data which I run two months ago, so I guess it's probably not because of the environment.Can someone tell me how to solve it?
Thanks for your help in advance!
Best regards,
southocean