Skip to content

Commit

Permalink
added ozone yield shock call to full cellular magpie
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrtommey committed Nov 1, 2024
1 parent 524d31a commit 25cc8ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/fullCELLULARMAGPIE.R
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,14 @@ fullCELLULARMAGPIE <- function(rev = numeric_version("0.1"), dev = "",
source = c(lpjml = lpjml[["crop"]], isimip = isimip),
climatetype = climatetype, round = 2, years = lpjYears, file = paste0("lpj_yields_", ctype, ".mz"),
weighting = ifelse(grepl("YieldWeights_", dev), gsub("YieldWeights_", "", dev), "totalCrop"))

}

calcOutput("OzoneYieldShock", aggregate = "cluster",
weighting = "cropSpecific",
years = lpjYears,
file = paste0("lpj_yields_ozone_", ctype, ".cs3")
)

calcOutput("DegradationYieldReduction", aggregate = "cluster", round = 6, cells = cells,
file = paste0("f14_degradation_yld_reduc_", ctype, ".mz"))

Expand Down

0 comments on commit 25cc8ab

Please sign in to comment.