Clone the repository including its submodules:
git clone --recurse-submodules https://github.com/open-energy-transition/efuels-supply-potentials.git
Install the necessary dependencies using conda
or mamba
:
mamba env create -f submodules/pypsa-earth/envs/environment.yaml
Activate pypsa-earth
environment:
conda activate pypsa-earth
This project utilizes snakemake
to automate the execution of scripts, ensuring efficient and reproducible workflows. Configuration settings for snakemake are available in the configs/config.main.yaml
file.
To run country-level validation of the U.S. for the base scenario, navigate to the working directory (.../efuels-supply-potentials/
) and use the following command:
snakemake -call validate_all --configfile configs/calibration/config.base.yaml
or base scenario with alternative clustering option (AC):
snakemake -call validate_all --configfile configs/calibration/config.base_AC.yaml
- Note: Ensure that
planning_horizon
inconfigs/config.main.yaml
corresponds to a horizon of the base scenario. By default,planning_horizon
is set to 2020, which means that results are benchmarked agains 2020's historical data.
It is possible to run validation by specifying the output file with wildcards:
snakemake -call plots/results/US_2021/demand_validation_s_10_ec_lcopt_Co2L-24H.png --configfile configs/calibration/config.base.yaml
Validation results are stored in plots/results/
directory under scenario run name (e.g. US_2021
).
To run state-wise validation, run:
snakemake -call statewise_validate_all --configfile configs/calibration/config.base_AC.yaml
Rule name | Config file | Description |
---|---|---|
validate_all |
config.base.yaml , config.base_AC.yaml |
Performs country-level validation comparing with EIA and Ember data |
statewise_validate_all |
config.base_AC.yaml |
Performs statewise validation comparing with EIA data |
get_capacity_factors |
Any base or scenario config file | Estimates capacity factors for renewables |
retrieve_cutouts |
Any base or scenario config file | Retrieves US cutouts from google drive |
process_airport_data |
- | Performs analysis on passengers and jet fuel consumption data per state and generates plots and table |
test_modify_prenetwork |
Any base or scenario config file | Example rule that performs modiification of pre-network |