From bad96d88bcec119e1caf2e6f9573f21af73f2b22 Mon Sep 17 00:00:00 2001 From: ekatef Date: Fri, 3 Jan 2025 11:26:55 +0100 Subject: [PATCH] Add main config --- configs/config.main.yaml | 77 ++++++++++++++++++++++++++++++++++++++ configs/config.sector.yaml | 29 ++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 configs/config.main.yaml diff --git a/configs/config.main.yaml b/configs/config.main.yaml new file mode 100644 index 000000000..2d5780d06 --- /dev/null +++ b/configs/config.main.yaml @@ -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` diff --git a/configs/config.sector.yaml b/configs/config.sector.yaml index a7785a749..d4b885337 100644 --- a/configs/config.sector.yaml +++ b/configs/config.sector.yaml @@ -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 @@ -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