Make pypsa config
Script to create a PyPSA config file based on the REMIND output/config. NB: Needs to be run before the coupled PyPSA run.
Example
!! config file name needs to match the output of the snakemake rule
snakemake config_file_name -f --cores=1 # makes config_file_name
snakemake --configfile=config_file_name
# the run
get_currency_conversion(template_cfg)
Get the currency conversion factor from the template config.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
template_cfg
|
dict
|
The template configuration dictionary. |
required |
Returns:
Name | Type | Description |
---|---|---|
float |
float
|
The currency conversion factor. |
Source code in workflow/scripts/remind_coupling/make_pypsa_config.py
read_remind_em_prices(remind_outp_dir, region)
Read relevant REMIND data from the output directory.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
remind_outp_dir
|
PathLike
|
Path to the REMIND output directory. |
required |
region
|
str
|
Remind region to filter the data by. |
required |
Returns:
Name | Type | Description |
---|---|---|
dict |
dict
|
Dictionary containing REMIND data. |