Skip to content

Commit

Permalink
Thermal bands for Landsat C2 added
Browse files Browse the repository at this point in the history
  • Loading branch information
davemlz committed Jul 19, 2021
1 parent f73cfa7 commit c5c640e
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions eemont/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ def lookupL8C2(img):
"N": img.select("SR_B5"),
"S1": img.select("SR_B6"),
"S2": img.select("SR_B7"),
"T1": img.select("SR_B10"),
"T2": img.select("SR_B11"),
"T1": img.select("ST_B10")
}

def lookupL457(img):
Expand All @@ -173,7 +172,7 @@ def lookupL7C2(img):
"R": img.select("SR_B3"),
"N": img.select("SR_B4"),
"S1": img.select("SR_B5"),
"T1": img.select("SR_B6"),
"T1": img.select("ST_B6"),
"S2": img.select("SR_B7"),
}

Expand Down Expand Up @@ -714,13 +713,11 @@ def _maskClouds(
Cloud-shadow masked image or image collection.
"""

validMethods = ["cloud_prob", "qa"]

validMethods = ["cloud_prob","qa"]
if method not in validMethods:
raise Exception(
f"'{method}' is not a valid method. Please use one of {validMethods}."
)

raise Exception(f"'{method}' is not a valid method. Please use one of {validMethods}.")

def S3(args):
qa = args.select("quality_flags")
notCloud = qa.bitwiseAnd(1 << 27).eq(0)
Expand Down

0 comments on commit c5c640e

Please sign in to comment.