acolite / acolite_ls2

ACOLITE: Atmospheric correction for aquatic applications of Landsat and Sentinel-2 (obsolete)
GNU General Public License v3.0
42 stars 27 forks source link

Fix bug in EXP correction #10

Closed sakvaka closed 3 years ago

sakvaka commented 3 years ago

Without this modification, the EXP correction fails with "UnboundLocalError: local variable 'band_name' referenced before assignment" as the variable band_name is not defined up to this point. What actually should be tested is if ordered_bands[short_idx] and ordered_bands[long_idx] are in the dictionary or not.

acolite commented 3 years ago

Thanks!