Skip to content

Commit

Permalink
Merge pull request KTH-dESA#9 from KTH-dESA/fix_naming_convention
Browse files Browse the repository at this point in the history
Fix naming convention
  • Loading branch information
willu47 authored Oct 29, 2019
2 parents eed109b + 91f830b commit 7e84fba
Show file tree
Hide file tree
Showing 11 changed files with 534 additions and 1 deletion.
82 changes: 82 additions & 0 deletions Notes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
In the TEMBA_03_07_Reference scenario I have changed the demands for the following countries since in the previous model the electricity demand was decreasing between 2016 and 2021.
Botswana
Ghana
Lesotho
Mali
Mozambique
Namibia
Swaziland
Zambia
Zimbabwe

Oil demands:
Benin
Botswana
Mauritania
Namibia
Swaziland

Biomass projection:
Democratic Republic of the Congo
Equatorial Guinea
Ethiopia
Gabon
Guinea-Bissau
Liberia
Mozambique
Nigeria
United Republic of Tanzania
Uganda
Zambia
Zimbabwe


Coal:
Lesotho
Nigeria

I updated the investments in Geothermal in Ethiopia (also in the other scenarios)
I updated the electricity export/import prices for trades outside of Africa assuming 0.3 USD/kWh or 85 USD/GJ to 100 USD/GJ to 115 USD/GJ to 130 USD/GJ


I updated the Capital costs of LNG and Regasification terminals. The variable cost of the technology is not included.

I update the max capacity investments in solar in Cameroon, TD, CAF, CG, TD


In the TEMBA_05_07_1.5 model I have increased the annual emission limit of DZ and LY the period 2068-2070 since the model was giving an error in 2069.


I updated the Gas demands and Coal of the Northern countries.

The 23 version has the solar CF for the following technologies updated:
Only for Solar (no storage) the CF for PV. Reducing it at night to .05 (daypart2). Upping it during the day (daypart 1) to take up what was removed from the night (daypart 2)
Zambia, Zimbabwe, Botswana, Somalia, Kenya.

The 27th revision includes:
The following changes have been implemented:
- 100 MW burundi geothermal potential
- Chad set up a lower upper limit on solar investments annualy
- BF block nuclear investments
- Zimbabwe hydro potential 2.2 GW
- Namibia 2 GW of hydropotential
- Allow Diesel investments in the first years on the countries that have backstop technologies
(CF: until 2020, CM: until 2019, Guinea Bissau: until 2018, Mali: until 2019, SO: until 2019, TZ: until 2019)

1.5oC:
- Namibia hydro potential (2 GW)
- South Africa 2.285 Max capacity (no new investments)
- Mozambique 5.569GW max capacity hydro potential
- Zimbabwe hydro potential 2.2GW

Allow investments on LFO stand alone generators to all the countries starting from 2015.

Version: 13_09
- Updated the water factors for CCS technologies
- Updated the water factors for nuclear power plants - assign 0 water factor for nuclear plants to the coastal countries

Version: 21_10
- Include water withdrawal in uranium extraction technologies
- Updated the capital costs of LNG terminals
- Updated variable costs of wind, solar and uranium extraction (BW,GN,NE,TZ,ZM) technologies
- Include transportation losses for the non-electricity fuels (5% assumed)
115 changes: 115 additions & 0 deletions fix_naming_convention/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# New Naming conventions

## Country codes: 3 characters

## Fuel codes: 6 characters (Except from the intermediate fuels for NG pipeline)


`^^^___`: first three characters 01-03 represent country code

`___^^^`: last three characters 04-06
- list of fuels: `ETH, CO1, CO2, BIO, COA, LFO, GAS, HFO, SOL, WIN, URN, CHA, WA1, WA2, EL1, HE2, EL2, FW3, HE3, EL3, HF3, LF3, CH3, GA3, CO3, BO3, CR3, DEL, DLG, DNG`
- the fuels that have number `3` at the end represent the final energy demand `FW3, HE3, EL3, HF3, LF3, CH3, GA3, CO3, BO3, CR3`
- the fuels that have the description `GASP` at the end represent the intermediate fuels for NG pipeline

** Note: `CO1, CO2, CO3, BO3` the first two are characters and only the last one is a number

## Tech codes: 12 characters

### Currently not following any coding

`BACKSTOP`

### Power generation technologies/Power plants:

`^^^_________`: first three characters 01-03 represent country code

`___^^^______`: character 04-06 represent the type of fuel (`BIO, COA, CHA, CO1, CO2, EL1, EL2,
ETH, GEO, HE2, HFO, HYD, LFO, NGA, BIO, URN, SOL, WA2, WIN, LNG`) . Note `LNG` is not in the list of fuels but it has been added as a code in the technologies to distinguish between natural gas imports and LNG imports.

`______^^____`: character 07-08 represent the type of technology (`CH`: biomass CHP plant, `SC`:Superctritical coal, `CV`: conventional geothermal, `GC`: gas cycle, `LS`: large size hydro, `MS`: medium size hydro, `SS`: small size hydro, `SA`: stand alone, `RC`: LFO, `CC`: combined cycle, `PW`: pressurized water reactor (nuclear), `CN`: CSP (without storage), `CS`: CSP (with storage), `PU`: PV(utility), `PR`: PV(roof top), `PS`: PV (with storage), `ON`: onshore (wind), `OF`: offshore (wind)

`________^___`: character 09 represent if the technology includes CCS or not. (`P`: its a power
generation tech. without CCS, `C`: its a power generation tech. with CCS)

`_________^^_`: character 10-11 represent the cooling type (`00`: means that the cooling type is not one of the following; `01`-`04`: `AIR, MDT, NDT, OTF/OTS`.

Hint: If it is `00` then that means that a cooling type of the following: AIR, MDT, NDT, OTF/OTS has
not been assigned to the power generation technology (example: hydro, wind).
In example Solar PV has `00` as cooling type but a water factor has been assigned to that technology.

`___________^`: character 12 represent if the power plant is Old (code: O) or New (code: N) or if there is no distinction (code: X)

### Extraction/import/export technologies:

`^^^_________`: first three characters 01-03 represent country code

`___^^^______`: character 04-06 represent the type of fuel (BIO, COA, CHA, CO1, CO2, EL1, EL2, ETH, GEO, HE2, HFO, HYD, LFO, NGA, BIO, URN, SOL, WA2, WIN, LNG)

`______^^____`: character 07-08 represent the type of technology (IM: imports, PR: production, EX: exports).
Hint: Exports are represented in a different way in this model

`________^___`: character 09 will be P in this case.

`_________^^_`: character 10-11 represent the cooling type, so code:00 since a cooling type has not been assigned to the technology

`___________^`: character 12 since there is no distinction (code: X)


### Transmission & distribution, Process:

`^^^_________`: first three characters 01-03 represent country code

`___^^^______`: character 04-06 represent the type of fuel (`BIO, COA, CHA, CO1, CO2, EL1, EL2, ETH, GEO, HE2, HFO, HYD, LFO, NGA, BIO, URN, SOL, WA2, WIN, LNG`)

`______^^____`: character 07-08 represent the type of technology (
`TR`: transmission, `DI`: distribution)
Hint: the process technologies have `DI` as code.

`________^___`: character 09 will be `P` in this case.

`_________^^_`: character 10-11 represent the cooling type, so code: `00` since a cooling type has not been assigned to the technology

`___________^`: character 12, since there is no distinction the code: `X`


### Conversion technologies (new naming ???):

- (old) `CRUDPROX` --> (new) `CO1??????` = Crude oil refinery capacity
- (old) `CRUDRE1X` --> (new) `CO2??????` = Crude oil refinery 1
- (old) `CRUDRE2X` --> (new) `CO2??????` = Crude oil refinery 2

## Trade links (new naming ?):

### Exports_EL

(old) `^^EL^^BP00`: where ^^ country codes
(new) `^^^EL1EX????`

2) Exports_NG
(old) `^^NG^^BP00`: where ^^ country codes
(new) `^^^NGAEX????`

VII) Intermediate_NG:
(old)`^^NG00IPIX`: where ^^ country codes
(new)`^^^NGA??????`


## Emission factors: 6 characters

`^^^___`: first three characters 01-03 represent country code

`___^^^`: last three characters represent `CO2`, `REN`.
*the other emission factors have not been used.

## Timeslices: 4 characters

`^^__`: first two characters represent season (S1-S4)

`__^^`: last two characters represent dayparts (D1,D2)


# Old Naming conventions

(Vignesh has already the scripts to read the technologies/fuels --> to be checked)

49 changes: 49 additions & 0 deletions fix_naming_convention/countrycode.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Country code (Old),Country code (New),Country Name
DZ,DZA,Algeria
AO,AGO,Angola
BJ,BEN,Benin
BW,BWA,Botswana
BF,BFA,Burkina Faso
BI,BDI,Burundi
CM,CMR,Cameroon
CF,CAF,Central African Republic
TD,TCD,Chad
CD,COD,Congo Democratic Republic
CG,COG,Congo People Republic
CI,CIV,Cote d'Ivoire
DJ,DJI,Djibouti
EG,EGY,Egypt
GQ,GNQ,Equatorial Guinea
ER,ERI,Eritrea
ET,ETH,Ethiopia
GA,GAB,Gabon
GM,GMB,Gambia
GH,GHA,Ghana
GN,GIN,Guinea
GW,GNB,Guinea-Bissau
KE,KEN,Kenya
LS,LSO,Lesotho
LR,LBR,Liberia
LY,LBY,Libya
MW,MWI,Malawi
ML,MLI,Mali
MR,MRT,Mauritania
MA,MAR,Morocco
MZ,MOZ,Mozambique
NM,NAM,Namibia
NE,NER,Niger
NG,NGA,Nigeria
RW,RWA,Rwanda
SN,SEN,Senegal
SL,SLE,Sierra Leone
SO,SOM,Somalia
ZA,ZAF,South Africa
SD,SDN,Sudan
SZ,SWZ,Swaziland
TZ,TZA,Tanzania
TG,TGO,Togo
TN,TUN,Tunisia
UG,UGA,Uganda
ZM,ZMB,Zambia
ZW,ZWE,Zimbabwe
SS,SSD,South Sudan
6 changes: 6 additions & 0 deletions fix_naming_convention/emissionfactor.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
code (Old),code (New),Description,Group,Colour
REN,,Emission factor that was used to model the RET targets for each country.,Emissions,aliceblue
CO2,,Emission factor for CO2,Emissions,aqua
CH4,,Emission factor for methane but it was not assigned in any fuel,Emissions,azure
N20,,Emission factor for Nitrous Oxide but it was not assigned in any fuel,Emissions,bisque
FGA,,Emission factor for Fluorinated gases but it was not assigned in any fuel,Emissions,blanchedalmond
40 changes: 40 additions & 0 deletions fix_naming_convention/fuelcode.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
code (Old),code (New),Description,Group,Colour
ETHA,ETH,Ethanol fuel,Primary level fuel,aliceblue
CRU1,CO1,Crude oil fuel,Primary level fuel,aqua
CRU2,CO2,Crude oil fuel - processed,Primary level fuel,azure
BIOM,BIO,Biomass fuel,Primary level fuel,bisque
COAL,COA,Coal fuel,Primary level fuel,blanchedalmond
LFOI,LFO,Light Fuel Oil fuel,Primary level fuel,bluegray
GASF,GAS,Gas fuel,Primary level fuel,blueviolet
HFOI,HFO,Heavy Fuel Oil fuel,Primary level fuel,brightblue
SOLA,SOL,Solar potential,Primary level fuel,brown
WIND,WIN,Wind potential,Primary level fuel,cadetblue
URAN,URN,Uranium fuel,Primary level fuel,chartreuse
CHAR,CHA,Charcoal fuel,Primary level fuel,coral
WAT1,WA1,Water withdrawal fuel,Water,cornsilk
WAT2,WA2,Water consumption fuel,Water,cyan
EL01,EL1,Electricity from power plants,Secondary level fuel,darkcyan
HE2X,HE2,Heat from power plants,Secondary level fuel,darkgray
EL02,EL2,Electricity after transmission,Secondary level fuel,darkgrey
FW3X,FW3,Total Firewood demand (non-power sector),Final Energy Demand,darkmagenta
HE3X,HE3,Total Heat demand,Final Energy Demand,darkorange
EL03,EL3,Total Electricity demand,Final Energy Demand,darkred
HF3X,HF3,Total Heavy Fuel Oil demand (non-power sector),Final Energy Demand,darkseagreen
LF3X,LF3,Total Light Fuel Oil demand (non-power sector),Final Energy Demand,darkslategray
CH3X,CH3,Total Charcoal demand (non-power sector),Final Energy Demand,darkturquoise
GA3X,GA3,Total Gas demand (non-power sector),Final Energy Demand,deeppink
CO3X,CO3,Total Coal demand (non-power sector),Final Energy Demand,dimgray
BO3X,BO3,Total Biofuel demand (non-power sector),Final Energy Demand,dodgerblue
CR3X,CR3,Total Crude Oil demand (for exports),Final Energy Demand,floralwhite
DUEL,DEL,Electricity exports to non-African countries,Tertiary level fuel,fuchsia
DULG,DLG,LNG exports to non-African countries,Tertiary level fuel,ghostwhite
DUNG,DNG,NG exports (via pipeline) to non-African countries,Tertiary level fuel,goldenrod
MAGASP,,Intermediate fuels for NG transferred through a pipeline (only countries that have NG pipelines); (Output fuel from the gas pipeline allocated in the exported country (e.g. DZNGMABP00) - Input fuel to the intermediate gas pipeline to the importing country (e.g. MANG00IPIX).),Intermediate fuel,gray
TNGASP,,Intermediate fuels for NG transferred through a pipeline (only countries that have NG pipelines); (Output fuel from the gas pipeline allocated in the exported country (e.g. DZNGMABP00) - Input fuel to the intermediate gas pipeline to the importing country (e.g. MANG00IPIX).),Intermediate fuel,greenyellow
DZGASP,,Intermediate fuels for NG transferred through a pipeline (only countries that have NG pipelines); (Output fuel from the gas pipeline allocated in the exported country (e.g. DZNGMABP00) - Input fuel to the intermediate gas pipeline to the importing country (e.g. MANG00IPIX).),Intermediate fuel,grey01
DJGASP,,Intermediate fuels for NG transferred through a pipeline (only countries that have NG pipelines); (Output fuel from the gas pipeline allocated in the exported country (e.g. DZNGMABP00) - Input fuel to the intermediate gas pipeline to the importing country (e.g. MANG00IPIX).),Intermediate fuel,grey03
UGGASP,,Intermediate fuels for NG transferred through a pipeline (only countries that have NG pipelines); (Output fuel from the gas pipeline allocated in the exported country (e.g. DZNGMABP00) - Input fuel to the intermediate gas pipeline to the importing country (e.g. MANG00IPIX).),Intermediate fuel,grey05
BJGASP,,Intermediate fuels for NG transferred through a pipeline (only countries that have NG pipelines); (Output fuel from the gas pipeline allocated in the exported country (e.g. DZNGMABP00) - Input fuel to the intermediate gas pipeline to the importing country (e.g. MANG00IPIX).),Intermediate fuel,grey07
GHGASP,,Intermediate fuels for NG transferred through a pipeline (only countries that have NG pipelines); (Output fuel from the gas pipeline allocated in the exported country (e.g. DZNGMABP00) - Input fuel to the intermediate gas pipeline to the importing country (e.g. MANG00IPIX).),Intermediate fuel,grey11
NEGASP,,Intermediate fuels for NG transferred through a pipeline (only countries that have NG pipelines); (Output fuel from the gas pipeline allocated in the exported country (e.g. DZNGMABP00) - Input fuel to the intermediate gas pipeline to the importing country (e.g. MANG00IPIX).),Intermediate fuel,grey13
TGGASP,,Intermediate fuels for NG transferred through a pipeline (only countries that have NG pipelines); (Output fuel from the gas pipeline allocated in the exported country (e.g. DZNGMABP00) - Input fuel to the intermediate gas pipeline to the importing country (e.g. MANG00IPIX).),Intermediate fuel,honeydew
Loading

0 comments on commit 7e84fba

Please sign in to comment.