"NameError: name 'polymer_ac_enmap' is not defined" in case acwater is installed but polymer is missing
If ACWater is installed but polymer is missing, the expected behavior should be to raise a warning and continue with the atmospheric correction in the "land" mode. Instead, a NameError is raised:
../enpt/execution/controller.py:184: in run_all_processors
self.run_atmospheric_correction()
../enpt/execution/controller.py:152: in run_atmospheric_correction
self.L1_obj.run_AC()
../enpt/model/images/images_sensorgeo.py:857: in run_AC
AC = AtmosphericCorrector(config=self.cfg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <enpt.processors.atmospheric_correction.atmospheric_correction.AtmosphericCorrector object at 0x7fbf90744220>
config = {'general_opts': {'CPUs': 32,
'average_elevation': 0,
'create_logfile': True,
...rradiance/SUNp1fontenla__350-2500nm_@0.1nm_converted.txt',
'scale_factor_toa_ref': 10000}}}
def __init__(self, config: EnPTConfig = None):
"""Create an instance of AtmosphericCorrector."""
self.cfg = config
> self.is_polymer_installed = polymer_ac_enmap is not None
E NameError: name 'polymer_ac_enmap' is not defined