JGCRI / gcam-core

GCAM -- The Global Change Analysis Model
http://jgcri.github.io/gcam-doc/
Other
282 stars 163 forks source link

Sample energy constraint policy file #148

Open agobba opened 3 years ago

agobba commented 3 years ago

There is some documentation on writing energy constraints into policy files. A sample of the code is given as in the screenshot below. Is there a example xml energy contraint policy file available? It would be very helpful to include

image

rjplevin commented 3 years ago

I added a bunch of features to pygcam (funded by Energy Innovation and driven by Robbie Orvis, @robbieorvis) to support creation of several types of energy policies including for renewable energy portfolios, transportation, zero-emission vehicles, buildings energy use, building electrification, and industrial energy use. They all operate similarly: you specify the regions, sectors, subsectors, technologies you want to impose constraints on and pygcam generates a template CSV file into which you enter the numerical values. Another command turns that information into the required XML. It was developed primarily to work with gcam-usa, but should work for the 32-region model as well.

As far as I know, only Robbie has been using these features. Naturally, it assumes you're working within the pygcam framework, so there's a learning curve involved. The code is not as well-documented as I'd like, and the various features could use some consolidation / simplification. But it's all available free for download (see the JGCRI/pygcam repo) and I can help you set it up.

-Rich

mengyi9634 commented 2 years ago

I added a bunch of features to pygcam (funded by Energy Innovation and driven by Robbie Orvis, @robbieorvis) to support creation of several types of energy policies including for renewable energy portfolios, transportation, zero-emission vehicles, buildings energy use, building electrification, and industrial energy use. They all operate similarly: you specify the regions, sectors, subsectors, technologies you want to impose constraints on and pygcam generates a template CSV file into which you enter the numerical values. Another command turns that information into the required XML. It was developed primarily to work with gcam-usa, but should work for the 32-region model as well.

As far as I know, only Robbie has been using these features. Naturally, it assumes you're working within the pygcam framework, so there's a learning curve involved. The code is not as well-documented as I'd like, and the various features could use some consolidation / simplification. But it's all available free for download (see the JGCRI/pygcam repo) and I can help you set it up.

-Rich

Hi Rich, I saw your reply on this energy constraint policy file and I have similar issues, so wondering if you could help me to set it up as well? Thank you!

rjplevin commented 2 years ago

@mengyi9634 Please email me at rich@plevin.com