-
Notifications
You must be signed in to change notification settings - Fork 45
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
Fix emissions reporting #530
Changes from 1 commit
c164190
d3004fa
5485882
e9d2824
ed856ad
6583c5e
c9e8247
6e322f4
a8af321
6735d1d
550de73
599e7e1
c5cc567
7aacf60
ea06fef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1879,8 +1879,45 @@ if (!is.null(vm_plasticsCarbon)) { | |
- out[, , "Emi|CO2|CDR|BECCS|Industry (Mt CO2/yr)"], | ||
"Emi|CO2|Gross|Energy|+|Demand (Mt CO2/yr)")) | ||
|
||
########################################### | ||
## Gross emissions in Energy|Waste sector## | ||
########################################### | ||
# fixme: check that CDR addition makes sense | ||
if (!is.null(vm_plasticsCarbon)){ | ||
# calculate gross emissions in energy waste sector | ||
out <- mbind(out, | ||
# total gross energy waste emissions | ||
setNames(out[, , "Emi|CO2|Energy|+|Waste (Mt CO2/yr)"] | ||
- out[, , "Emi|CO2|CDR|Materials|+|Plastics (Mt CO2/yr)"], | ||
"Emi|CO2|Gross|Energy|+|Waste (Mt CO2/yr)")) | ||
} | ||
|
||
########################### | ||
## total gross variables ## | ||
########################### | ||
# if feedstocks are available | ||
if (!is.null(vm_plasticsCarbon)){ | ||
out <- mbind(out, | ||
# total gross energy emissions | ||
setNames(out[, , "Emi|CO2|+|Energy (Mt CO2/yr)"] | ||
- out[, , "Emi|CO2|CDR|Industry CCS|Synthetic Fuels (Mt CO2/yr)"] | ||
- out[, , "Emi|CO2|CDR|BECCS (Mt CO2/yr)"] | ||
- out[, , "Emi|CO2|CDR|Materials|+|Plastics (Mt CO2/yr)"], | ||
"Emi|CO2|Gross|Energy (Mt CO2/yr)"), | ||
|
||
# total gross energy and industrial process emissions | ||
setNames(out[, , "Emi|CO2|Energy and Industrial Processes (Mt CO2/yr)"] | ||
- out[, , "Emi|CO2|CDR|Industry CCS|Synthetic Fuels (Mt CO2/yr)"] | ||
- out[, , "Emi|CO2|CDR|BECCS (Mt CO2/yr)"] | ||
- out[, , "Emi|CO2|CDR|Materials|+|Plastics (Mt CO2/yr)"], | ||
"Emi|CO2|Gross|Energy and Industrial Processes (Mt CO2/yr)"), | ||
|
||
# total gross variables | ||
# total gross emissions | ||
setNames(out[, , "Emi|CO2 (Mt CO2/yr)"] | ||
- out[, , "Emi|CO2|CDR (Mt CO2/yr)"], | ||
"Emi|CO2|Gross (Mt CO2/yr)")) | ||
} else { | ||
# total gross variables if feedstocks are not available | ||
out <- mbind(out, | ||
# total gross energy emissions | ||
setNames(out[, , "Emi|CO2|+|Energy (Mt CO2/yr)"] | ||
|
@@ -1898,6 +1935,8 @@ if (!is.null(vm_plasticsCarbon)) { | |
setNames(out[, , "Emi|CO2 (Mt CO2/yr)"] | ||
- out[, , "Emi|CO2|CDR (Mt CO2/yr)"], | ||
"Emi|CO2|Gross (Mt CO2/yr)")) | ||
} | ||
|
||
|
||
# split into electric and non-electric energy supply emissions | ||
out <- mbind(out, | ||
|
@@ -2207,8 +2246,16 @@ if (!is.null(vm_plasticsCarbon)) { | |
setNames(out[, , "Emi|CO2|Energy|Demand|+|CDR (Mt CO2/yr)"], | ||
"Emi|GHG|Energy|Demand|+|CDR (Mt CO2eq/yr)")) | ||
|
||
|
||
|
||
############################### | ||
## GHG energy waste emissions## | ||
############################### | ||
# note that Emi|GHG|Energy|Waste corresponds to end-of-life emissions of products of the chemicals sector | ||
# and it is different to Emi|GHG|+++|Waste | ||
if (!is.null(vm_plasticsCarbon)){ | ||
out <- mbind(out, | ||
setNames(out[, , "Emi|CO2|Energy|+|Waste (Mt CO2/yr)"], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not an accounting expert, so I have to ask: The UNFCCC inventories put waste in a separate category, so it is not part of the Energy emissions. But maybe this is the way we agreed on accounting for waste emissions in the Navigate-template/IAMC community. Or is that the emissions of waste used as energy feedstock? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is a very important point! indeed there's another category where we put non-CO2 emissions from waste management (CH4 emissions). But bringing those 2 together via coupling with waste-to-power capacities is a larger task that I think should not be part of this PR. |
||
"Emi|GHG|Energy|+|Waste (Mt CO2eq/yr)")) | ||
} | ||
|
||
## gross GHG variables (ecxl. negative emissions from BECCS and carbon storage of carbon-neutral synthetic fuels) | ||
## note Emi|CO2|CDR|... variables are negative. That's why we substract them to get from net to gross emissions. | ||
|
@@ -2241,17 +2288,39 @@ if (!is.null(vm_plasticsCarbon)) { | |
|
||
|
||
setNames(out[, , "Emi|GHG|Energy|Demand|+|CDR (Mt CO2eq/yr)"], | ||
"Emi|GHG|Gross|Energy|Demand|+|CDR (Mt CO2eq/yr)"), | ||
"Emi|GHG|Gross|Energy|Demand|+|CDR (Mt CO2eq/yr)") | ||
|
||
) | ||
|
||
############################################# | ||
## gross GHG variables if feedstocks exist ## | ||
############################################# | ||
|
||
##(ecxl. negative emissions from BECCS and carbon storage of carbon-neutral synthetic fuels) | ||
## note Emi|CO2|CDR|... variables are negative. That's why we substract them to get from net to gross emissions. | ||
if (!is.null(vm_plasticsCarbon)){ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would it be possible to avoid duplicate code from these if-clauses and simply set all plastics related variables to zero if vm_plasticsCarbon doesn't exist but still add them up? Or would that cause problems somewhere else? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe, but I wouldn't include it in this PR. Just trying to make it work, we can make it nicer later. |
||
out <- mbind(out, | ||
|
||
# total gross waste emissions | ||
setNames(out[, , "Emi|GHG|Energy|+|Waste (Mt CO2eq/yr)"] | ||
- out[, , "Emi|CO2|CDR|Materials|+|Plastics (Mt CO2/yr)"], | ||
"Emi|GHG|Gross|Energy|+|Waste (Mt CO2eq/yr)"), | ||
|
||
# total gross energy emissions | ||
setNames(out[, , "Emi|GHG|+++|Energy (Mt CO2eq/yr)"] | ||
- out[, , "Emi|CO2|CDR|Industry CCS|Synthetic Fuels (Mt CO2/yr)"] | ||
- out[, , "Emi|CO2|CDR|BECCS (Mt CO2/yr)"], | ||
- out[, , "Emi|CO2|CDR|BECCS (Mt CO2/yr)"] | ||
- out[, , "Emi|CO2|CDR|Materials|+|Plastics (Mt CO2/yr)"], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above. Might not be Energy emissions |
||
"Emi|GHG|Gross|Energy (Mt CO2eq/yr)") | ||
|
||
|
||
) | ||
|
||
} else { | ||
# total gross energy emissions | ||
setNames(out[, , "Emi|GHG|+++|Energy (Mt CO2eq/yr)"] | ||
- out[, , "Emi|CO2|CDR|Industry CCS|Synthetic Fuels (Mt CO2/yr)"] | ||
- out[, , "Emi|CO2|CDR|BECCS (Mt CO2/yr)"], | ||
"Emi|GHG|Gross|Energy (Mt CO2eq/yr)") | ||
} | ||
## END of gross GHG variables if feedstocks exist ############################ | ||
|
||
# electric and non-electric supply GHG emissions (needed for total GHG stacked plots with gross emissions) | ||
|
||
|
@@ -2850,7 +2919,35 @@ if (!is.null(vm_plasticsCarbon)) { | |
return(tmp) | ||
} | ||
|
||
# emissions variables for which we want to calculate cumulative values | ||
|
||
# emissions variables for which we want to calculate cumulative values | ||
if (!is.null(vm_plasticsCarbon)) { | ||
vars.cumulate <- c("Emi|GHG (Mt CO2eq/yr)", | ||
"Emi|CO2 (Mt CO2/yr)", | ||
"Emi|CO2|Energy and Industrial Processes (Mt CO2/yr)", | ||
"Emi|CO2|Gross|Energy and Industrial Processes (Mt CO2/yr)", | ||
"Emi|CO2|+|Energy (Mt CO2/yr)", | ||
"Emi|CO2|+|Land-Use Change (Mt CO2/yr)", | ||
"Emi|CO2|+|Industrial Processes (Mt CO2/yr)", | ||
"Emi|CO2|Energy|Demand|+|Transport (Mt CO2/yr)", | ||
"Emi|CO2|Energy|Demand|+|Industry (Mt CO2/yr)", | ||
"Emi|CO2|Energy|Demand|+|Buildings (Mt CO2/yr)", | ||
"Emi|CO2|Energy|Demand|+|CDR (Mt CO2/yr)", | ||
"Emi|CO2|Energy|+|Waste (Mt CO2/yr)", | ||
"Emi|CO2|Gross|Energy|Demand|+|Industry (Mt CO2/yr)", | ||
"Emi|CO2|Gross|Energy|Supply|Non-electric (Mt CO2/yr)", | ||
"Emi|CO2|Gross|Energy|Supply|+|Electricity (Mt CO2/yr)", | ||
"Emi|CO2|Gross|Energy|+|Waste (Mt CO2/yr)", | ||
"Emi|CO2|CDR (Mt CO2/yr)", | ||
"Emi|CO2|CDR|BECCS (Mt CO2/yr)", | ||
"Emi|CO2|CDR|BECCS|Pe2Se (Mt CO2/yr)", | ||
"Emi|CO2|CDR|BECCS|Industry (Mt CO2/yr)", | ||
"Emi|CO2|CDR|Industry CCS|Synthetic Fuels (Mt CO2/yr)", | ||
"Emi|CO2|CDR|DACCS (Mt CO2/yr)", | ||
"Emi|CO2|CDR|EW (Mt CO2/yr)", | ||
"Emi|CO2|CDR|Land-Use Change (Mt CO2/yr)", | ||
"Emi|CO2|CDR|Materials|+|Plastics (Mt CO2/yr)") | ||
}else{ | ||
vars.cumulate <- c("Emi|GHG (Mt CO2eq/yr)", | ||
"Emi|CO2 (Mt CO2/yr)", | ||
"Emi|CO2|Energy and Industrial Processes (Mt CO2/yr)", | ||
|
@@ -2873,7 +2970,7 @@ if (!is.null(vm_plasticsCarbon)) { | |
"Emi|CO2|CDR|DACCS (Mt CO2/yr)", | ||
"Emi|CO2|CDR|EW (Mt CO2/yr)", | ||
"Emi|CO2|CDR|Land-Use Change (Mt CO2/yr)") | ||
|
||
} | ||
|
||
# variable names for cumulated emissions variables | ||
names.cumul <- vars.cumulate | ||
|
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.
@strefler are these energy emissions? I would rather treat
Emi|CO2|CDR|Materials|+|Plastics
the same way as DACCS or EW. So they should probably be neither included inEmi|CO2|+|Energy
nor be deduced from the respective Gross variable here. What do you think?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.
I think this is a general issue we should discuss in the IAMC emissions group with everybody, that is, accounting of long-term CCU. I tend to be in favor of the convention that carbon stored in materials should be deduced from industry / energy emissions because that is how the IPCC emissions accounting defines energy-related emissions (i.e. only emissions from combustion). But I am happy to discuss further.