diff --git a/CHANGES.md b/CHANGES.md index e2a11694..8fb90234 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,7 @@ - FIX: Fix window's name coming from a vector with an underscore after it - FIX: Allow to load numpy pickles stored in S3 buckets +- FIX: Add MS and PAN resolution in Landsat Products ## 0.21.4 (2024-10-08) diff --git a/eoreader/products/optical/landsat_product.py b/eoreader/products/optical/landsat_product.py index 59c2c3b8..5c00b2e0 100644 --- a/eoreader/products/optical/landsat_product.py +++ b/eoreader/products/optical/landsat_product.py @@ -173,10 +173,17 @@ def __init__( # Private self._collection = None self._pixel_quality_id = None + self._pan_res = None + self._ms_res = None # Initialization from the super class super().__init__(product_path, archive_path, output_path, remove_tmp, **kwargs) + # Resolutions (useful only for Landsat with PAN band, i.e. OLI and ETM+) + if self.has_band(PAN): + self._pan_res = 15.0 + self._ms_res = self.pixel_size + def _pre_init(self, **kwargs) -> None: """ Function used to pre_init the products