Skip to content

Commit

Permalink
Fix bug in pyTSEB related to CalcSn_Campbell
Browse files Browse the repository at this point in the history
  • Loading branch information
hectornieto committed Mar 28, 2016
1 parent 61a9e16 commit 11c58e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pyTSEB.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,10 +1014,10 @@ def RunTSEBImagePixelByPixel(self, inDataArray, outDataArray, mask):
Omega=TSEB.CI.CalcOmega_Kustas(omega0,sza,wc=self.wc)
LAI_eff=F*Omega
# Estimate the net shorwave radiation
S_nS, S_nC = TSEB.rad.CalcSnCampbell (LAI_eff, sza, Sdn_dir, Sdn_dif, fvis,fnir,
S_nS, S_nC = TSEB.rad.CalcSnCampbell (lai, sza, Sdn_dir, Sdn_dif, fvis,fnir,
self.spectraVeg['rho_leaf_vis'], self.spectraVeg['tau_leaf_vis'],
self.spectraVeg['rho_leaf_nir'], self.spectraVeg['tau_leaf_nir'],
self.spectraGrd['rsoilv'], self.spectraGrd['rsoiln'])
self.spectraGrd['rsoilv'], self.spectraGrd['rsoiln'],LAI_eff=LAI_eff)
# And the net longwave radiation
L_nS,L_nC=TSEB.rad.CalcLnKustas (Tc, Ts,Lsky, lai,self.emisVeg, self.emisGrd)
# Run TSEB with the component temperatures Ts and Tc
Expand Down Expand Up @@ -1497,10 +1497,10 @@ def stra(param):
Omega=TSEB.CI.CalcOmega_Kustas(omega0,sza,wc=wc)
LAI_eff=F*Omega
# Estimate the net shorwave radiation
S_nS, S_nC = TSEB.rad.CalcSnCampbell (LAI_eff, sza, Sdn_dir, Sdn_dif, fvis,fnir,
S_nS, S_nC = TSEB.rad.CalcSnCampbell (lai, sza, Sdn_dir, Sdn_dif, fvis,fnir,
self.spectraVeg['rho_leaf_vis'], self.spectraVeg['tau_leaf_vis'],
self.spectraVeg['rho_leaf_nir'], self.spectraVeg['tau_leaf_nir'],
self.spectraGrd['rsoilv'], self.spectraGrd['rsoiln'])
self.spectraGrd['rsoilv'], self.spectraGrd['rsoiln'],LAI_eff=LAI_eff)
# And the net longwave radiation
L_nS,L_nC=TSEB.rad.CalcLnKustas (Tc, Ts,Lsky, lai,self.emisVeg, self.emisGrd)
# Run TSEB with the component temperatures Ts and Tc
Expand Down

0 comments on commit 11c58e0

Please sign in to comment.