Skip to content

Commit a23d6f7

Browse files
committed
fix mistake where conductance_radiative_heat was called with the wrong parameters
1 parent 68af75b commit a23d6f7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

R/figures.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ fig3_regression_slopes <- function(eb_regressions) {
202202
hjust="left", vjust="top") +
203203
scale_fill_viridis_c() +
204204
scale_y_discrete(limits=rev) +
205-
scale_x_continuous(limits=c(0.92, 1.20)) +
205+
scale_x_continuous(limits=c(0.98, 1.20)) +
206206
facet_grid(SITE_NEON ~ .,
207207
scales="free_y", space="free") +
208208
theme(strip.placement="outside",

R/gs_gbh_sensitivity.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ energy_balance_conductance_error <- function(Tl, Ta, gs, gbH, Pa, RH,
1818
desat <- esat_slope(Ta)
1919

2020
# Conductances - don't need to calculate gbH since that is provided
21-
gR <- conductance_radiative_heat(Ta, Pa, rho, rho_mol, a_lw,
22-
eb_constants_$cp)
21+
gR <- conductance_radiative_heat(Ta, rho, rho_mol, a_lw,
22+
eb_constants_$cp, eb_constants_$sb)
2323
gtot <- total_conductance(gs, gbH)
2424

2525
# Net radiation - here we don't consider canopy effects, so assume

R/leaf_eb_numeric.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ energy_balance_error <- function(Tl, Ta, u, gs, Pa, RH,
3535

3636
# Conductances
3737
gbH <- conductance_boundary_heat_needleleaf(u, d, rho_mol)
38-
gR <- conductance_radiative_heat(Ta, Pa, rho, rho_mol, a_lw,
39-
eb_constants_$cp)
38+
gR <- conductance_radiative_heat(Ta, rho, rho_mol, a_lw,
39+
eb_constants_$cp, eb_constants_$sb)
4040
gtot <- total_conductance(gs, gbH)
4141

4242
# Net radiation

0 commit comments

Comments
 (0)