Skip to content

More flexible listing of external scenarios

Compare
Choose a tag to compare
@romainsacchi romainsacchi released this 08 Apr 14:24
· 381 commits to master since this release

THe use of external scenarios is no longer determined by the IAM scenario.

Hence, this now works:

fp = "/Users/romain/GitHub/RTE_scenarios/datapackage.json"
rte = Package(fp)

scenarios = [
{"model": "image", "pathway":"SSP2-Base", "year": 2020, "external scenarios": [{"scenario": "Reference - M0", "data": rte}]},
{"model": "image", "pathway":"SSP2-Base", "year": 2050, "external scenarios": [{"scenario": "Reference - M0", "data": rte}]},
{"model": "image", "pathway":"SSP2-RCP26", "year": 2050, "external scenarios": [{"scenario": "Reference - M0", "data": rte}]},
{"model": "image", "pathway":"SSP2-RCP26", "year": 2050, "external scenarios": [{"scenario": "Reference - N03", "data": rte}]},
{"model": "image", "pathway":"SSP2-RCP26", "year": 2050, "external scenarios": [{"scenario": "Extensive reindustrialization - M23", "data": rte}]},
{"model": "image", "pathway":"SSP2-RCP19", "year": 2050, "external scenarios": [{"scenario": "Extensive reindustrialization - M23", "data": rte}]},
{"model": "remind", "pathway":"SSP2-PkBudg1150", "year": 2050, "external scenarios": [{"scenario": "Sobriety - M23", "data": rte}]},
#{"model": "remind", "pathway":"SSP2-Base", "year": 2025},
]

ndb = NewDatabase(
scenarios = scenarios,
source_db="ecoinvent 3.9.1 cutoff",
source_version="3.9.1",
key='xxxx',
use_multiprocessing=True
)

External scenarios to use are passed directly in the list of scenarios. Also, any external scenario cna be used with any IAM scenario. Finally, we pass a list, meaning that several external scenarios can be considered per scenario.