Skip to content

Commit

Permalink
Merge pull request #63 from Open-ET/62-fix-et-blooming-around-water-b…
Browse files Browse the repository at this point in the history
…odies

62 fix et blooming around water bodies
  • Loading branch information
gabe-parrish authored Mar 29, 2024
2 parents fe974e5 + 8f9583e commit ea704d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions openet/ssebop/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,15 +883,15 @@ def tcorr_FANO(self):

# In places where NDVI is really high, use the masked original lst at those places.
# In places where NDVI is really low (water) use the unmasked original lst.
# Everywhere else, use the FANO adjusted Tc_warm, ignoring masked water pixels.
# Everywhere else, use the FANO adjusted Tc_warm, ignoring masked water pixels.
# In places where there is too much land covered by water 10% or greater,
# use a FANO adjusted Tc_warm from a coarser resolution (100km) that ignored masked water pixels.
Tc_cold = (
lst_avg_unmasked
.where((ndvi_avg_masked.gte(0).And(ndvi_avg_masked.lte(high_ndvi_threshold))), Tc_warm)
.where(ndvi_avg_masked.gt(high_ndvi_threshold), lst_avg_masked)
.where(wet_region_mask_5km, Tc_warm100)
.where(ndvi_avg_unmasked.lt(0), lst_avg_unmasked)
.where(ndvi_avg_unmasked.lt(0), Tc_warm100)
)

c_factor = Tc_cold.divide(tmax_avg)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "openet-ssebop"
version = "0.4.2"
version = "0.4.3"
authors = [
{ name = "Gabe Parrish", email = "[email protected]" },
{ name = "Mac Friedrichs", email = "[email protected]" },
Expand Down

0 comments on commit ea704d0

Please sign in to comment.