Skip to content

Commit

Permalink
Add main config
Browse files Browse the repository at this point in the history
  • Loading branch information
ekatef committed Jan 3, 2025
1 parent f3ab5c7 commit bad96d8
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 0 deletions.
77 changes: 77 additions & 0 deletions configs/config.main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors
#
# SPDX-License-Identifier: CC0-1.0

version: 0.6.0
tutorial: false

logging:
level: INFO
format: "%(levelname)s:%(name)s:%(message)s"

results_dir: results/
summary_dir: results/
costs_dir: data/ # TODO change to the equivalent of technology data

foresight: overnight

# Can be replaced by country ["NG", "BJ"], continent ["Africa"] or user-specific region, see more at https://pypsa-earth.readthedocs.io/en/latest/configuration.html#top-level-configuration
countries: ["KZ"]

enable:
retrieve_databundle: true # Recommended 'true', for the first run. Otherwise data might be missing.
retrieve_databundle_sector: true
retrieve_cost_data: true # true: retrieves cost data from technology data and saves in resources/costs.csv, false: uses cost data in data/costs.csv
download_osm_data: true # If 'true', OpenStreetMap data will be downloaded for the above given countries
build_natura_raster: false # If True, then an exclusion raster will be build
build_cutout: false
# If "build_cutout" : true, then environmental data is extracted according to `snapshots` date range and `countries`
# requires cds API key https://cds.climate.copernicus.eu/api-how-to
# More information https://atlite.readthedocs.io/en/latest/introduction.html#datasets
progress_bar: true # show progress bar during downloading routines and other long-running tasks

custom_rules: [] # Default empty [] or link to custom rule file e.g. ["my_folder/my_rules.smk"] that add rules to Snakefile

run:
name: "" # use this to keep track of runs with different settings
sector_name: "" # use this to keep track of sector scenario runs
shared_cutouts: true # set to true to share the default cutout(s) across runs
# Note: value false requires build_cutout to be enabled
allow_scenario_failure: false # If True, the workflow will continue even if a scenario in run_scnenario fails

scenario:
simpl: [""]
ll: ["copt"]
clusters: [10]
opts: [Co2L-3H]
planning_horizons: # investment years for myopic and perfect; or costs year for overnight
- 2030
sopts:
- "144H"
demand:
- "AB"

snapshots:
start: "2013-01-01"
end: "2013-01-07"
inclusive: "left" # end is not inclusive

augmented_line_connection:
add_to_snakefile: false # If True, includes this rule to the workflow
connectivity_upgrade: 2 # Min. lines connection per node,
# https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.connectivity.edge_augmentation.k_edge_augmentation.html#networkx.algorithms.connectivity.edge_augmentation.k_edge_augmentation
new_line_type: ["HVAC"] # Expanded lines can be either ["HVAC"] or ["HVDC"] or both ["HVAC", "HVDC"]
min_expansion: 1 # [MW] New created line expands by float/int input
min_DC_length: 600 # [km] Minimum line length of DC line

load_options:
ssp: "ssp2-2.6" # shared socio-economic pathway (GDP and population growth) scenario to consider
prediction_year: 2030 # Load scenarios available with different prediction year (GDP, population)
scale: 1 # scales all load time-series, i.e. 2 = doubles load

# originates from sector part
demand_data:
update_data: true # if true, the workflow downloads the energy balances data saved in data/demand/unsd/data again. Turn on for the first run.
base_year: 2019
other_industries: false # Whether or not to include industries that are not specified. some countries have has exaggerated numbers, check carefully.
aluminium_year: 2019 # Year of the aluminium demand data specified in `data/AL_production.csv`
29 changes: 29 additions & 0 deletions configs/config.sector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,27 @@

version: 0.4.1

policy_config:
hydrogen:
temporal_matching: "no_res_matching" # either "h2_yearly_matching", "h2_monthly_matching", "no_res_matching"
spatial_matching: false
additionality: false # RE electricity is equal to the amount required for additional hydrogen export compared to the 0 export case ("reference_case")
allowed_excess: 1.0
is_reference: false # Whether or not this network is a reference case network, relevant only if additionality is _true_
remove_h2_load: false #Whether or not to remove the h2 load from the network, relevant only if is_reference is _true_
path_to_ref: "" # Path to the reference case network for additionality calculation, relevant only if additionality is _true_ and is_reference is _false_
re_country_load: false # Set to "True" to force the RE electricity to be equal to the electricity required for hydrogen export and the country electricity load. "False" excludes the country electricity load from the constraint.

# originates from sector part
demand_data:
update_data: true # if true, the workflow downloads the energy balances data saved in data/demand/unsd/data again. Turn on for the first run.
base_year: 2019
other_industries: false # Whether or not to include industries that are not specified. some countries have has exaggerated numbers, check carefully.
aluminium_year: 2019 # Year of the aluminium demand data specified in `data/AL_production.csv`

fossil_reserves:
oil: 100 #TWh Maybe redundant

sector:
gas:
spatial_gas: true # ALWAYS TRUE
Expand Down Expand Up @@ -150,6 +171,14 @@ sector:
shift_to_elec: true # If true, residential and services demand of coal is shifted to electricity. If false, the final energy demand of coal is disregarded
lignite:
spatial_lignite: false
oil:
spatial_oil: true

international_bunkers: false #Whether or not to count the emissions of international aviation and navigation

co2_network: true
co2_sequestration_potential: 200 #MtCO2/a sequestration potential for Europe
co2_sequestration_cost: 10 #EUR/tCO2 for sequestration of CO2

hydrogen_underground_storage: true
shipping_hydrogen_liquefaction: false
Expand Down

0 comments on commit bad96d8

Please sign in to comment.