Code Monkey home page Code Monkey logo

Comments (6)

realxinzhao avatar realxinzhao commented on May 27, 2024 1

Hi @jiangyongye,
You probably want to try using zero share-weight for imported. I doubt negative values would work if not throwing an error. Also, make sure there were no interpolation rules for share-weights, which could overwrite your changes.

Are you using GCAM v7? FYI, there are some trade queries included in the Model Interface there. You want to check imported corn results instead of traded_corn (export) in this case.

I believe crop trade was not differentiated across SSPs (regional markets for crops were not created back then). Only biomass trade was.

from gcam-core.

pkyle avatar pkyle commented on May 27, 2024 1

So here the technology share-weights don't really do anything; in the structure (supplysector / subsector / technology), there are 2 levels of nested logit choice competition, but in this example we're only using one, and it's at the subsector level. So while the -100 may have been turned into a zero by the model code (negative share-weights aren't actually allowed), and that zero technology share-weight might have been passed up to the subsector level and caused its output to similarly be zero, I don't know that I'd expect for this to work as intended. I'd recommend doing the following, if you're just making changes directly to the XML file:
`

                <share-weight fillout="1" year="1975">1</share-weight>
                <share-weight fillout="1" year="2070">0</share-weight>
                <interpolation-rule apply-to="share-weight" from-year="2015" to-year="2069">
                    <interpolation-function name="fixed"/>
                </interpolation-rule>

`

from gcam-core.

pkyle avatar pkyle commented on May 27, 2024 1

And in reply to the question about SSP3, the SSP scenarios were constructed in 2014 in support of papers published in 2017, and while the capability to run them has been maintained since that time, their further development has not been a focal effort. The trade structure in ag_trade.xml was developed more recently, and only added to the core model within the last year or two. Its development was not complemented with any concurrent efforts to generate SSP-specific storylines of agricultural commodity trade and market integration.

from gcam-core.

jiangyongye avatar jiangyongye commented on May 27, 2024 1

Both big thanks for the detailed answers to you guys! That's really helpful : ) !
Yeah, you are so right. the share-weight under technology should not be set to a negative number. I did this, and it broke the baseX database so I just can not open it in Model interface.
image
So if I want to set a scenario, for example, china will not import any corn starting in 2030.
Is that should be like this
image

and one more question (sorry for too many questions)
like how can we delete some scenarios we ran just for test something? I did not find a button or something in the model interface that can do that

from gcam-core.

pkyle avatar pkyle commented on May 27, 2024 1

File -> Manage DB -> [select scenarios] -> Remove
Note that removing scenarios from a database masks them from view, but doesn't reduce the file size of a database. There isn't really any way to reduce the file size of a database, but scenarios can be exported to XML (File -> Manage DB -> [select scenarios] -> Export), and re-imported into a clean database.

from gcam-core.

jiangyongye avatar jiangyongye commented on May 27, 2024

Follow up question
With my little knowledge, I believe that SSP3 has a large international trade barrier compared to other SSPs.
But I see in all ssp gcam config files that they all use ag_trade.xml.
So how gcam represent the agriculture trade barrier in the SSP3 scenario?

from gcam-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.