Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rationalize regional support #20

Open
DentonGentry opened this issue Feb 8, 2020 · 0 comments
Open

Rationalize regional support #20

DentonGentry opened this issue Feb 8, 2020 · 0 comments
Labels
design enhancement New feature or request large-project This is a very large meta-issue, and will turn into a number of individual issues as it proceeds. Python Model

Comments

@DentonGentry
Copy link
Contributor

A goal for Project Drawdown going forward is to support modelling efforts at scales more focussed than the entire world. It is a goal to support solution models where, for example, the top level is the United States, or India, or similar and the major regions are the states and territories.

There are two places in the Python model implementation which know the set of regions supported:

model/dd.py:

REGIONS = [
    'World',
    'OECD90', 'Eastern Europe', 'Asia (Sans Japan)', 'Middle East and Africa',
    'Latin America',
    'China', 'India', 'EU', 'USA'  # special countries
]
MAIN_REGIONS = REGIONS[1:6]
SPECIAL_COUNTRIES = REGIONS[6:]
COUNTRY_REGION_MAP = {'China': 'Asia (Sans Japan)', 'India': 'Asia (Sans Japan)',
    'EU': 'OECD90', 'USA': 'OECD90'}

model/emissionsfactors.py:conv_ref_grid_CO2eq_per_KWh()

# Generation mixes from the AMPERE/MESSAGE WG3 BAU scenario, direct and
# indirect emission factors by fuel from the IPCC WG3 Annex III Table A.III.2
# https://www.ipcc.ch/pdf/assessment-report/ar5/wg3/ipcc_wg3_ar5_annex-iii.pdf
result.loc[:, "OECD90"] = 0.454068989
result.loc[:, "Eastern Europe"] = 0.724747956
result.loc[:, "Asia (Sans Japan)"] = 0.457658947
result.loc[:, "Middle East and Africa"] = 0.282243907
result.loc[:, "Latin America"] = 0.564394712
result.loc[:, "China"] = 0.535962403
result.loc[:, "India"] = 0.787832379
result.loc[:, "EU"] = 0.360629290
result.loc[:, "USA"] = 0.665071666

Implementing a different set of regions currently requires forking the codebase, or developing on a branch. There should instead be a way to accommodate multiple datasets and sets of regions in a single branch.

brodavi added a commit that referenced this issue Jun 15, 2021
adding an update to the workbook's `updated_at` when a user patches a
variation
denised added a commit that referenced this issue Jun 26, 2021
Workbook Detail cards display accurate "last updated" data #20
@denised denised added design large-project This is a very large meta-issue, and will turn into a number of individual issues as it proceeds. Python Model labels Oct 23, 2021
@denised denised added the enhancement New feature or request label Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design enhancement New feature or request large-project This is a very large meta-issue, and will turn into a number of individual issues as it proceeds. Python Model
Projects
None yet
Development

No branches or pull requests

2 participants