Skip to content

Commit

Permalink
Updating tcorr_not_water_mask function doc string
Browse files Browse the repository at this point in the history
  • Loading branch information
cgmorton committed Oct 25, 2024
1 parent 3c73ddc commit 289b7c1
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions openet/ssebop/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,15 +477,18 @@ def quality(self):

@lazy_property
def tcorr_not_water_mask(self):
"""Mask used for FANO Tcorr calculation indicating pixels that are not water
"""Mask of pixels that have a high confidence of not being water
The purpose for this mask is to get water pixels out of the FANO calculation,
but then put the water pixels back in with the original LST value at the end
The purpose for this mask is to ensure that water pixels are not used in
the Tcorr FANO calculation.
Output image will be 0 for water and 1 for not-water (land?)
Output image will be 1 for pixels that are not-water and 0 otherwise
"""
NDWI in landsat.py is defined as "green - swir1", which is "flipped"
compared to NDVI and other NDWI calculations,
so water will be positive and land will be negative
"""
ndwi_threshold = -0.15

# TODO: Check if .multiply() is the same as .And() here
Expand Down

0 comments on commit 289b7c1

Please sign in to comment.