-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BiomeE interface and doc updates #268
Comments
Further small gripes of mine. Idea is to change them, if we ever change the output data.frame. p-model-output:
BiomeE-output:
res_biomee$output_daily_tile[[1]] |> tibble() |> names() |> dput()
c("year", "doy", "Tc", "Prcp", "totWs", "Trsp", "Evap", "Runoff",
"ws1", "ws2", "ws3", "LAI", "GPP", "Rauto", "Rh", "NSC", "seedC",
"leafC", "rootC", "SW_C", "HW_C", "NSN", "seedN", "leafN", "rootN",
"SW_N", "HW_N", "McrbC", "fastSOM", "slowSOM", "McrbN", "fastSoilN",
"slowSoilN", "mineralN", "N_uptk")
res_biomee$output_annual_tile[[1]] |> tibble() |> names() |> dput()
c("year", "CAI", "LAI", "Density", "DBH", "Density12", "DBH12",
"QMD12", "NPP", "GPP", "Rauto", "Rh", "rain", "SoilWater", "Transp",
"Evap", "Runoff", "plantC", "soilC", "plantN", "soilN", "totN",
"NSC", "SeedC", "leafC", "rootC", "SapwoodC", "WoodC", "NSN",
"SeedN", "leafN", "rootN", "SapwoodN", "WoodN", "McrbC", "fastSOM",
"SlowSOM", "McrbN", "fastSoilN", "slowSoilN", "mineralN", "N_fxed",
"N_uptk", "N_yrMin", "N_P2S", "N_loss", "totseedC", "totseedN",
"Seedling_C", "Seedling_N", "MaxAge", "MaxVolume", "MaxDBH",
"NPPL", "NPPW", "n_deadtrees", "c_deadtrees", "m_turnover", "c_turnover_time"
)
res_biomee$output_annual_cohorts[[1]] |> tibble() |> names() |> dput() #select(cohort, year, cID) |> distinct() # TODO: what is column cohort?
c("cohort", "year", "cID", "PFT", "layer", "density", "flayer",
"DBH", "dDBH", "height", "age", "BA", "dBA", "Acrown", "Aleaf",
"nsc", "seedC", "leafC", "rootC", "sapwC", "woodC", "nsn", "treeG",
"fseed", "fleaf", "froot", "fwood", "GPP", "NPP", "Rauto", "Nupt",
"Nfix", "n_deadtrees", "c_deadtrees", "deathrate") |
|
|
|
|
Pt. 5:
where |
BiomeE output is by default a data.frame with a single nested column containing outputs for
output_daily_tile
output_annual_tile
andoutput_annual_cohorts
.This could be made more tidy by using
unnest_wider()
, which unnests them to three separate, (still nested) columns. (For multiple sites potentially we'd needunnest_wider(simplify = FALSE)
.)Should we either:
If we opt for b) we could then further:
data
intooutput_daily_tile
(breaking change)What do you think about these breaking changes, @marcadella @stineb?
The text was updated successfully, but these errors were encountered: