Skip to content

Commit

Permalink
Add USD-GDP deflators, remove exchange rate to EUR (#43)
Browse files Browse the repository at this point in the history
* Add USD-GDP deflators, remove exchange rate to EUR
* Make black
* Reinsert implicit USD-EUR currency conversion
  • Loading branch information
danielhuppmann authored Jul 24, 2023
1 parent f5ea3b0 commit f78a280
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
30 changes: 27 additions & 3 deletions iam_units/data/definitions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,33 @@ USD_2005 = 0.8038 * EUR_2005 = USD

# United States' GDP deflator, data from
# https://data.worldbank.org/indicator/NY.GDP.DEFL.ZS?locations=US

USD_2010 = USD_2005 * 83.426 / 91.718

# last update: 2023-06-29

USD_2015 = USD_2005 * 0.8358

USD_2000 = USD_2015 / 0.7453
USD_2001 = USD_2015 / 0.7621
USD_2002 = USD_2015 / 0.774
USD_2003 = USD_2015 / 0.7892
USD_2004 = USD_2015 / 0.8104
# USD_2005 = USD_2015 / 0.8358
USD_2006 = USD_2015 / 0.8616
USD_2007 = USD_2015 / 0.8849
USD_2008 = USD_2015 / 0.9019
USD_2009 = USD_2015 / 0.9077
USD_2010 = USD_2015 / 0.9186
USD_2011 = USD_2015 / 0.9377
USD_2012 = USD_2015 / 0.9552
USD_2013 = USD_2015 / 0.9719
USD_2014 = USD_2015 / 0.9901
# USD_2015
USD_2016 = USD_2015 / 1.01
USD_2017 = USD_2015 / 1.0292
USD_2018 = USD_2015 / 1.054
USD_2019 = USD_2015 / 1.0729
USD_2020 = USD_2015 / 1.0869
USD_2021 = USD_2015 / 1.1357
USD_2022 = USD_2015 / 1.2152

# Transportation activity

Expand Down
2 changes: 1 addition & 1 deletion iam_units/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def emissions():

# Format and write the species defs file
lines = [_EMI_HEADER]
for (species, alias) in _EMI_EQUIV.items():
for species, alias in _EMI_EQUIV.items():
lines.extend(
f"a_{a} = {factor or ''}a_{species}" for a, factor in alias.items()
)
Expand Down

0 comments on commit f78a280

Please sign in to comment.