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
58 59 60 61 62 63 64 65 66 67 68 69 70 | |
read_remind_em_prices(remind_outp_dir, region)
Read relevant REMIND data from the output directory. Args: remind_outp_dir (os.PathLike): Path to the REMIND output directory. region (str): Remind region to filter the data by. Returns: dict: Dictionary containing REMIND data.
Source code in workflow/scripts/remind_coupling/make_pypsa_config.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |