JGCRI / gcam-core

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

Error: Linked market CO2 could not be linked to GHG #449

Open licaicaicumt opened 4 months ago

licaicaicumt commented 4 months ago

I want to set emission constraints in GCAM v.7, and three lines below are added to the configuration. <!--net0 emission constrains>

../input/gcamdata/xml/dac_ssp2.xml ../input/policy/linked_ghg_policy.xml ../input/policy/ghg_net0_constraint_global.xml

emissions constraints.zip The following error occurred: Linked market CO2 in USA could not be linked to GHG Linked market CO2_FUG in USA could not be linked to GHG Linked market CH4 in USA could not be linked to GHG Linked market N2O in USA could not be linked to GHG Linked market C2F6 in USA could not be linked to GHG Linked market CF4 in USA could not be linked to GHG Linked market HFC125 in USA could not be linked to GHG ...... How should I modify it to achieve emission constraints?

fightingGCAM commented 2 months ago

Change the position of "linked_ghg_policy" and "ghg_net0_constraint_global.xml "can solve it. So it should be: ../input/gcamdata/xml/dac_ssp2.xml ../input/policy/ghg_net0_constraint_global.xml ../input/policy/linked_ghg_policy.xml

JiahongGUO121 commented 1 week ago

Thanks for your suggestion @fightingGCAM. I had a similar problem with @licaicaicumt . I would like to know whether the position order of XML files in Configuration file is essential? Since I changed my files' position and the error note is also same.

fightingGCAM commented 5 days ago

Hi Jiahong, Thanks for the question. Yeah, the position is essential. You can learn more from GCAM v7.1 Documentation: GCAM Policies. In the "Linked Emission Markets" section, it explicitly mentions, "Note that you must first create a policy by reading in an object (by reading an XML with this object first, see the various policy files in the GCAM release), and then you can define how this links to any emissions (through objects). " So for me, I often put the link file at the end. Just like this

I hope this can help you. Best wishes!! ZhangXuan

发件人:JiahongGUO121 @.> 发送日期:2024-11-18 17:05:38 收件人:JGCRI/gcam-core @.> 抄送人:ZhangXuan @.>,Mention @.> 主题:Re: [JGCRI/gcam-core] Error: Linked market CO2 could not be linked to GHG (Issue #449)

Thanks for your suggestion @fightingGCAM. I had a similar problem with @licaicaicumt . I would like to know whether the position order of XML files in Configuration file is essential? Since I changed my files' position and the error note is also same. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

JiahongGUO121 commented 4 days ago

@fightingGCAM Thank you very much for your reply! It is very helpful to me, I will read GCAM Policies clearly.