@@ -65,6 +65,12 @@ The parameter ``building_class`` (German: Baualtersklasse) can assume values in
6565Usage
6666+++++
6767
68+ .. code-block :: python
69+
70+ from demandlib import bdew
71+
72+ ...
73+
6874 Electrical Profiles
6975~~~~~~~~~~~~~~~~~~~
7076
@@ -74,7 +80,7 @@ Description
7480The electrical profiles are the standard load profiles from BDEW. All profiles
7581have a resolution of 15 minutes. They are based on measurements in the German
7682electricity sector. There is a dynamic function (h0_dyn) for the houshold (h0)
77- profile that better takes the seasonal variance into account.
83+ profile that better takes the seasonal variance into account [` BDEW < https://www.bdew.de/energie/standardlastprofile-strom/ >`_] .
7884
7985.. math ::
8086
@@ -85,7 +91,7 @@ With `t` the day of the year as a decimal number.
8591The following profile types are available.
8692Be aware that the types in Python code are strings in **lowercase **.
8793
88- .. csv-table :: German (original)
94+ .. csv-table :: German (original) [`Wikipedia <https://de.wikipedia.org/wiki/Standardlastprofil>`_]
8995 :header: Typ,Beschreibung,Erläuterung
9096 :widths: 10, 40, 50
9197
@@ -130,3 +136,27 @@ Usage
130136.. code-block :: python
131137
132138 from demandlib import bdew
139+ e_slp = bdew.ElecSlp(year = 2020 )
140+
141+ # get all available types
142+ print (e_slp.get_profiles().columns)
143+
144+ # get the "h0" and "g0" profile
145+ profiles = e_slp.get_profiles(" h0" , " g0" )
146+
147+ # get scaled profiles
148+ scaled_profiles = e_slp.get_scaled_profiles({" h0" : 3000 , " g0" : 5000 })
149+
150+ # get scaled profiles with power values instead of energy values
151+ # a conversion_factor of 4 will convert Wh, kWh etc. to W, kW
152+ e_slp.get_scaled_power_profiles({" h0" : 3000 , " g0" : 5000 }, conversion_factor = 4 )
153+
154+ # add holidays, holidays are treated as Sundays
155+ holidays = {
156+ datetime.date(2010 , 1 , 1 ): " New year" ,
157+ datetime.date(2010 , 10 , 3 ): " Day of German Unity" ,
158+ }
159+ e_slp = bdew.ElecSlp(year = 2010 , holidays = holidays)
160+
161+ # holiday dictionaries can be created using workalendar
162+ # https://github.com/workalendar/workalendar
0 commit comments