You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/transport/index.rst
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,14 @@ MESSAGEix-Transport
3
3
4
4
.. warning::
5
5
6
-
MESSAGEix-Transport is **under development**.
6
+
1. MESSAGEix-Transport is **under development**.
7
+
For details, see:
7
8
8
-
- The code and data documented on these pages were recently :doc:`migrated </migrate>` from :mod:`.message_data`.
9
-
The text may still contain references to the old location.
10
-
- For details, see the `project board <https://github.com/orgs/iiasa/projects/29>`_.
9
+
- `Issues and PRs labeled 'transport' <https://github.com/iiasa/message-ix-models/issues?q=label%3Atransport>`_ on the :mod:`.message_ix_models` GitHub repository.
10
+
- The `project board <https://github.com/orgs/iiasa/projects/29>`_ (IIASA only).
11
+
12
+
2. The code and data documented on these pages were recently :doc:`migrated </migrate>` from the private :mod:`.message_data` repository to the public :mod:`message_ix_models` repository.
13
+
The text may still contain references to the old location.
11
14
12
15
:mod:`message_ix_models.model.transport` adds a technology-rich representation of transport to models in the MESSAGEix-GLOBIOM family.
13
16
The resulting “model variant” is variously referred to as:
@@ -19,7 +22,7 @@ The resulting “model variant” is variously referred to as:
19
22
MESSAGEix-Transport extends the formulation described by McCollum et al. (2017) :cite:`mccollum-2017` for the older, MESSAGE V framework that predated MESSAGEix.
20
23
Some inherited information about the older model is collected at :doc:`old`.
21
24
22
-
Information about MESSAGEix-Transport, its inputs, configuration, implementation, and output, are organized according to this diagram:
25
+
This documentation of MESSAGEix-Transport, its inputs, configuration, implementation, and output, are organized according to this diagram:
Copy file name to clipboardExpand all lines: doc/transport/input.rst
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,14 +9,14 @@ This page describes the structure and format of inputs required for building MES
9
9
10
10
Both input data and configuration are stored in files under :file:`message_ix_models/data/transport/`.
11
11
12
-
In most cases, these files are read from a subdirectory like :file:`/data/transport/{nodes}/`, where `nodes` denotes the :mod:`message_ix_models` :doc:`node code list </pkg-data/node>`—for instance, "R12"—for which MESSAGEix-Transport will be built.
13
-
This value is retrieved from the :attr:`Context.regions <.model.Config.regions>` setting.
12
+
In most cases, these files are read from a subdirectory like :file:`…/data/transport/{nodes}/`, where `nodes` denotes the :mod:`message_ix_models` :doc:`node code list </pkg-data/node>`—for instance, "R12"—for which MESSAGEix-Transport will be built.
13
+
This value is retrieved from the :attr:`.model.Config.regions` setting on a :class:`.Context` object.
14
14
15
-
- If the file data or configuration settings have a node (:math:`n`) dimension, the file **must** be placed in such a subdirectory.
15
+
- If the file data or configuration settings have a node (|n|) dimension, the file **must** be placed in such a subdirectory.
16
16
Data for one node list is not usable for base models using a different node list.
17
17
- For other data, a node list–specific file **may** be used.
18
-
If none exists, the file of the same name in :file:`/data/transport/` is used as a default.
19
-
For example, :file:`/data/transport/R12/set.yaml` is used if it exists; if not, then :file:`/data/transport/set.yaml` is used.
18
+
If none exists, the file of the same name in :file:`…/data/transport/` is used as a default.
19
+
For example, :file:`…/data/transport/R12/set.yaml` is used if it exists; if not, then :file:`…/data/transport/set.yaml` is used.
20
20
21
21
.. _transport-config:
22
22
@@ -27,8 +27,8 @@ General (:file:`config.yaml`, required)
27
27
---------------------------------------
28
28
29
29
The contents of this configuration file exactly map to the attributes of the class :class:`transport.Config <.transport.config.Config>`.
30
-
The class stores all the settings understood by the code for building, solving, and reporting MESSAGEix-Transport, including their default values.
31
-
(There is no common default like :file:`/data/transport/config.yaml`.)
30
+
The class stores all the settings understood by the code for building, solving, and reporting MESSAGEix-Transport.
31
+
The class also defines the default values for each setting (there is no file :file:`…/data/transport/config.yaml` containing defaults.)
32
32
It also has methods for reading the configuration from file; see the detailed description of :meth:`.Config.from_context`.
33
33
34
34
The following is the configuration file for a base model with R12 nodes:
@@ -41,14 +41,14 @@ Technology code list (:file:`technology.yaml`)
41
41
This file gives the code list for the MESSAGE ``technology`` concept/set/dimension.
42
42
Some annotations (``iea-eweb-flow``, ``input``, ``report``) and the :attr:`~sdmx.model.common.Code.child` hierarchy give information about technologies' grouping according to transport modes.
43
43
44
-
→ View :source:`data/transport/technology.yaml` on GitHub
44
+
→ View :source:`message_ix_models/data/transport/technology.yaml` on GitHub
45
45
46
46
Code lists for other MESSAGE sets (:file:`set.yaml`)
This file gives code lists for other MESSAGE concepts/sets/dimensions.
50
50
51
-
→ View :source:`data/transport/set.yaml` on GitHub
51
+
→ View :source:`message_ix_models/data/transport/set.yaml` on GitHub
52
52
53
53
.. _transport-data-files:
54
54
@@ -65,8 +65,10 @@ Through :func:`.transport.build.main` (ultimately, :func:`.transport.build.add_e
65
65
The file has column headers "node", "technology", and "value".
66
66
67
67
Not all files are currently or always used in model-building computations.
68
-
Some submodules of :mod:`~message_ix_models.model.transport` use additional data files via other mechanisms.
69
-
Most of the files have a header comment including a precise description of the quantity, source of the data, and units of measurement; in some cases extended information is below (where a header comment would be too long).
68
+
Some submodules of :mod:`~.model.transport` use additional data files via other mechanisms.
69
+
Most of the files have a header comment including a precise description of the quantity, source of the data, and units of measurement.
70
+
In some cases extended information is below (where a header comment would be too long).
71
+
The :program:`git` history of files, or the GitHub "blame" view can also be used to inspect the edit history of each file, line by line.
70
72
71
73
:file:`ldv-activity.csv` → ``ldv activity:n:exo``
72
74
-------------------------------------------------
@@ -223,7 +225,7 @@ Other files
223
225
Other data sources
224
226
==================
225
227
226
-
:mod:`~message_ix_models.model.transport` makes use of the :mod:`message_ix_models.tools.exo_data` mechanism to retrieve data from common (not transport-specific) sources.
228
+
:mod:`~.model.transport` makes use of the :mod:`.tools.exo_data` mechanism to retrieve data from common (not transport-specific) sources.
227
229
:class:`.DataSourceConfig`, :attr:`.transport.Config.ssp`, and other settings determine which sources and quantities are used.
0 commit comments