/misc/soft/local/pygfz/mambaforge/envs/enval/lib/python3.10/site-packages/arosics/CoReg.py:1491: UserWarning: SSIM input array shapes could not be equalized. SSIM calculation failed. SSIM of the de-shifted target image is set to 0. warnings.warn('SSIM input array shapes could not be equalized. SSIM calculation failed. '
Testdatensat: enval1\EnVAL_ID_2\ENMAP01-____L2A-DT0000001226_20220623T025609Z_011_V010201_20230331T142658Z.ZIP
GS destriping implemented: > 01.02.00
I do not understand what happens here (calc_solar_irradiance_CWL_FWHM_per_band(self)), but it does not look like it is convolved correctly to EnMAP CWL and FWHM...
` def calc_solar_irradiance_CWL_FWHM_per_band(self) -> np.array: from ...io.reader import Solar_Irradiance_reader
self.logger.debug('Calculating solar irradiance...')
sol_irr = Solar_Irradiance_reader(path_solar_irr_model=self.cfg.path_solar_irr, wvl_min_nm=350, wvl_max_nm=2500)
irr_bands = []
for band in self.srf.bands:
WVL_band = self.srf.srfs_wvl if self.srf.wvl_unit == 'nanometers' else self.srf.srfs_wvl * 1000
RSP_band = self.srf.srfs_norm01[band]
sol_irr_at_WVL = np.interp(WVL_band, sol_irr[:, 0], sol_irr[:, 1], left=0, right=0)
irr_bands.append(np.round(np.sum(sol_irr_at_WVL * RSP_band) / np.sum(RSP_band), 2))
return np.array(irr_bands)
`