Skip to main content

Toolset for generating and managing Power Plant Data

Project description

powerplantmatching

https://pypi.org/project/powerplantmatching/ https://anaconda.org/conda-forge/powerplantmatching LICENSE DOI

A toolset for cleaning, standardizing and combining multiple power plant databases.

This package provides ready-to-use power plant data for the European power system. Starting from openly available power plant datasets, the package cleans, standardizes and merges the input data to create a new combining dataset, which includes all the important information. The package allows to easily update the combined data as soon as new input datasets are released.

Map of power plants in Europe

powerplantmatching was initially developed by the Renewable Energy Group at FIAS to build power plant data inputs to PyPSA-based models for carrying out simulations for the CoNDyNet project, financed by the German Federal Ministry for Education and Research (BMBF) as part of the Stromnetze Research Initiative.

What it can do

  • clean and standardize power plant data sets
  • aggregate power plants units which belong to the same plant
  • compare and combine different data sets
  • create lookups and give statistical insight to power plant goodness
  • provide cleaned data from different sources
  • choose between gros/net capacity
  • provide an already merged data set of six different data-sources
  • scale the power plant capacities in order to match country specific statistics about total power plant capacities
  • visualize the data
  • export your powerplant data to a PyPSA or TIMES model

Installation

Using pip

pip install powerplantmatching

or using conda

conda install -c conda-forge powerplantmatching

Get the Data

In order to directly load the already build data into a pandas dataframe just call

import powerplantmatching as pm
pm.powerplants(from_url=True)

which will parse and store the actual dataset of powerplants of this repository. Setting from_url=False (default) will load all the necessary data files and combine them. Note that this might take some minutes.

The resulting dataset compared with the capacity statistics provided by the ENTSOE SO&AF:

Capacity statistics comparison

The dataset combines the data of all the data sources listed in Data-Sources and provides the following information:

  • Power plant name - claim of each database
  • Fueltype - {Bioenergy, Geothermal, Hard Coal, Hydro, Lignite, Nuclear, Natural Gas, Oil, Solar, Wind, Other}
  • Technology - {CCGT, OCGT, Steam Turbine, Combustion Engine, Run-Of-River, Pumped Storage, Reservoir}
  • Set - {Power Plant (PP), Combined Heat and Power (CHP), Storages (Stores)}
  • Capacity - [MW]
  • Duration - Maximum state of charge capacity in terms of hours at full output capacity
  • Dam Information - Dam volume [Mm^3] and Dam Height [m]
  • Geo-position - Latitude, Longitude
  • Country - EU-27 + CH + NO (+ UK) minus Cyprus and Malta
  • YearCommissioned - Commmisioning year of the powerplant
  • RetroFit - Year of last retrofit
  • projectID - Immutable identifier of the power plant

Where is the data stored?

All data files of the package will be stored in the folder given by pm.core.package_config['data_dir']

Make your own configuration

You have the option to easily manipulate the resulting data modifying the global configuration. Just save the config.yaml file as ~/.powerplantmatching_config.yaml manually or for linux users

wget -O ~/.powerplantmatching_config.yaml https://raw.githubusercontent.com/FRESNA/powerplantmatching/v0.4.1/powerplantmatching/package_data/config.yaml

and change the .powerplantmaching_config.yaml file according to your wishes. Thereby you can

  • determine the global set of countries and fueltypes

  • determine which data sources to combine and which data sources should completely be contained in the final dataset

  • individually filter data sources via pandas.DataFrame.query statements set as an argument of data source name. See the default config.yaml file as an example

Optionally you can:

  • add your ENTSOE security token to the .powerplantmaching_config.yaml file. To enable updating the ENTSOE data by yourself. The token can be obtained by following section 2 of the RESTful API documentation of the ENTSOE-E Transparency platform.

  • add your Google API key to the config.yaml file to enable geoparsing. The key can be obtained by following the instructions.

Data-Sources:

The merged dataset is available in two versions: The bigger dataset, obtained by

pm.powerplants(reduced=False)

links the entries of the matched power plants and lists all the related properties given by the different data-sources. The smaller, reduced dataset, given by

pm.powerplants()

claims only the value of the most reliable data source being matched in the individual power plant data entry. The considered reliability scores are:

Dataset Reliabilty score
JRC 6
ESE 6
UBA 5
OPSD 5
OPSD_EU 5
OPSD_DE 5
WEPP 4
ENTSOE 4
IWPDCY 3
GPD 3
GEO 3
BNETZA 3
CARMA 1

Getting Started

A small presentation of the tool is given in the jupyter notebook

How it works

Whereas single databases as the CARMA, GEO or the OPSD database provide non standardized and incomplete information, the datasets can complement each other and improve their reliability. In a first step, powerplantmatching converts all powerplant dataset into a standardized format with a defined set of columns and values. The second part consists of aggregating power plant blocks together into units. Since some of the datasources provide their powerplant records on unit level, without detailed information about lower-level blocks, comparing with other sources is only possible on unit level. In the third and name-giving step the tool combines (or matches)different, standardized and aggregated input sources keeping only powerplants units which appear in more than one source. The matched data afterwards is complemented by data entries of reliable sources which have not matched.

The aggregation and matching process heavily relies on DUKE, a java application specialized for deduplicating and linking data. It provides many built-in comparators such as numerical, string or geoposition comparators. The engine does a detailed comparison for each single argument (power plant name, fuel-type etc.) using adjusted comparators and weights. From the individual scores for each column it computes a compound score for the likeliness that the two powerplant records refer to the same powerplant. If the score exceeds a given threshold, the two records of the power plant are linked and merged into one data set.

Let's make that a bit more concrete by giving a quick example. Consider the following two data sets

Dataset 1:

Name Fueltype Classification Country Capacity lat lon File
0 Aarberg Hydro nan Switzerland 14.609 47.0444 7.27578 nan
1 Abbey mills pumping Oil nan United Kingdom 6.4 51.687 -0.0042057 nan
2 Abertay Other nan United Kingdom 8 57.1785 -2.18679 nan
3 Aberthaw Coal nan United Kingdom 1552.5 51.3875 -3.40675 nan
4 Ablass Wind nan Germany 18 51.2333 12.95 nan
5 Abono Coal nan Spain 921.7 43.5588 -5.72287 nan

and

Dataset 2:

Name Fueltype Classification Country Capacity lat lon File
0 Aarberg Hydro nan Switzerland 15.5 47.0378 7.272 nan
1 Aberthaw Coal Thermal United Kingdom 1500 51.3873 -3.4049 nan
2 Abono Coal Thermal Spain 921.7 43.5528 -5.7231 nan
3 Abwinden asten Hydro nan Austria 168 48.248 14.4305 nan
4 Aceca Oil CHP Spain 629 39.941 -3.8569 nan
5 Aceca fenosa Natural Gas CCGT Spain 400 39.9427 -3.8548 nan

where Dataset 2 has the higher reliability score. Apparently entries 0, 3 and 5 of Dataset 1 relate to the same power plants as the entries 0,1 and 2 of Dataset 2. The toolset detects those similarities and combines them into the following set, but prioritising the values of Dataset 2:

Name Country Fueltype Classification Capacity lat lon File
0 Aarberg Switzerland Hydro nan 15.5 47.0378 7.272 nan
1 Aberthaw United Kingdom Coal Thermal 1500 51.3873 -3.4049 nan
2 Abono Spain Coal Thermal 921.7 43.5528 -5.7231 nan

Citing powerplantmatching

If you want to cite powerplantmatching, use the following paper

with bibtex

@article{gotzens_performing_2019,
	title = {Performing energy modelling exercises in a transparent way - {The} issue of data quality in power plant databases},
	volume = {23},
	issn = {2211467X},
	url = {https://linkinghub.elsevier.com/retrieve/pii/S2211467X18301056},
	doi = {10.1016/j.esr.2018.11.004},
	language = {en},
	urldate = {2018-12-03},
	journal = {Energy Strategy Reviews},
	author = {Gotzens, Fabian and Heinrichs, Heidi and Hörsch, Jonas and Hofmann, Fabian},
	month = jan,
	year = {2019},
	pages = {1--12}
}

and/or the current release stored on Zenodo with a release-specific DOI:

DOI

Acknowledgements

The development of powerplantmatching was helped considerably by in-depth discussions and exchanges of ideas and code with

  • Tom Brown from Karlsruhe Institute for Technology
  • Chris Davis from University of Groningen and
  • Johannes Friedrich, Roman Hennig and Colin McCormick of the World Resources Institute

Licence

Copyright 2018-2020 Fabian Gotzens (FZ Jülich), Jonas Hörsch (KIT), Fabian Hofmann (FIAS)

powerplantmatching is released as free software under the GPLv3, see LICENSE for further information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

powerplantmatching-0.4.1.tar.gz (708.1 kB view hashes)

Uploaded Source

Built Distribution

powerplantmatching-0.4.1-py2.py3-none-any.whl (711.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page