spectralpython / spectral

Python module for hyperspectral image processing
MIT License
574 stars 139 forks source link

`EcostressDatabase` imports `Instrument` field incorrectly #146

Closed MattWenham closed 1 year ago

MattWenham commented 2 years ago

Due to a change in the filename format, EcostressDatabase currently imports the Instrument field incorrectly. The fix would appear to be to change line 197 of ecostress.py to read:

instrument = os.path.basename(f).split('.')[-3]

My apologies, I can't put this into a PR as my employer does not allow me to contribute to Open Source projects 😕

tboggs commented 1 year ago

Thanks for the suggested fix. With which version of Ecostress did you encounter this?

MattWenham commented 1 year ago

Appears to be v1.0, the current version: https://speclib.jpl.nasa.gov/