Skip to content

Commit b11974b

Browse files
committed
more ud_convert
1 parent a1e2f79 commit b11974b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

models/peprmt/demo_run/02_input_demo.qmd

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,11 +459,14 @@ model_output_mcmc |>
459459
)
460460
461461
model_output_mcmc |>
462-
mutate(site_id = sub("ENS-\\d+-", "", run_id)) |>
462+
mutate(
463+
site_id = sub("ENS-\\d+-", "", run_id),
464+
CH4_flux = PEcAn.utils::ud_convert(CH4_flux, "kg/m2/sec", "mg/m2/day")
465+
) |>
463466
select("site_id", "run_id", "posix", "CH4_flux") |>
464467
ggplot() +
465468
aes(x = posix,
466-
y = CH4_flux * 1E6 * 60 * 60 * 24, # Convert from kg/m2/s to mg/m2/d
469+
y = CH4_flux,
467470
group = run_id) +
468471
facet_wrap(~site_id, nrow = 1, scales = "free", space = "free_x") +
469472
geom_line(alpha = 0.5) +

0 commit comments

Comments
 (0)