-
Notifications
You must be signed in to change notification settings - Fork 42
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
Adapt reportEmiAirPol.R
to use renamed air pollution variables after MAGICC6 removal
#682
Conversation
|
||
######### internal function ########### | ||
generateReportingEmiAirPol <- function(pollutant,i_emiAPexsolve=pm_emiAPexsolve,i_emiAPexo=pm_emiAPexo){ | ||
generateReportingEmiAirPol <- function(pollutant, i_emiAPexsolve = p11_emiAPexsolve, i_emiAPexo = p11_emiAPexo) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced pm_X
here..
pm_emiAPexsolve <- readGDX(gdx, name=c("pm_emiAPexsolve"), field="l", format="first_found")[,ttot,] | ||
pm_emiAPexo <- readGDX(gdx, name=c("pm_emiAPexo"), field="l", format="first_found")[,ttot,airpollutants] | ||
pm_emiAPexoGlob <- readGDX(gdx, name=c("pm_emiAPexoGlob"), field="l", format="first_found")[,ttot,airpollutants] | ||
p11_emiAPexsolve <- readGDX( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.. and added p11_X
variables to name vector here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks a lot for fixing this so quickly, Tonn!
Note: Draft PR since
buildLibrary
has not been run yetChange log:
11_aerosols/exoGAINS
no longer act as an interface to the REMIND core and were renamed to frompm_X
top11_X
. This affectsp11_emiAPexo
,p11_emiAPexoGlob
,p11_emiAPexsolve
p11_emiFacAP
,pm_emiExog
,p11_emiAPexoAgricult
were also renamed in REMIND, but do not occur in reportingpm_conv_TWa_EJ
&conv_MtSO2_to_MtS
getRegions
withgetItems(..., dim = 1)
magclass
imports