Skip to content

Commit

Permalink
Fix bug in CalcSn_Campbell
Browse files Browse the repository at this point in the history
  • Loading branch information
hectornieto committed Mar 28, 2016
1 parent a8fdfa7 commit 61a9e16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/netRadiation.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,10 @@ def CalcSnCampbell (LAI, sza, Sdn_dir, Sdn_dif, fvis,fnir, rho_leaf_vis,
ameann = 1.0-rho_leaf_nir-tau_leaf_nir
# Calculate canopy beam extinction coefficient
#Modification to include other LADs
if LAI_eff.any():
LAI_eff=np.array(LAI_eff)
if type(LAI_eff)==type(None):
LAI_eff=np.asarray(LAI)
else:
LAI_eff=np.array(LAI)
LAI_eff=np.asarray(LAI_eff)
# Integrate to get the diffuse transmitance
taud=0
for angle in range(0,90,5):
Expand Down

0 comments on commit 61a9e16

Please sign in to comment.