-
Notifications
You must be signed in to change notification settings - Fork 164
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
Incorporating agricultural residue burning emissions #268
Conversation
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.
As you have introduced a new interface, please update the module contracts of the corresponding modules. You find the contracts as part of the goxygen documentation in the module.gms files of the corresponding modules.
The module contract should describe what the purpose of the module is, what outputs it is promising to provide and what inputs it is expecting to get in order to compute the outputs.
In addition I saw that in one off-realization you just set the value of that new interface to zero. The description of that realization should make very clear what scenario this module is representing. In your case, if no residue burning is happening, what is happening instead?
I have now amended the module contracts for both 18_residues and 51_nitrogen to be more specific. |
I've now amended the documentation to better fit Jan's specifications. |
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
@mscrawford what is the status here? Still needs @bodirsky to review, right? Should probably happen rather soon as PR are currently piling up |
Yes, I am waiting for Benni on this one!
…On Mon, Apr 26, 2021 at 21:24 Jan Dietrich ***@***.***> wrote:
@mscrawford <https://github.com/mscrawford> what is the status here?
Still needs @bodirsky <https://github.com/bodirsky> to review, right?
Should probably happen rather soon as PR are currently piling up
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#268 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXWSGR4NCGZWXDGVKMZ3I3TKW4YFANCNFSM42SZQ3MA>
.
|
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.
all fine!
Purpose of this PR
Incorporate the emissions calculations from agricultural residue burning (N2O, NO2). Changes to 18_residues and 51_nitrogen.
Performance loss/gain from current default behavior
~ 7% performance loss
Type of change
How Has This Been Tested?
The new calculations are present in the .GDX. The following plot shows the correspondence between MAgPIE's calculations and the historical FAO data for N2O.
Additions or Changes to default configuration (default.cfg):
One new file was added, incorporating the emissions factors taken from the IPCC 2019 revision, f51_ef_resid_burn.cs4
Checklist:
CHANGELOG.md
goxygen::goxygen()
for the new/updated parts.magpie4
R library for post processing of model output (ideally backward compatible).Special comments/warnings
The additions don't add anything to the optimization, but do increase the total number of calculations.