Reproduce the RES (model.bare)
In contrast to model.create, this module creates the RES ‘from scratch’.
create_res() begins by creating a new, totally empty Scenario and adding data to it (instead of cloning and modifying an existing scenario).
Note
Currently, the Scenario returned by create_res()…
is not complete, nor the official/preferred version of MESSAGEix-GLOBIOM, and as such must not be used for actual research,
however, it should be used for creating unit tests of other code that is designed to operate on MESSAGEix-GLOBIOM scenarios; code that works against the bare RES should also work against MESSAGEix-GLOBIOM scenarios.
bare.get_spec() can also be used directly, to get a description of the RES based on certain settings/options, but without any need to connect to a database, load an existing Scenario, or call bare.create_res().
This can be useful in code that processes data into a form compatible with MESSAGEix-GLOBIOM.
Context settings
Setting |
Type |
Description |
|---|---|---|
regions |
str |
The ‘node’ set (regional aggregation) to use; must be “R14” (default), “R11”, “RCP” or “ISR”. |
years |
str |
The ‘year’ set (time periods) to use; must be “B” (default) or “A”. |
res_with_dummies |
bool |
If |
See documentation for further context settings in Top-level settings.