era5

Central module containing all code dealing with importing era5 weather data.

class EgonEra5Cells(**kwargs)[source]

Bases: Base

Class definition of table supply.egon_era5_weather_cells.

geom
geom_point
w_id
class EgonRenewableFeedIn(**kwargs)[source]

Bases: Base

Class definition of table supply.egon_era5_renewable_feedin.

carrier
feedin
w_id
weather_year
class WeatherData(dependencies)[source]

Bases: Dataset

Download weather data from ERA5 using atlite

This dataset downloads weather data for the selected representative weather year. This is done by applying functions from the atlite-tool.The downloaded wetaher data is stored into files within the subfolder ‘cutouts’.

Dependencies
Resulting tables
name: str = 'Era5'
sources: DatasetSources = DatasetSources(tables={'vg250_bbox': 'boundaries.vg250_sta_bbox'}, files={}, urls={})

The sources used by the datasets. Could be tables, files and urls

targets: DatasetTargets = DatasetTargets(tables={'weather_cells': 'supply.egon_era5_weather_cells', 'renewable_feedin': 'supply.egon_era5_renewable_feedin'}, files={'weather_data': {'path': 'cutouts'}})

The targets created by the datasets. Could be tables and files

version: str = '0.0.8'
create_tables()[source]
download_era5()[source]

Download weather data from era5

Returns:

None.

import_cutout(boundary='Europe')[source]

Import weather data from cutout

Returns:

cutout (atlite.cutout.Cutout) – Weather data stored in cutout

insert_weather_cells()[source]

Insert weather cells from era5 into database table

Returns:

None.