pik-piam / mrremind

The mrremind packages contains data preprocessing for the REMIND model.
GNU Lesser General Public License v3.0
4 stars 40 forks source link

fix error in calcCO2Prices #516

Closed fbenke-pik closed 3 weeks ago

fbenke-pik commented 3 weeks ago

This fixes

Run calcOutput(type = "CO2Prices", file = "pm_taxCO2eqHist.cs4r", round = 2)
~ Run readSource(type = "ExpertGuess", subtype = "co2prices")
~~  - loading cache convertExpertGuess-Fed79ca0f-def4342f.rds
~ Exit readSource(type = "ExpertGuess", subtype = "co2prices") in 0.14 seconds
~ Run calcOutput(type = "Emissions", aggregate = FALSE, datasource = "CEDS2024")
~~ Run readSource(type = "CEDS2024")
~~~  - writing cache readCEDS2024-Fdb5a21cd.rds
~~~ NOTE:  - toolCountryFill set missing values for IMPORTANT countries to 0:
~~~  --- Palestine, State of (PSE) 
~~~  - writing cache convertCEDS2024-Fdb5a21cd.rds
~~ Exit readSource(type = "CEDS2024") in 159.06 seconds
~~  - writing cache calcEmissions-Fbe6dd217-f93a72b5.rds
~ Exit calcOutput(type = "Emissions", aggregate = FALSE, datasource = "CEDS2024") in 271.86 seconds
~ ERROR: 
~ Number of years disagree between data and weight of function "mrremind:::calcCO2Prices()"!
orichters commented 3 weeks ago

Thanks!

-- Oliver Richters Research Department III e-mail: @.*** Potsdam Institute for Climate Impact Research Telegraphenberg A 31 P.O. Box 60 12 03 D-14412 Potsdam www.pik-potsdam.de