Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
327 commits
Select commit Hold shift + click to select a range
ddae6b5
Bump version number for ScenarioParameters
Jan 26, 2024
eaf775d
Host files at TuBerlin
Jan 26, 2024
7348096
Fix url filename
Jan 26, 2024
827862c
Use all parameters from 2019
Jan 29, 2024
c8214d2
Black&isort
Jan 29, 2024
9a17039
Add dynamic statusquo task generation for chp
Jan 29, 2024
bf68df1
Merge branch 'features/status2023' into features/status2023_update_mastr
Jan 29, 2024
2c56cd1
Add draft for heat demand parameter update
Jan 29, 2024
feb4f8a
Add heat demand scenario
Jan 29, 2024
0431ccf
Bump version number of heat-demands
Jan 29, 2024
25721b8
Map global paramaters status2023->2023
Jan 30, 2024
8ebd4c2
Comment heat parameter for status2023 as status2019 is used
Jan 30, 2024
40aaf16
Adjust minimum connection rate for all statusquo scenarios
Jan 30, 2024
b9a8da1
Add remark
Jan 30, 2024
4718888
Add plotting color for status2023 district heating areas
Jan 30, 2024
4893b07
Add remark
Jan 30, 2024
4dba767
Add status2023 to table
Jan 30, 2024
f07d547
Add status2023 to hh_electricity
Jan 30, 2024
7f28858
Add mv_grid_district task for status2023
Jan 30, 2024
b5bd92d
Bump version number of Household Demands
Jan 30, 2024
fa2d014
Adhoc fix demandregio_hh year column for status2023 to 2023
Jan 30, 2024
c9d1e0f
Merge branch 'features/status2023_update_scenario_parameters' into fe…
Jan 30, 2024
6548695
Merge branch 'features/status2023_cached_ffe' into features/status2023
Jan 30, 2024
bc4994c
Add link to changelog
Jan 30, 2024
4f9a35e
Merge pull request #175 from openego/features/status2023_update_mastr
iuljan Jan 30, 2024
afca9ae
Bump version number of osmtgmod
Jan 31, 2024
1174bcc
Add remark
Jan 31, 2024
122fee9
Fix er5 scenario to status2023
Jan 31, 2024
afdf65e
Bump version number of era5
Jan 31, 2024
5c9da97
Merge branch 'features/status2023_update_scenario_parameters' into fe…
Jan 31, 2024
a8b28c1
Update weather year in scenario paramters to 2023
Jan 31, 2024
200ce6f
Update weather year in scenario paramters to 2023
Jan 31, 2024
5846d2c
Add function to derive scenario year from name
Jan 31, 2024
bc26416
Make scenario generation more lean
Jan 31, 2024
2b74904
Fill empty columns with np.nan to allow multiplication
Jan 31, 2024
9a6d7ab
Add single quotes around scenario for sql-strings
Feb 1, 2024
b59a387
Set weather year to 2017 for CTS gas timeseries
nesnoj Feb 1, 2024
50f5726
Merge branch 'dev' into features/status2023
Feb 1, 2024
05dcd79
Reactivate task insert_cts_ind_demands, remove temporary DB restore a…
nesnoj Feb 1, 2024
9b012a0
Merge branch 'features/status2023_cached_ffe' into features/status2023
Feb 1, 2024
aacc888
Clone osmtgmod only if not existing
Feb 2, 2024
9b721f7
Black&isort
Feb 2, 2024
4c453af
Add status2023 to hh_electricity_demand
Feb 5, 2024
2b4b70a
Bump version number of HouseholdElectricityDemand
Feb 5, 2024
c2b6b3a
Fix cts_buildings to status2023
Feb 5, 2024
2796d02
Remove hard-coded scneario 2021
Feb 7, 2024
3cc1a12
Fix targets years in insert_society_data
Feb 7, 2024
4a81c49
Merge branch 'features/status2023_demandregio_households' into featur…
Feb 7, 2024
b2173b6
Use capital costs of dynamic scenario
Feb 7, 2024
936793b
Add central foreign buses for status2023
Feb 7, 2024
f73c0a6
Merge branch 'features/status2023_electrical_neighbours' into feature…
Feb 7, 2024
462dd48
Pass scn_name to entsoe_to_bus_etrago function
Feb 8, 2024
e08f411
Merge branch 'features/status2023_electrical_neighbours' into feature…
Feb 8, 2024
f5b9527
fix that the population year can differ from scenario year
Feb 8, 2024
66f66b8
Merge branch 'features/status2023_hh_electricity' into features/statu…
Feb 8, 2024
7e7c1cc
Revert "Fix targets years in insert_society_data"
Feb 8, 2024
8dd5bcb
Merge branch 'features/status2023_demandregio_households' into featur…
Feb 8, 2024
30b9619
Dynamise gaspipes status quo scenario generation
Feb 8, 2024
8ce62e8
Bump version number of GasNodesAndPipes
Feb 8, 2024
e62af4b
Make it a tuple
Feb 8, 2024
8eb9cc2
Dynamise gas areas status quo tasks
Feb 8, 2024
9c49330
Bump version number of GasAreas
Feb 8, 2024
e1ed031
Revert "fix that the population year can differ from scenario year"
Feb 8, 2024
4aba3ed
Dynamise CH4 production
Feb 8, 2024
be3c7c2
Bump version number of CH4Production
Feb 8, 2024
10bf55a
Merge pull request #206 from openego/features/status2023_hh_electricity
khelfen Feb 8, 2024
e97f725
Deactivate CH4 storages as not needed in StatusQuo
Feb 8, 2024
d3ed143
Deactivate GasNeighbours for same reasons
Feb 8, 2024
d67f5f7
Fix pipeline
Feb 8, 2024
cca9931
Add fake tasks
Feb 8, 2024
43df566
Fix import
Feb 8, 2024
9e0e047
Use status2023
Feb 8, 2024
8b13361
Merge branch 'features/status2023_update_mastr' into features/status2023
Feb 8, 2024
fa9640c
Change order of gas voronoi tasks
Feb 8, 2024
3eb9757
Make scn_name a sql string
Feb 8, 2024
dc857b7
Add status2023 to scenario capacities and dynamize status quo generation
Feb 9, 2024
f19d665
Merge remote-tracking branch 'origin/features/wrapped_partial' into f…
Feb 9, 2024
b54cc0f
dynamize status quo checks
Feb 9, 2024
fb3c4d7
specify todo
Feb 9, 2024
e9977e6
Dynamise powerplants status quo
Feb 9, 2024
34d748b
Bump version number for PowerPlants
Feb 9, 2024
7eb3c54
Add changelog entry
Feb 9, 2024
b25e252
Merge branch 'features/status2023' into features/status2023_heat_demand
iuljan Feb 9, 2024
12f031b
Merge pull request #199 from openego/features/status2023_heat_demand
iuljan Feb 9, 2024
c3d3167
Add changelog entry
Feb 9, 2024
8a9909a
Merge branch 'features/status2023' into features/status2023_osmtgmod
iuljan Feb 9, 2024
58a876c
Merge pull request #202 from openego/features/status2023_osmtgmod
iuljan Feb 9, 2024
c8efafa
Add changelog entry
Feb 9, 2024
1683a34
Merge branch 'features/status2023' into features/status2023_gasnodes
iuljan Feb 9, 2024
4645b02
Merge pull request #205 from openego/features/status2023_gasnodes
iuljan Feb 9, 2024
481ef44
Add logging for select_bus_id
Feb 12, 2024
fae0332
Make entsoe-token function
Feb 12, 2024
20231a7
Append exception message
Feb 12, 2024
3f090e1
Black&Isort
Feb 12, 2024
578a195
Fix
Feb 12, 2024
a321fbc
Raise error if opene returns none
Feb 12, 2024
a834e71
Hardcode generation capacity for GB in 2023
Feb 12, 2024
760df5d
Use replace get_terminal_size by shutil
Feb 12, 2024
7be635b
Merge branch 'fix/logger' into features/status2023
Feb 12, 2024
e596fe5
Fix index
Feb 12, 2024
4d3f48d
Add logging message
Feb 12, 2024
efaff8b
Use backup 2019 if country is not available at entsoe
Feb 12, 2024
9e0e841
fix pv rooftop to work without any future scenario
Feb 13, 2024
18f8faf
Fix string
Feb 13, 2024
655d9ad
update wind offshore
Feb 13, 2024
482e065
update storages to status2023
Feb 13, 2024
3653bce
fix wrong call to scenario_parameters
Feb 13, 2024
7028bb0
set dataset version number
Feb 13, 2024
00716c1
Minors
Feb 13, 2024
d90c47b
Move warning into exception
Feb 13, 2024
cf5c29c
Create empty df, if no return from entsoe
Feb 14, 2024
288ff72
Save retrieved data in working-dir
Feb 14, 2024
0e2b124
Black&Isort
Feb 14, 2024
64b2419
Only send unique cell_ids via sql query
Feb 15, 2024
5956627
Merge branch 'features/status2023_hh_electricity' into features/statu…
Feb 15, 2024
be9f9ec
Add countries only for retrieved data
Feb 15, 2024
8b3bcb2
Fix list-comprehension
Feb 15, 2024
a6a18b4
adapt heat tasks to work with any status quo scenario
Feb 16, 2024
4e5023e
fix status quo bulk heat pump generation
Feb 16, 2024
a8f2aef
Add casting to integer
Feb 16, 2024
f52ce9b
Rename variable
Feb 16, 2024
9eb8420
Merge branch 'features/status2023_hh_electricity' into features/statu…
Feb 16, 2024
b3f6690
Use session_scope()
Feb 16, 2024
25c1b01
Only call temperatue_profile_extract() once
Feb 16, 2024
35655b4
Define sql query in variable
Feb 16, 2024
949660b
Clean sql query
Feb 16, 2024
6e87a80
Get h_values for 2023
Feb 16, 2024
08005ca
Fix weather year for temp interval to 2023
Feb 16, 2024
84f6753
update scenario capacities for status2023 for small_storages and rura…
Feb 19, 2024
9cc6925
update scenario capacities for status2023 for small_storages and rura…
Feb 19, 2024
785cb8b
update dataset version
Feb 19, 2024
35a8fc2
Add status2023 to heat-etrago
Feb 19, 2024
47d1e3c
Set drop in qcut
Feb 19, 2024
de4a24b
Update fuel prices to 2023 forecast of tyndp 2020
Feb 20, 2024
df57df0
Add logging for osm dataset choice
Feb 20, 2024
c8de5aa
Merge branch 'features/status2023_update_osm' into features/status2023
Feb 20, 2024
034b296
Merge branch 'features/status2023_update_scenario_parameters' into fe…
Feb 20, 2024
9c827a9
Merge branch 'features/status2023_era5' into features/status2023
Feb 20, 2024
28f35b0
Merge branch 'features/status2023_update_emobility' into features/sta…
Feb 20, 2024
200ac58
Revert "Set drop in qcut"
Feb 20, 2024
f106881
Merge branch 'features/status2023_powerplants' into features/status2023
Feb 20, 2024
19d5965
Merge branch 'features/status2023-storages' into features/status2023
Feb 20, 2024
ef9d2db
Merge branch 'features/status2023_electrical_neighbours' into feature…
Feb 20, 2024
1aa738f
Merge branch 'features/status2023-heat' into features/status2023
Feb 20, 2024
3e290b3
Merge branch 'features/status2023_heat_demand_timeseries' into featur…
Feb 20, 2024
7b20482
Merge branch 'features/status2023_heat_etrago' into features/status2023
Feb 20, 2024
943502f
Merge branch 'features/status2023' into features/status2023-scenario-…
iuljan Feb 20, 2024
013a711
Merge pull request #208 from openego/features/status2023-scenario-cap…
iuljan Feb 20, 2024
0c201fe
Rename datasetvariable in pipeline
Feb 20, 2024
dd4c5d6
Merge branch 'features/status2023_gasnodes' into features/status2023
Feb 20, 2024
de020d6
Rename dataset variable for heat pumps in pipeline
Feb 20, 2024
f6c1248
Merge branch 'features/status2023-heat' into features/status2023
Feb 20, 2024
a79b157
Only give status2023 as default scenario
Feb 20, 2024
6bb4c6f
Only give status2023 as default scenario
Feb 20, 2024
ed0f051
Add comment
Feb 20, 2024
4f734b6
fix behaviour share ctd demands
CarlosEpia Feb 12, 2024
cf2e285
apply changes due to deprecated functions
CarlosEpia Feb 1, 2024
cdf347e
fix concat fill etrago loads
CarlosEpia Feb 15, 2024
427c892
include biomass into carrier dic
CarlosEpia Feb 15, 2024
8ecc530
include biomass CHP generators
CarlosEpia Feb 15, 2024
611a3f3
add new dependency to etrago_loads task
CarlosEpia Feb 15, 2024
c1df65c
Bump version number of ElectricalLoadEtrago
Feb 21, 2024
61bd008
bump demandregio version
CarlosEpia Feb 13, 2024
e7377b1
add parameter ousehold-demand-source to cli
CarlosEpia Jan 15, 2024
5ad85c1
download and import HH timeseries demand data
CarlosEpia Jan 23, 2024
2b713a0
Import logger
Feb 21, 2024
76ce6ea
Remove try/except and pickle alternative
Feb 21, 2024
3f84c04
adjust mv_grid_district_HH_electricity_load
CarlosEpia Jan 25, 2024
e171760
Fix method name
Feb 21, 2024
d056866
Remap nuts3 codes
CarlosEpia Jan 30, 2024
9439875
Remove hardcoded status2021 demandregio demand timeseries
Feb 21, 2024
b943d4b
Merge branch 'features/status2023_use_demandregio_timeseries' into fe…
Feb 21, 2024
bdd2f91
Remove gitmerge relict
Feb 21, 2024
5c634d9
Use pickled profiles if FFE doesnt work
Feb 23, 2024
f0b2de0
Adhoc fix year for status2023
Feb 23, 2024
3b5e220
Add function to derive scenario year from name
Jan 31, 2024
66443a7
Fix peak_load retrival
Mar 1, 2024
4f286b9
Merge branch 'features/status2023_powerplants' into features/status2023
Mar 1, 2024
7af46e6
Fast fix with dropna
Mar 3, 2024
91829ac
Bump version of egon_etrago_gen to 0.0.10
Mar 3, 2024
a0c0a5a
Use KBA 2021 dataset
nesnoj Mar 4, 2024
05a9d8e
Merge branch 'features/status2023_update_emobility' into features/sta…
nesnoj Mar 4, 2024
e00f234
Merge branch 'features/status2023' into features/status2023_update_em…
nesnoj Mar 4, 2024
c8ec34e
Bugfix: use 2023's emob params
nesnoj Mar 4, 2024
d8c6c11
Apply stricter tolerances for EV count tests.
nesnoj Mar 4, 2024
7584e6f
Bump emob dataset version to 0.0.10
nesnoj Mar 4, 2024
b18a352
Bump scenario_parameters dataset version to 0.0.17
nesnoj Mar 4, 2024
67a6fd5
Merge branch 'features/status2023_update_emobility_2' into features/s…
nesnoj Mar 4, 2024
c9f7202
Improve task generation
Mar 7, 2024
8bd47f4
Improve data period detection
Mar 7, 2024
21f2fc0
Improve code
Mar 7, 2024
06348fa
Black&Isort
Mar 7, 2024
84a2a9f
Rename functions
Mar 7, 2024
1278566
Move function
Mar 7, 2024
7fafe1e
Add minimal docstring
Mar 7, 2024
5d55e17
Add pumped hydro storage to electrical_neighbours
Mar 7, 2024
9b0d913
Use session_scope()
Mar 7, 2024
4f5f25f
Pass scn_name to function
Mar 7, 2024
ac7c488
Add commit for each line entry
Mar 7, 2024
d5bffda
Filter_mastr_geoometry only for SH
Mar 7, 2024
a71a117
Add session_scope()
Mar 7, 2024
cb62906
Drop hydro_power without federal_states
Mar 7, 2024
8183ecc
drop conventional plants that were decommissioned
Mar 11, 2024
10f60f1
Update folder name mastr dump 2024
Mar 11, 2024
637f004
Merge branch 'features/status2023_update_mastr' into features/status2023
Mar 11, 2024
8ec7a71
Merge branch 'features/status2023_powerplants' into features/status2023
Mar 11, 2024
209d2eb
Use 2024 mastr dump for hydro power
Mar 11, 2024
58329fa
Download pumped hydro csv from openmastr
Mar 11, 2024
3360a73
Remove hydro power outside of germany
Mar 11, 2024
e460c12
Move code to remove foreign entries
Mar 11, 2024
6985efb
Add new function to get pumped hydro
Mar 12, 2024
4225e3c
Use new function for statusquo scenarios
Mar 12, 2024
20703ab
Bump version of Storages to 0.0.8
Mar 12, 2024
d4fff66
Merge branch 'features/status2023_electrical_neighbours' into feature…
Mar 12, 2024
ff555d2
Merge branch 'features/status2023_etrago_gen' into features/status2023
Mar 12, 2024
d441d5d
Merge branch 'features/improve_ppweatherid_task' into features/status…
Mar 12, 2024
f0c4895
Merge branch 'features/status2023-storages' into features/status2023
Mar 12, 2024
f213fe7
Adhoc direct fix, merge hell
Mar 17, 2024
ec8d8c1
Recommit decommisiong
Mar 17, 2024
3ac6bdc
Improve comments
Mar 19, 2024
2f16d80
Add missing_dependencies
Mar 21, 2024
266ea03
Merge branch 'features/status2023-storages' into features/status2023
Mar 27, 2024
8b3cc57
Merge branch 'features/status2023_use_demandregio_timeseries' into fe…
Mar 27, 2024
a9b6e25
adapt weather year for aggregated load curve for service sector
May 23, 2024
763d050
Merge pull request #253 from openego/features/status2023_use_demandre…
khelfen May 23, 2024
05e23d7
Replace logging by logger
Mar 19, 2024
232cc5e
Add logging about droped CHP capacities
Mar 19, 2024
7724352
Make commisssioning and decomissioning date check dynamic
Mar 19, 2024
6756fbf
Rework script
Mar 19, 2024
9e1ce62
Black&Isort
Mar 19, 2024
6396e0c
Minors
Mar 19, 2024
b156a20
Improve logging
Mar 19, 2024
da69403
Improve logging
Mar 19, 2024
b597d13
Add missing scenario
Mar 19, 2024
08de637
Fix minors
Mar 19, 2024
09fecac
Fix minors
Mar 19, 2024
baeec25
Drop ids
Mar 19, 2024
337b387
Drop id hydro
Mar 20, 2024
cabf9dc
Skip download if data-bundle.zip exists
Jan 26, 2024
a1b745a
Bump version number for DataBundle
Jan 26, 2024
ab204b9
update timeseries_per_wz to be run for each weather year of each scen…
Jun 5, 2024
48ff5d6
hand over scenario information to adapted function calc_load_curve
Jun 19, 2024
c4d19d2
update dataset version
Jun 19, 2024
160fef3
Merge pull request #266 from openego/features/status2023_use_demandre…
khelfen Jun 19, 2024
a421b7a
add SH filter to storages in SH run
Jun 21, 2024
1037323
correct call to config
Jun 21, 2024
4600871
do not use foreig storages in SH run
Jun 21, 2024
0874e1a
Merge pull request #270 from openego/features/status2023-storages
khelfen Jun 21, 2024
9b9180d
Merge branch 'features/status2023' of github.com:openego/powerd-data …
Jun 21, 2024
e5b09b8
shift slp time series to fit year 2023
Jul 29, 2024
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
13 changes: 10 additions & 3 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,14 @@ Added
`PR #903 <https://github.com/openego/eGon-data/pull/903>`_
* Add low flex scenario 'eGon2035_lowflex'
`#822 <https://github.com/openego/eGon-data/issues/822>`_
* Add Status2023 update heat demand
`#199 <https://github.com/openego/powerd-data/pull/199>`_
* Add status2023 electrical neighbours
`#182 <https://github.com/openego/powerd-data/pull/182>`_
* Add Status2023 to gas nodes
`#205 <https://github.com/openego/powerd-data/pull/205>`_
* Update osm for status2023
`#169 <https://github.com/openego/powerd-data/pull/169>`_
* Add wrapped_partial to dynamise task generation
`#207 <https://github.com/openego/powerd-data/pull/207>`_

Expand Down Expand Up @@ -489,6 +497,8 @@ Changed
`#1026 <https://github.com/openego/eGon-data/issues/1026>`_
* Change hgv data source to use database
`#1086 <https://github.com/openego/eGon-data/issues/1086>`_
* Add eMob MIT for SQ2023 scenario
`#176 <https://github.com/openego/powerd-data/issues/176>`_

.. _#799: https://github.com/openego/eGon-data/issues/799

Expand Down Expand Up @@ -732,9 +742,6 @@ Bug Fixes
`#1098 <https://github.com/openego/eGon-data/issues/1098>`_
* Fix conversion factor for CH4 loads abroad in eGon2035
`#1104 <https://github.com/openego/eGon-data/issues/1104>`_
* Fix URLs of MaStR datasets
* Fix CRS in ERA5 transformation
`#179 <https://github.com/openego/powerd-data/issues/179>`_

.. _PR #692: https://github.com/openego/eGon-data/pull/692
.. _#343: https://github.com/openego/eGon-data/issues/343
Expand Down
9 changes: 6 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,14 @@ packages are required too. Right now these are:

* To download generation and demand data from entsoe you need to register in
the `entsoe platform <https://transparency.entsoe.eu/>`_. Once the user is
created, a personal token can be generated to access the available data. This
token must be saved in a text file called *.entsoe-token* in the home directory.
created, send an email to [email protected] with “Restful API access” in
the subject line. Indicate the email address you entered during registration
in the email body. After authorisation a personal token can be generated in
'My Account Settings'to access the available data. This token must be saved
in a text file called *.entsoe-token* in the home directory.
In Ubuntu you can go to the home directory by typing :code:`cd ~` in a
terminal. To create the file execute :code:`nano ".entsoe-token"` and then
paste your personal token (36 characters). Finally press :code:`CRL + x` to
paste your personal token (36 characters). Finally press :code:`CRL + x` to
save and exit.

* Make sure you have enough free disk space (~350 GB) in your working
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def read(*names, **kwargs):
"atlite==0.2.11",
"cdsapi",
"click<8.1",
"entsoe-py >=0.5.5",
"entsoe-py >=0.6.2",
"Flask-Session<0.6.0",
"GeoAlchemy2",
"geopandas>=0.10.0",
Expand Down
4 changes: 2 additions & 2 deletions src/egon/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

from loguru import logger
import click

import shutil
__version__ = "0.0.0"


def echo(message):
prefix, message = message.split(" - ")
lines = message.split("\n")
width = min(72, click.get_terminal_size()[0])
width = min(72, shutil.get_terminal_size()[0])
wraps = ["\n".join(wrap(line, width)) for line in lines]
message = "\n".join([prefix] + wraps)
click.echo(message, err=True)
Expand Down
36 changes: 19 additions & 17 deletions src/egon/data/airflow/dags/pipeline_status_quo.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
from egon.data.datasets.etrago_setup import EtragoSetup
from egon.data.datasets.fill_etrago_gen import Egon_etrago_gen
from egon.data.datasets.fix_ehv_subnetworks import FixEhvSubnetworks
from egon.data.datasets.gas_areas import GasAreasstatus2019
from egon.data.datasets.gas_areas import GasAreasStatusQuo
from egon.data.datasets.gas_grid import GasNodesAndPipes
from egon.data.datasets.gas_neighbours import GasNeighbours
from egon.data.datasets.heat_demand import HeatDemandImport
Expand All @@ -44,7 +44,7 @@
from egon.data.datasets.heat_etrago import HeatEtrago
from egon.data.datasets.heat_etrago.hts_etrago import HtsEtragoTable
from egon.data.datasets.heat_supply import HeatSupply
from egon.data.datasets.heat_supply.individual_heating import HeatPumps2019
from egon.data.datasets.heat_supply.individual_heating import HeatPumpsStatusQuo
from egon.data.datasets.industrial_sites import MergeIndustrialSites
from egon.data.datasets.industry import IndustrialDemandCurves
from egon.data.datasets.loadarea import LoadArea, OsmLanduse
Expand Down Expand Up @@ -284,6 +284,7 @@
cts_electricity_demand_annual,
demand_curves_industry,
hh_demand_buildings_setup,
household_electricity_demand_annual,
]
)

Expand Down Expand Up @@ -349,8 +350,8 @@
tasks["etrago_setup.create-tables"],
]
)
# Create gas voronoi status2019
create_gas_polygons_status2019 = GasAreasstatus2019(
# Create gas voronoi status quo
create_gas_polygons_statusquo = GasAreasStatusQuo(
dependencies=[setup_etrago, vg250, gas_grid_insert_data, substation_voronoi]
)

Expand All @@ -360,24 +361,24 @@
gas_grid_insert_data,
run_pypsaeursec,
foreign_lines,
create_gas_polygons_status2019,
create_gas_polygons_statusquo,
]
)

# Import gas production
gas_production_insert_data = CH4Production(
dependencies=[create_gas_polygons_status2019]
dependencies=[create_gas_polygons_statusquo]
)

# Import CH4 storages
insert_data_ch4_storages = CH4Storages(
dependencies=[create_gas_polygons_status2019]
dependencies=[create_gas_polygons_statusquo]
)

# CHP locations
chp = Chp(
dependencies=[
create_gas_polygons_status2019,
create_gas_polygons_statusquo,
demand_curves_industry,
district_heating_areas,
industrial_sites,
Expand Down Expand Up @@ -406,7 +407,7 @@
)

create_ocgt = OpenCycleGasTurbineEtrago(
dependencies=[create_gas_polygons_status2019, power_plants]
dependencies=[create_gas_polygons_statusquo, power_plants]
)

# Fill eTraGo generators tables
Expand All @@ -424,17 +425,18 @@
scenario_capacities,
]
)
# Pumped hydro units
pumped_hydro = Storages(


# Pumped hydro and home storage units
storage_units = Storages(
dependencies=[
mastr_data,
mv_grid_districts,
power_plants,
scenario_parameters,
setup,
vg250_mv_grid_districts,
fill_etrago_generators,
]
)

Expand All @@ -452,8 +454,8 @@
# CHP to eTraGo
chp_etrago = ChpEtrago(dependencies=[chp, heat_etrago])

# Heat pump disaggregation for status2019
heat_pumps_2019 = HeatPumps2019(
# Heat pump disaggregation for status quo
heat_pumps_sq = HeatPumpsStatusQuo(
dependencies=[
cts_demand_buildings,
DistrictHeatingAreas,
Expand All @@ -470,13 +472,13 @@
heat_etrago,
heat_time_series,
mv_grid_districts,
heat_pumps_2019,
heat_pumps_sq,
]
)

# Storages to eTraGo
storage_etrago = StorageEtrago(
dependencies=[pumped_hydro, scenario_parameters, setup_etrago]
dependencies=[storage_units, scenario_parameters, setup_etrago]
)

# eMobility: motorized individual travel TODO: adjust for SQ
Expand Down
11 changes: 10 additions & 1 deletion src/egon/data/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,15 @@
),
show_default=True,
)
@click.option(
"--household-demand-source",
type=click.Choice(["IEE", "demand-regio"]),
default="demand-regio",
help=(
"Choose the source to calculate and allocate household demands."
),
show_default=True,
)
@click.option(
"--jobs",
default=1,
Expand Down Expand Up @@ -166,7 +175,7 @@

@click.option(
"--scenarios",
default=["status2019", "eGon2035"],
default=["status2023"],
metavar="SCENARIOS",
help=(
"List of scenario names for which a data model shall be created."
Expand Down
2 changes: 1 addition & 1 deletion src/egon/data/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def settings() -> dict[str, dict[str, str]]:
"--jobs": 1,
"--random-seed": 42,
"--processes-per-task": 1,
"--scenarios": ["status2019", "eGon2035"],
"--scenarios": "status2023",
}
}
with open(files[0]) as f:
Expand Down
37 changes: 27 additions & 10 deletions src/egon/data/datasets.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
openstreetmap:
original_data:
source:
url: "https://download.geofabrik.de/europe/germany-200101.osm.pbf"
url_testmode: "https://download.geofabrik.de/europe/germany/schleswig-holstein-200101.osm.pbf"
url: "https://download.geofabrik.de/europe/germany-240101.osm.pbf"
url_testmode: "https://download.geofabrik.de/europe/germany/schleswig-holstein-240101.osm.pbf"
stylefile: "oedb.style"
target:
table_prefix: "osm"
file: "germany-200101.osm.pbf"
file_testmode: "schleswig-holstein-200101.osm.pbf"
file: "germany-240101.osm.pbf"
file_testmode: "schleswig-holstein-240101.osm.pbf"
processed:
schema: "openstreetmap"
tables:
Expand Down Expand Up @@ -94,6 +94,17 @@ demandregio_installation:
targets:
path: 'demandregio-disaggregator'

demandregio_workaround:
source:
cache:
url: "https://tubcloud.tu-berlin.de/s/dKqF6wKJnLRyDws/download/cache.zip"
dbdump:
url: "https://tubcloud.tu-berlin.de/s/ktaxyo8kSTK8w3f/download/status2019-egon-demandregio-cts-ind.zip"
targets:
cache:
path: 'demandregio-disaggregator/disaggregator/disaggregator/data_in/'
dbdump:
path: "demandregio_dbdump"
demandregio_society:
sources:
disaggregator:
Expand Down Expand Up @@ -305,10 +316,12 @@ mastr_new:
- "biomass"
- "combustion"
- "nuclear"
- "storage"
file_basename: "bnetza_mastr"
deposit_id: 10480958
deposit_id: 10491882
egon2021_date_max: "2021-12-31 23:59:00"
status2019_date_max: "2019-12-31 23:59:00"
status2023_date_max: "2023-12-31 23:59:00"

re_potential_areas:
target:
Expand Down Expand Up @@ -365,8 +378,8 @@ power_plants:
mastr_hydro: "bnetza_mastr_hydro_cleaned.csv"
mastr_location: "location_elec_generation_raw.csv"
mastr_combustion_without_chp: "supply.egon_mastr_conventional_without_chp"
mastr_combustion: "bnetza_mastr/dump_2022-11-17/bnetza_mastr_combustion_cleaned.csv"
mastr_nuclear: "bnetza_mastr/dump_2022-11-17/bnetza_mastr_nuclear_cleaned.csv"
mastr_combustion: "bnetza_mastr/dump_2024-01-08/bnetza_mastr_combustion_cleaned.csv"
mastr_nuclear: "bnetza_mastr/dump_2024-01-08/bnetza_mastr_nuclear_cleaned.csv"
mastr_storage: "bnetza_mastr_storage_cleaned.csv"
mastr_gsgk: "bnetza_mastr_gsgk_cleaned.csv"
capacities: "supply.egon_scenario_capacities"
Expand Down Expand Up @@ -1118,16 +1131,19 @@ emobility_mit:
file_processed: "regiostar-referenzdateien_preprocessed.csv"
sheet: "ReferenzGebietsstand2020"
KBA:
url: "https://www.kba.de/SharedDocs/Downloads/DE/Statistik/Fahrzeuge/FZ1/fz1_2020_xlsx.xlsx?__blob=publicationFile&v=2"
file: "fz1_2020_xlsx.xlsx"
file_processed: "fz1_2020_preprocessed.csv"
url: "https://www.kba.de/SharedDocs/Downloads/DE/Statistik/Fahrzeuge/FZ1/fz1_2021.xlsx?__blob=publicationFile&v=2"
file: "fz1_2021.xlsx"
file_processed: "fz1_2021_preprocessed.csv"
sheet: "FZ1.1"
columns: "D, J:N"
skiprows: 8
trips:
status2019:
file: "eGon2035_RS7_min2k_2022-06-01_175429_simbev_run.tar.gz"
file_metadata: "metadata_simbev_run.json"
status2023:
file: "eGon2035_RS7_min2k_2022-06-01_175429_simbev_run.tar.gz"
file_metadata: "metadata_simbev_run.json"
eGon2035:
file: "eGon2035_RS7_min2k_2022-06-01_175429_simbev_run.tar.gz"
file_metadata: "metadata_simbev_run.json"
Expand All @@ -1138,6 +1154,7 @@ emobility_mit:
# used scenario variation (available scenarios see parameters.py)
variation:
status2019: "status2019"
status2023: "status2023"
eGon2035: "NEP C 2035"
eGon100RE: "Reference 2050"
# name of low-flex scenario
Expand Down
2 changes: 1 addition & 1 deletion src/egon/data/datasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import re

from airflow.models.baseoperator import BaseOperator as Operator
from airflow.operators.python_operator import PythonOperator
from airflow.operators.python import PythonOperator
from sqlalchemy import Column, ForeignKey, Integer, String, Table, orm, tuple_
from sqlalchemy.ext.declarative import declarative_base

Expand Down
8 changes: 4 additions & 4 deletions src/egon/data/datasets/ch4_prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class CH4Production(Dataset):
name: str = "CH4Production"
#:

version: str = "0.0.8"
version: str = "0.0.9"

def __init__(self, dependencies):
super().__init__(
Expand Down Expand Up @@ -368,13 +368,13 @@ def import_gas_generators():
.reset_index(drop=False)
)

elif scn_name == "status2019":
elif "status" in scn_name:
# Add one large CH4 generator at each CH4 bus
CH4_generators_list = db.select_dataframe(
"""
f"""
SELECT bus_id as bus, scn_name, carrier
FROM grid.egon_gas_voronoi
WHERE scn_name = 'status2019'
WHERE scn_name = '{scn_name}'
AND carrier = 'CH4'
"""
)
Expand Down
9 changes: 7 additions & 2 deletions src/egon/data/datasets/ch4_storages.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,22 @@ class CH4Storages(Dataset):
#:
name: str = "CH4Storages"
#:
version: str = "0.0.2"
version: str = "0.0.3"

def __init__(self, dependencies):
super().__init__(
name=self.name,
version=self.version,
dependencies=dependencies,
tasks=(insert_ch4_storages),
# tasks=(insert_ch4_storages),
tasks=(notasks),
)


def notasks():
return None


def import_installed_ch4_storages(scn_name):
"""
Define list of CH4 stores from the SciGRID_gas data
Expand Down
Loading