Skip to content

Commit

Permalink
FIX: Fixing the paths to Sentinel-2 quicklooks: using PVI instead of …
Browse files Browse the repository at this point in the history
…TCI file if no .jpg preview file is found (#84 #85, thanks a lot @floriandeboissieu)
  • Loading branch information
remi-braun committed Apr 11, 2023
1 parent 12adc87 commit 5c09e32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 0.19.4 (2023-MM-DD)

- FIX: Removing calibration step from SNAP pre-processing graph for multi-swath `Cosmo-SkyMed 1st GEN` products (to avoid ending up with empty images after pre-process)
- FIX: Fixing the paths to Sentinel-2 quicklooks: using PVI instead of TCI file if no .jpg preview file is found ([#84](https://github.com/sertit/eoreader/issues/84), [#85](https://github.com/sertit/eoreader/issues/85), thanks a lot @floriandeboissieu)

## 0.19.3 (2023-03-24)

Expand Down
4 changes: 2 additions & 2 deletions eoreader/products/optical/s2_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -1607,10 +1607,10 @@ def get_quicklook_path(self) -> str:
try:
if self.is_archived:
quicklook_path = files.get_archived_rio_path(
self.path, file_regex=rf".*PVI\.jp2"
self.path, file_regex=r".*PVI\.jp2"
)
else:
quicklook_path = str(next(self.path.glob(f"**/*PVI.jp2")))
quicklook_path = str(next(self.path.glob("**/*PVI.jp2")))
except (StopIteration, FileNotFoundError):
LOGGER.warning(f"No quicklook found in {self.condensed_name}")

Expand Down

0 comments on commit 5c09e32

Please sign in to comment.