Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 2022 #16

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions config_kz_2022.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# SPDX-FileCopyrightText: PyPSA-Earth and PyPSA-Eur Authors
#
# SPDX-License-Identifier: CC0-1.0

run:
name: "kz_default_2022" # use this to keep track of runs with different settings

year: 2022
15 changes: 15 additions & 0 deletions data/official_demand_2022.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
,Region,Consumption (GWh)
KZ.1_1_AC,Almaty,12668.035
KZ.2_1_AC,Akmola,10220.244
KZ.3_1_AC,Aktobe,7003.652
KZ.4_1_AC,Atyrau,6633.614
KZ.5_1_AC,East Kazakhstan,10141.381
KZ.6_1_AC,Mangystau,5237.189
KZ.7_1_AC,North Kazakhstan,1526.915
KZ.8_1_AC,Pavlodar,19037.441
KZ.9_1_AC,Karaganda,19060.667
KZ.10_1_AC,Kostanay,4549.648
KZ.11_1_AC,Kyzylorda,1833.042
KZ.12_1_AC,Turkestan,5964.851
KZ.13_1_AC,West Kazakhstan,2482.916
KZ.14_1_AC,Zhambyl,4798.349
8 changes: 7 additions & 1 deletion kz.smk
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@

if config['load_options'].get("rescale_demand", True):
try:
if config['year'] == 2022:
filepath_demand = "pypsa-kz-data/data/official_demand_2022.csv"
except:
filepath_demand = "pypsa-kz-data/data/official_demand.csv"

rule modify_demand:
input:
network="networks/" + RDIR + "elec_s{simpl}_{clusters}_ec_l{ll}_{opts}.nc",
gadm_demand_data="pypsa-kz-data/data/official_demand.csv",
gadm_demand_data=filepath_demand,
output:
network="networks/" + RDIR + "elec_s{simpl}_{clusters}_ec_l{ll}_{opts}_d.nc",
script:
Expand Down