Regions and Weather¶
The rules on this page define the geography of the model: the country and administrative shapes, the offshore zones and the weather cutouts from which all time series are derived. Everything downstream, from the base network to the population layouts, is built on these shapes.
Weather data¶
build_cutout¶
Builds weather data cutouts from ERA5 or SARAH with atlite.
Script, inputs, outputs and settings
- Script:
scripts/build_cutout.py - Outputs: depends on configuration
- Settings:
atlite.cutouts
Create a weather data cutout with atlite.
The cutout holds gridded hourly weather variables for the configured bounding
box and period, downloaded from the
ERA5
reanalysis and optionally amended with
SARAH-3 satellite-based
radiation observations. Downloading ERA5 requires the cdsapi package and a
registered Copernicus Climate Data Store API key.
It is the weather input of the renewable profile, hydro inflow and temperature
profile rules downstream. See the
atlite documentation
for details on creating cutouts.
| Field | Dimensions | Unit | Description |
|---|---|---|---|
| pressure | time, y, x | Pa | Surface pressure |
| temperature | time, y, x | K | Air temperature 2 m above the surface |
| soil temperature | time, y, x | K | Soil temperature between 1 m and 3 m depth (layer 4) |
| influx_toa | time, y, x | W/m2 | Top of atmosphere incident solar radiation |
| influx_direct | time, y, x | W/m2 | Total sky direct solar radiation at surface |
| influx_diffuse | time, y, x | W/m2 | Diffuse solar radiation at surface (downward minus direct) |
| albedo | time, y, x | - | Share of downward solar radiation reflected by the surface, between 0 and 1 |
| runoff | time, y, x | m | Surface runoff (volume per area) |
| wnd100m | time, y, x | m/s | Wind speed at 100 m |
| roughness | y, x | m | Forecast surface roughness length |
| height | y, x | m | Surface elevation above sea level |

A SARAH-3 cutout amends the ERA5 fields temperature, influx_toa,
influx_direct, influx_diffuse and albedo.

Shapes¶
build_shapes¶
Builds country shapes and the Europe shape from NUTS3 regions and offshore shapes.
Script, inputs, outputs and settings
- Script:
scripts/build_shapes.py - Inputs:
resources/nuts3_shapes.geojson,resources/offshore_shapes.geojson - Outputs:
resources/country_shapes.geojson,resources/europe_shape.geojson - Settings:
countries
Creates the country shapes and a single bounding shape of the modelled area.
Country shapes are the union of each country's NUTS3 regions. The Europe shape is the exterior of the union of all country and offshore EEZ shapes, keeping only the largest polygon and filling holes. Both are used by the base network and the land availability rules.
build_nuts3_shapes¶
Builds NUTS3 and ADM1 region shapes enriched with GDP and population data.
Script, inputs, outputs and settings
- Script:
scripts/build_nuts3_shapes.py - Inputs: output of
retrieve_eu_nuts_2021,data/osm_boundaries/build/{...}/BA_adm1.geojson,data/osm_boundaries/build/{...}/MD_adm1.geojson,data/osm_boundaries/build/{...}/UA_adm1.geojson,data/osm_boundaries/build/{...}/XK_adm1.geojson, output ofretrieve_jrc_ardeco,resources/offshore_shapes.geojson,resources/bidding_zones.geojson, output ofretrieve_gdp_per_capita, output ofretrieve_population_count - Outputs:
resources/nuts3_shapes.geojson - Settings:
countries
Creates NUTS3 region shapes for Europe, extended with OSM ADM1 regions for countries outside the NUTS system and enriched with GDP and population.
Eurostat NUTS3 polygons are combined with OSM administrative boundaries for BA, MD, UA and XK, clipped to onshore territory by removing the exclusive economic zones, and stripped of overseas territories and small remote islands. GDP and population come from the JRC ARDECO database for NUTS3 regions; for the non-NUTS countries they are taken from gridded GDP per capita and population rasters and rescaled to 2019 national totals. If administrative clustering is enabled, each region is also assigned to the bidding zone with the largest overlap. The shapes are the basis for country shapes and for demand distribution keys.
build_offshore_shapes¶
Builds offshore shapes from exclusive economic zones of the selected countries.
Script, inputs, outputs and settings
- Script:
scripts/build_offshore_shapes.py - Inputs: output of
retrieve_eez - Outputs:
resources/offshore_shapes.geojson - Settings:
countries
Creates the offshore shapes of the exclusive economic zones (EEZ) of the modelled countries.
The Marine Regions world EEZ dataset is filtered to the 200 nautical mile zones and overlapping claims of the selected countries, mapped to ISO2 country codes and simplified by dropping very small polygons. The shapes bound the offshore wind regions and are used to clip onshore regions to land.
build_osm_boundaries¶
Builds first-level administrative boundaries of a country from OSM data clipped to land.
Script, inputs, outputs and settings
- Script:
scripts/build_osm_boundaries.py - Inputs: depends on configuration, output of
retrieve_eez - Outputs:
data/osm_boundaries/build/{...}/{{country}}_adm1.geojson - Wildcards:
{country}
Builds first-level administrative boundaries (ADM1) of a country from OpenStreetMap relations.
Raw OSM boundary relations are assembled into polygons from their outer and inner member ways, labelled with ISO 3166-2 codes and English names, and clipped to onshore territory by removing the exclusive economic zones. Regions without an ISO code are numbered by OSM id; duplicate relations for disputed territories are dropped. The boundaries stand in for NUTS3 regions in countries not covered by Eurostat (BA, MD, UA, XK).
build_bidding_zones¶
Merges bidding zone shapes from electricitymaps and entsoe-py into one harmonised layer.
Script, inputs, outputs and settings
- Script:
scripts/build_bidding_zones.py - Inputs: depends on configuration
- Outputs:
resources/bidding_zones.geojson - Settings:
countries,clustering.build_bidding_zones.remove_islands,clustering.build_bidding_zones.aggregate_to_tyndp
Combines bidding zone shape files from two sources. The electricitymaps-contrib data is more accurate and are used as the baseline. The Italian bidding zones from entsoe-py are more preferred and are used to override the baseline. Manual adjustments are made to match the TYNDP 2024 configuration. Small islands are removed and Crete is considered as independent of Greece. Southern Norwegian zones are merged.