JGCRI / gcam-core

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

Missing technology when running low CCS supply scenario in GCAM-USA #217

Open chloe-fauvel opened 2 years ago

chloe-fauvel commented 2 years ago

Hi,

I was trying to run a low CCS supply scenario in GCAM-USA using ccs_supply_lowest.xml in gcamdata/xml/ and it gave me the following error:

Parsing ../input/gcamdata/xml/ccs_supply_lowest.xml scenario component. Parsing ../input/gcamdata/xml/no_offshore_ccs.xml scenario component. XML parsing complete. Starting new scenario: NEWdac_netzero_usa_global_ssp2_highEV_lowCCS SEVERE ERROR: Missing technology in subresource: USA, onshore carbon-storage, onshore carbon-storage

I checked Cstorage_USA.xml, which does have technology under subresource (resource / subresource / technology), but ccs_supply_lowest.xml does not (resource / subresource).

pkyle commented 2 years ago

The issue here is that ccs_supply_lowest.xml isn't designed to be run with GCAM-USA. The first few lines of the Cstorage_USA.xml file delete the USA's representation of carbon storage supply curves:

        <region name="USA">
            <resource delete="1" name="onshore carbon-storage"/>
            <supplysector name="carbon-storage">
                <subsector delete="1" name="onshore carbon-storage"/>
            </supplysector>
        </region>

That file then goes on to create state-level storage supply curves. Then when the ccs_supply_lowest.xml file is read in, the deleted resource and sector is partially re-created, but that's not what is wanted. If you want this to apply to non-US regions, then still read in that file, just make sure to read it in before Cstorage_USA.xml so that the USA supply curves get deleted properly. Then if you want those assumptions applied to the state-level supply curves, you'll need to apply the assumptions of that ccs_supply_lowest.xml file to the individual states (probably in a separate XML file).