Skip to content

Commit

Permalink
FIX: Add MS and PAN resolution in Landsat Products
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-braun committed Oct 17, 2024
1 parent ba304c7 commit 9ec4339
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
7 changes: 7 additions & 0 deletions eoreader/products/optical/landsat_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ec4339

Please sign in to comment.