Skip to content

Commit fa3f1b3

Browse files
committed
Downscale to 90m and smooth with focal mean of radius 5 for smooth_Tc_layered in image.py...
This is supposed to take care of lack of smoothness from coarse Tcorr. Credit to Leo Laipelt!
1 parent e31d9b2 commit fa3f1b3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

openet/ssebop/image.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -884,8 +884,10 @@ def tcold_FANO(self):
884884
ee.Image of Tcold values
885885
886886
"""
887+
gridsize_smooth = 90
887888
gridsize_fine = 240
888889
gridsize_coarse = 4800
890+
smooth_transform = [gridsize_smooth, 0, 15, 0, -gridsize_smooth, 15]
889891
fine_transform = [gridsize_fine, 0, 15, 0, -gridsize_fine, 15]
890892
self.coarse_transform = [gridsize_coarse, 0, 15, 0, -gridsize_coarse, 15]
891893
dt_coeff = 0.125
@@ -1004,11 +1006,11 @@ def tcold_FANO(self):
10041006

10051007
## ---------- Smoothing the FANO for Ag together starting with mixed landscape -------
10061008

1007-
# 1 pixel of smoothing to the main Tc where we make use of landcovers
1009+
# downscaling to 90 and smoothing with a 5x5 Tc where we make use of landcovers
10081010
self.smooth_Tc_Layered = (
10091011
self.tc_layered
1010-
.focalMean(1, 'square', 'pixels')
1011-
.reproject(self.crs, fine_transform)
1012+
.reproject(self.crs, smooth_transform)
1013+
.focalMean(5, 'square', 'pixels')
10121014
.rename('lst')
10131015
)
10141016

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "openet-ssebop"
3-
version = "0.7.0"
3+
version = "0.7.1"
44
authors = [
55
{ name = "Gabe Parrish", email = "[email protected]" },
66
{ name = "Mac Friedrichs", email = "[email protected]" },

0 commit comments

Comments
 (0)