Skip to content

Commit

Permalink
Correct Landsat TIR management for LETM+
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-braun committed Sep 13, 2022
1 parent 6a11569 commit 2dacdc3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eoreader/products/optical/landsat_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,12 @@ def _to_reflectance(
try:
# Thermal (10/11)
if band in [spb.TIR_1, spb.TIR_2]:
# For Landsat L2 products, the band name in metadata don't change compared to L1 (only one band left)
if (
self.constellation == Constellation.L7
and self.product_type == LandsatProductType.L2
):
band_name = "6_VCID_1"
band_arr = self._to_tb(band_arr, band, mtd_data, band_name)

else:
Expand Down

0 comments on commit 2dacdc3

Please sign in to comment.