Skip to content

Commit 11c58e0

Browse files
committed
Fix bug in pyTSEB related to CalcSn_Campbell
1 parent 61a9e16 commit 11c58e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pyTSEB.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1014,10 +1014,10 @@ def RunTSEBImagePixelByPixel(self, inDataArray, outDataArray, mask):
10141014
Omega=TSEB.CI.CalcOmega_Kustas(omega0,sza,wc=self.wc)
10151015
LAI_eff=F*Omega
10161016
# Estimate the net shorwave radiation
1017-
S_nS, S_nC = TSEB.rad.CalcSnCampbell (LAI_eff, sza, Sdn_dir, Sdn_dif, fvis,fnir,
1017+
S_nS, S_nC = TSEB.rad.CalcSnCampbell (lai, sza, Sdn_dir, Sdn_dif, fvis,fnir,
10181018
self.spectraVeg['rho_leaf_vis'], self.spectraVeg['tau_leaf_vis'],
10191019
self.spectraVeg['rho_leaf_nir'], self.spectraVeg['tau_leaf_nir'],
1020-
self.spectraGrd['rsoilv'], self.spectraGrd['rsoiln'])
1020+
self.spectraGrd['rsoilv'], self.spectraGrd['rsoiln'],LAI_eff=LAI_eff)
10211021
# And the net longwave radiation
10221022
L_nS,L_nC=TSEB.rad.CalcLnKustas (Tc, Ts,Lsky, lai,self.emisVeg, self.emisGrd)
10231023
# Run TSEB with the component temperatures Ts and Tc
@@ -1497,10 +1497,10 @@ def stra(param):
14971497
Omega=TSEB.CI.CalcOmega_Kustas(omega0,sza,wc=wc)
14981498
LAI_eff=F*Omega
14991499
# Estimate the net shorwave radiation
1500-
S_nS, S_nC = TSEB.rad.CalcSnCampbell (LAI_eff, sza, Sdn_dir, Sdn_dif, fvis,fnir,
1500+
S_nS, S_nC = TSEB.rad.CalcSnCampbell (lai, sza, Sdn_dir, Sdn_dif, fvis,fnir,
15011501
self.spectraVeg['rho_leaf_vis'], self.spectraVeg['tau_leaf_vis'],
15021502
self.spectraVeg['rho_leaf_nir'], self.spectraVeg['tau_leaf_nir'],
1503-
self.spectraGrd['rsoilv'], self.spectraGrd['rsoiln'])
1503+
self.spectraGrd['rsoilv'], self.spectraGrd['rsoiln'],LAI_eff=LAI_eff)
15041504
# And the net longwave radiation
15051505
L_nS,L_nC=TSEB.rad.CalcLnKustas (Tc, Ts,Lsky, lai,self.emisVeg, self.emisGrd)
15061506
# Run TSEB with the component temperatures Ts and Tc

0 commit comments

Comments
 (0)