From c36e315e15c51ed8e0e2a0034960be13d636453f Mon Sep 17 00:00:00 2001 From: BRAUN REMI Date: Tue, 31 Oct 2023 09:08:52 +0100 Subject: [PATCH] Fix Sentinel-3 OLCI band management #111 --- eoreader/products/optical/s3_olci_product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eoreader/products/optical/s3_olci_product.py b/eoreader/products/optical/s3_olci_product.py index 68cd546c..a8de9e36 100644 --- a/eoreader/products/optical/s3_olci_product.py +++ b/eoreader/products/optical/s3_olci_product.py @@ -611,7 +611,7 @@ def _compute_e0(self, band: BandNames = None) -> np.ndarray: e0_det = self._read_nc(self._misc_file, self._solar_flux_name).data # Get band slice and open corresponding e0 for the detectors - band_slice = int(self.bands[band].id[-2:]) - 1 + band_slice = int(self.bands[band].name[-2:]) - 1 e0_det = np.squeeze(e0_det[0, band_slice, :]) # Create e0