[SICOR AC] IndexError: index 0 is out of bounds for axis 0 with size 0
@nbohn It seems like we currently have an issue with the first guess WV retrieval implemented in SICOR. This was reported by Dagmar Müller, I guess with a recently acquired EnMAP scene. Might be related to the latest changes in the L1 processing of the ground segment which masked a few more bands. Probably, it is also related to #90 (closed).
2022/12/08 15:25:15: Performing first guess water vapor retrieval based on a common band ratio using VNIR data...
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/dagmar/micromamba/envs/enpt_full2/lib/python3.9/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/home/dagmar/micromamba/envs/enpt_full2/lib/python3.9/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/home/dagmar/micromamba/envs/enpt_full2/lib/python3.9/site-packages/sicor/Tools/EnMAP/first_guess.py", line 205, in _compute_wv
_globs["rhos"][idx_high[0][0]] - _globs["rhos"][idx_low[0][-1]])
IndexError: index 0 is out of bounds for axis 0 with size 0
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/dagmar/micromamba/envs/enpt_full2/bin/enpt", line 10, in <module>
sys.exit(main())
File "/home/dagmar/micromamba/envs/enpt_full2/lib/python3.9/site-packages/enpt/cli.py", line 225, in main
parsed_args.func(get_config(parsed_args))
File "/home/dagmar/micromamba/envs/enpt_full2/lib/python3.9/site-packages/enpt/cli.py", line 193, in run_job
CTR.run_all_processors()
File "/home/dagmar/micromamba/envs/enpt_full2/lib/python3.9/site-packages/enpt/execution/controller.py", line 184, in run_all_processors
self.run_atmospheric_correction()
File "/home/dagmar/micromamba/envs/enpt_full2/lib/python3.9/site-packages/enpt/execution/controller.py", line 152, in run_atmospheric_correction
self.L1_obj.run_AC()
File "/home/dagmar/micromamba/envs/enpt_full2/lib/python3.9/site-packages/enpt/model/images/images_sensorgeo.py", line 858, in run_AC
AC.run_ac(self)
File "/home/dagmar/micromamba/envs/enpt_full2/lib/python3.9/site-packages/enpt/processors/atmospheric_correction/atmospheric_correction.py", line 250, in run_ac
self._run_AC__land_mode(enmap_ImageL1)
File "/home/dagmar/micromamba/envs/enpt_full2/lib/python3.9/site-packages/enpt/processors/atmospheric_correction/atmospheric_correction.py", line 129, in _run_AC__land_mode
sicor_ac_enmap(enmap_l1b=enmap_ImageL1,
File "/home/dagmar/micromamba/envs/enpt_full2/lib/python3.9/site-packages/sicor/sicor_enmap.py", line 87, in sicor_ac_enmap
fo_enmap = Fo(enmap_l1b=enmap_l1b, options=options, logger=logger)
File "/home/dagmar/micromamba/envs/enpt_full2/lib/python3.9/site-packages/sicor/AC/RtFo_3_phases.py", line 753, in __init__
self.cwv_fg = wv_band_ratio(data=self.data_vnir, water_msk=self.water_mask_vnir, fn_table=self.fn_table,
File "/home/dagmar/micromamba/envs/enpt_full2/lib/python3.9/site-packages/sicor/Tools/EnMAP/first_guess.py", line 177, in wv_band_ratio
results.get()
File "/home/dagmar/micromamba/envs/enpt_full2/lib/python3.9/multiprocessing/pool.py", line 771, in get
raise self._value
IndexError: index 0 is out of bounds for axis 0 with size 0