Interannual Electricity Demand Calculator
<p><strong>Interannual Electricity Demand Calculator</strong></p> <p>Large parts of this code were originally developed by <a href="https://github.com/L-vdM">Lieke van der Most</a> (University of Groningen) in the <em>EU renewable energy modelling framework</em> and release under MIT license. The original version of the code can be found <a href="https://github.com/L-vdM/EU-renewable-energy-modelling-framework">here</a> and is referenced below as [1]. This model has been validated against historical electricity demand data reported on the <a href="https://transparency.entsoe.eu/">ENTSO-E transparancy platform</a>.</p> <p>We have made the following adjustments to the original version:</p> <ul> <li>generate hourly instead of daily electricity consumption profiles</li> <li>use <code>snakemake</code> for workflow management</li> <li>trim repository to demand-related code and data</li> <li>adjust code to accept cutouts from <code>atlite</code> for weather data</li> </ul> <p><strong>Purpose</strong></p> <p>Variations in weather conditions affect electricity demand patterns. This workflow generates country-level electricity consumption time series based on weather data using analysis by <a href="https://github.com/L-vdM">Lieke van der Most</a> correlating historical electricity demand to temperature. This workflow first calculates a daily electricity demand based on the regression model developed in [1]. Subsequently, cumulative daily electricity demands are disaggregated using a hourly profile sampled from a random historical day (that is the same weekday) from the <a href="https://data.open-power-system-data.org/time_series/">Open Power System Database</a>. The resulting <code>output/demand_hourly.csv</code> file is compatible with the open-source electricity system model <a href="https://github.com/PyPSA/pypsa-eur">PyPSA-Eur</a>.</p> <p>Holidays are treated like weekend days. Data on national holidays across Europe are obtained using another repository by <a href="https://github.com/aleks-g">Aleksander Grochowicz</a> and others that similarly computes artificial electricity demand time series: <a href="https://github.com/aleks-g/multidecade-data/blob/v1.0/load%20data/create_artificial_demand.ipynb">github.com/aleks-g/multidecade-data</a>. The holidays are stored at <code>input_files/noworkday.csv</code>.</p> <p><strong>Installation and Usage</strong></p> <p><strong>Clone the Repository</strong></p> <p>Download the <a href="https://github.com/martacki/demand_calculator">demand_calculator</a> repository using <code>git</code>.</p> <pre><code>/some/other/path % cd /some/path/without/spaces /some/path/without/spaces % git clone https://github.com/martacki/demand_calculator.git</code></pre> <p><strong>Install Dependencies with conda/mamba</strong></p> <p>Use <a href="https://docs.conda.io/en/latest/miniconda.html"><code>conda</code></a> or <a href="https://github.com/QuantStack/mamba"><code>mamba</code></a> to install the required packages listed in <a href="https://github.com/martacki/demand_calculator/blob/master/environment.yaml">environment.yaml</a>.</p> <p>The environment can be installed and activated using</p> <pre><code>.../demand_calculator % conda env create -f environment.yaml .../demand_calculator % conda activate demand</code></pre> <p><strong>Retrieve Input Data</strong></p> <p>The only required additional input files are ERA5 cutouts which can be recycled from the <a href="../record/6382570#.Yx4KN2xByV4">PyPSA-Eur weather data deposit on Zenodo</a>. Place the file <code>europe-2013-era5.nc</code> in the following location (and rename!):</p> <pre><code>./input_files/cutouts/europe-era5-2013.nc</code></pre> <p>Cutouts for other weather years than 2013 can be built using the <code>build_cutout</code> rule from the <a href="https://github.com/PyPSA/pypsa-eur">PyPSA-Eur</a> repository.</p> <p><strong>Run the Workflow</strong></p> <p>This repository uses <code>snakemake</code> for workflow management. To run the complete workflow, execute:</p> <pre><code>.../demand_calculator % snakemake -jall all</code></pre> <p>After successfully running the workflow, the output files will be located in <code>output/energy_demand</code> named <code>demand_hourly_{yr}.csv</code>.</p> <p>The years to compute can be modified directly in the <code>Snakefile</code>.</p> <p><strong>License</strong></p> <p>The file <a href="../api/files/07fb550a-dc1f-4c45-8202-755484c04d67/demand_hourly.csv">demand_hourly.csv</a> is released under CC-BY-4.0 license.</p> <p>The file <a href="../api/files/07fb550a-dc1f-4c45-8202-755484c04d67/src.zip">src.zip </a>is released under MIT license.</p> <p><strong>Changelog</strong></p> <p>2024-03-15: Extended date range from 1941 to 2023.</p>
ShareScore
40/100
Overall dataset sharing score
Score breakdown
These five areas show where the dataset supports — or may limit — practical reuse.
- Stewardship
- 8
- Harmonization
- 4
- Access
- 20
- Reuse readiness
- 8
- Engagement
- 0
Topics
Dataset details
- Repository
- zenodo
- Published
- September 11, 2022
- License
- cc-by-4.0
- DOI
- 10.5281/zenodo.7070437
Scored with release 0.9.0
ScienceDex for faculty
Your academic CV and NIH biosketch
Make your CV in your school's format and your NIH biosketch from it, then download both as Word files.