Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
flohump committed Sep 27, 2024
1 parent e24ba0b commit 1c467f3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions scripts/output/extra/highres.R
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,14 @@ highres <- function(cfg = cfg, res = "c1000", tc = NULL) {
cfg$gms$s15_elastic_demand <- 0

#get exogenous bioenergy demand and GHG prices from c200 run because these files may have been overwritten
write.magpie(readGDX(gdx,"f56_pollutant_prices_coupling"),"modules/56_ghg_policy/input/f56_pollutant_prices_coupling.cs3")
write.magpie(readGDX(gdx,"f56_pollutant_prices_emulator"),"modules/56_ghg_policy/input/f56_pollutant_prices_emulator.cs3")
write.magpie(readGDX(gdx,"f60_bioenergy_dem_coupling"),"modules/60_bioenergy/input/reg.2ndgen_bioenergy_demand.csv")
write.magpie(readGDX(gdx,"f60_bioenergy_dem_emulator"),"modules/60_bioenergy/input/glo.2ndgen_bioenergy_demand.csv")
a <- readGDX(gdx,"f56_pollutant_prices_coupling", react = "silent")
if(!is.null(a)) write.magpie(a,"modules/56_ghg_policy/input/f56_pollutant_prices_coupling.cs3")
a <- readGDX(gdx,"f56_pollutant_prices_emulator", react = "silent")
if(!is.null(a)) write.magpie(a,"modules/56_ghg_policy/input/f56_pollutant_prices_emulator.cs3")
a <- readGDX(gdx,"f60_bioenergy_dem_coupling", react = "silent")
if(!is.null(a)) write.magpie(a,"modules/60_bioenergy/input/reg.2ndgen_bioenergy_demand.csv")
a <- readGDX(gdx,"f60_bioenergy_dem_emulator", react = "silent")
if(!is.null(a)) write.magpie(a,"modules/60_bioenergy/input/glo.2ndgen_bioenergy_demand.csv")

#get regional afforestation patterns from low resolution run with c200
aff <- dimSums(landForestry(gdx)[,,c("aff","ndc")],dim=3)
Expand Down

0 comments on commit 1c467f3

Please sign in to comment.