gcam-core icon indicating copy to clipboard operation
gcam-core copied to clipboard

How to add an existing technology (FCEV) to a new subsector (Freight transport)?

Open panday1995 opened this issue 5 years ago • 3 comments

Hi, i'm trying to add FCEV into freight transport sector. Currently, I am directly modifying those CSV input files, like UCD_trn_data_CORE.csv.

for example, I add base-year energy consumption of FCEV freight transport in UCD_trn_data_CORE.csv as:

China,Freight,Truck,Truck (0-6t),FCEV,Hydrogen,energy,PJ/yr,0,,,,,,
China,Freight,Truck,Truck (6-14t),FCEV,Hydrogen,energy,PJ/yr,0,,,,,,
China,Freight,Truck,Truck (>14t),FCEV,Hydrogen,energy,PJ/yr,0,,,,,,

But even though I have added all the necessary parameters for FCEV, changed files like UCD_techs. But still those data do not apprear in the output xml files like transportation_UCD_CORE.xml

Any hints on how to do this would be very much appreciated

This is two files I have modified in order to get data like this in the freight road sector:

                        <period year="2065">
                            <loadFactor>0.47</loadFactor>
                            <minicam-non-energy-input name="non-energy">
                                <input-cost>0.2913</input-cost>
                            </minicam-non-energy-input>
                            <minicam-energy-input name="delivered gas">
                                <coefficient>1478.0904019</coefficient>
                                <market-name>China</market-name>
                            </minicam-energy-input>

UCD_trn_data_CORE.txt

UCD_techs.txt

panday1995 avatar Feb 28 '21 14:02 panday1995

Hi @panday1995, I'm very sorry for the delay in responding to this. Do you still need help on this? If so, I can transfer it to the gcam channel

russellhz avatar Feb 15 '22 19:02 russellhz

Hi @panday1995, I'm very sorry for the delay in responding to this. Do you still need help on this? If so, I can transfer it to the gcam channel

Hi @russellhz, Thanks for the reply. I've solved it by directly editing a .xml file, which requires me writing additional codes to deal with those files. But I am not sure if it is the most efficient way, so I'd like it to be transferred to gcam channel and get more insights if it is possible.

Thank you!

panday1995 avatar Feb 16 '22 04:02 panday1995

Adding a new transportation technology using gcamdata (rather than hand-editing the large XML file) requires adding rows with all necessary information to the inst/extdata/UCD_trn_data_CORE.csv file, and also to the A54.globaltranTech_*.csv files in the same folder.

pkyle avatar Feb 16 '22 16:02 pkyle