Giter Club home page Giter Club logo

Comments (3)

ssmithClimate avatar ssmithClimate commented on May 13, 2024

There are two parts to doing this.

First, you want to delete the existing GDP control object (or not read it in in the first place). Second, add the linear-control object:

Here is an example of doing both of these in one add-on XML file (although these can be done in separate add on XML files as well).

<?xml version="1.0" encoding="UTF-8"?>
<scenario>
   <world>
      <region name="India">
         <supplysector name="trn_freight_road" nocreate="1">
            <subsector name="Truck (5-9t)" nocreate="1">
               <stub-technology name="Liquids" nocreate="1">
                  <period year="1975">
                     <Non-CO2 name="BC">
                        <gdp-control delete="1" name="GDP_control"/>
                        <linear-control name="MFR">
                           <final-emissions-coefficient>7.63E-04</final-emissions-coefficient>
                           <start-year>2015</start-year>
                           <end-year>2030</end-year>
                        </linear-control>
                     </Non-CO2>
                  </period>
               </stub-technology>
            </subsector>
          </supplysector>
      </region>
   </world>
</scenario>

This example linearly ramps the 2015 emission factor for this technology down to a small value in 2030.

This same input can be added to a future period (e.g. ) so that it only takes effect from that vintage onward.

Note that we have identified a bug with the linear-control code in the current release. In some instances adding a linear-control will cause the code to error. We have a fix for this that will be in the next release, if you have problems let us know and we can help out with that.

from gcam-core.

robbieorvis avatar robbieorvis commented on May 13, 2024

Steve, thanks for the guidance. This is exactly what I was looking for. Will wait to give this a shot until the bug fix is pushed.

from gcam-core.

pralitp avatar pralitp commented on May 13, 2024

@robbieorvis, this bug is now fixed in GCAM 5.1.3

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.