-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from iiasa/chilled/restruct
Restructure CHILLED code to be more trackable and customizable
- Loading branch information
Showing
50 changed files
with
4,872 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,7 @@ doc/_build | |
.DS_Store | ||
|
||
# Scratch code | ||
scratch* | ||
scratch* | ||
|
||
# CHILLED user settings | ||
user_settings.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
.. currentmodule:: message_ix_buildings.chilled | ||
|
||
CHILLED (:mod:`.chilled`) | ||
************************* | ||
|
||
:mod:`.chilled` (Cooling and HeatIng gLobaL Energy Demand) is a model that assesses the impacts of climate change (temperature change). | ||
|
||
Methods | ||
======= | ||
|
||
|
||
Data | ||
==== | ||
|
||
Input data | ||
---------- | ||
|
||
|
||
Parameters | ||
---------- | ||
|
||
In this module, the "version" refers to the version of the model, not the version of the data. For example, the "ALPS2023" version refers to the set of scenario inputs/parameters for the "ALPS2023" run. | ||
When specifying a version, CHILLED will look in the `/data/chilled/version` directory that the version name exists and that the following files exist as well: | ||
|
||
- `arch_input_reg.xlsx` (or `arch_input.xlsx`) | ||
- `arch_regions.xlsx` | ||
- `par_var.csv` | ||
- `runs.csv` | ||
|
||
Usage | ||
===== | ||
|
||
The preprocessing (preparing MESSAGE region rasters and country codes) happens without specifying GCM or RCP scenario. Therefore, it can be run first on its own using the following command (from within :mod:`chilled.run`): | ||
|
||
.. code-block:: bash | ||
python -m preprocess.py -version "version_name" | ||
If the `-version` command is not provided, then the default version is "ALPS2023". | ||
|
||
The main model can be run using the following command: | ||
|
||
.. code-block:: bash | ||
python -m main.py -version "version_name" -gcm "gcm_name" -rcp "rcp_name" | ||
If the `-version` command is not provided, then the default version is "ALPS2023". | ||
If the `-gcm` and `-rcp` commands are not provided, then the default GCM is "GFDL-ESM2M" and the default RCP is "baseline". | ||
|
||
|
||
Code reference | ||
============== | ||
|
||
.. automodule:: message_ix_buildings.chilled | ||
:members: | ||
|
||
.. currentmodule:: message_ix_buildings.chilled.preprocess.message_raster | ||
|
||
Create raster of MESSAGE regions (:mod:`~.chilled.preprocess.message_raster`) | ||
----------------------------------------------------------------------------- | ||
|
||
.. automodule:: message_ix_buildings.chilled.preprocess.message_raster | ||
:members: | ||
|
||
.. autosummary:: | ||
|
||
create_message_raster | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
message_ix_buildings/chilled/aggregate.py → ...x_buildings/chilled/analysis/aggregate.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
message_ix_buildings/chilled/check_pop.py → ...x_buildings/chilled/analysis/check_pop.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.