Skip to content

Commit fb17811

Browse files
committed
FIX: Add MS and PAN resolution in Landsat Products
1 parent 0b0ab6c commit fb17811

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- FIX: Fix window's name coming from a vector with an underscore after it
66
- FIX: Allow to load numpy pickles stored in S3 buckets
7+
- FIX: Add MS and PAN resolution in Landsat Products
78

89
## 0.21.4 (2024-10-08)
910

eoreader/products/optical/landsat_product.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,17 @@ def __init__(
173173
# Private
174174
self._collection = None
175175
self._pixel_quality_id = None
176+
self._pan_res = None
177+
self._ms_res = None
176178

177179
# Initialization from the super class
178180
super().__init__(product_path, archive_path, output_path, remove_tmp, **kwargs)
179181

182+
# Resolutions (useful only for Landsat with PAN band, i.e. OLI and ETM+)
183+
if self.has_band(PAN):
184+
self._pan_res = 15.0
185+
self._ms_res = self.pixel_size
186+
180187
def _pre_init(self, **kwargs) -> None:
181188
"""
182189
Function used to pre_init the products

0 commit comments

Comments
 (0)