Skip to content
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

Remove SDP scenario override in readMAgPIE #54

Open
gabriel-abrahao opened this issue Mar 29, 2022 · 0 comments
Open

Remove SDP scenario override in readMAgPIE #54

gabriel-abrahao opened this issue Mar 29, 2022 · 0 comments

Comments

@gabriel-abrahao
Copy link
Contributor

This section overrides the SDP scenario with SSP1, among others. Setting this issue as a reminder to remove it when we update the MAgPIE data.

mrcommons/R/readMAgPIE.R

Lines 109 to 121 in 0041fd9

# make SSP2EU scenario using SSP2 data --- ATTENTION: needs to be deleted as soon as we have data for SSP2EU
xSSP2EU <- x[, , c("SSP2-NDC-NDC", "SSP2-NDC-PkBudg1300", "SSP2-NDC-PkBudg900", "SSP2-NPI-Base")]
getNames(xSSP2EU) <- gsub("SSP2", "SSP2EU", getNames(xSSP2EU))
x <- mbind(x, xSSP2EU)
# make SDP* scenarios using SSP1 data --- ATTENTION: needs to be deleted as soon as we have data for SDP*
xSDPEI <- x[, , c("SSP1-NDC-NDC", "SSP1-NDC-PkBudg1300", "SSP1-NDC-PkBudg900", "SSP1-NPI-Base")]
getNames(xSDPEI) <- gsub("SSP1", "SDP_EI", getNames(xSDPEI))
xSDPRC <- x[, , c("SSP1-NDC-NDC", "SSP1-NDC-PkBudg1300", "SSP1-NDC-PkBudg900", "SSP1-NPI-Base")]
getNames(xSDPRC) <- gsub("SSP1", "SDP_RC", getNames(xSDPRC))
xSDPMC <- x[, , c("SSP1-NDC-NDC", "SSP1-NDC-PkBudg1300", "SSP1-NDC-PkBudg900", "SSP1-NPI-Base")]
getNames(xSDPMC) <- gsub("SSP1", "SDP_MC", getNames(xSDPMC))
x <- mbind(x, xSDPEI, xSDPRC, xSDPMC)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant