Closed bpbond closed 1 year ago
AH HA! @stephpenn1
From the model_tutorial.Rmd
file:
#Define function which plots the modeled CO2 emissions over time
##CO2 emissions are cumulative, so we have to take the difference between timesteps to plot the CO2 emission rate
plot.co2 <- function(output){
plot(output[1:(dim(output)[1]-1),"time"],
diff(output[,"CO2"]),
xlab="time (days)",
ylab="co2 (gC m-2 d-1)",
col=1,
type="l")
}
Who the heck decided that CO2 emissions should be cumulative, and why is this not documented in the papers?!? 😐
Anyway, now we know. You can use the diff
function (see above) to calculate the differences between timesteps, and that will be the output we care about.
Nice investigative work! I will use that diff function for our output!
I am re-reading the Abramoff 2018 and 2022 papers...
So why is it producing the funky behavior we're seeing?!? Hmm.