Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Block maxima

Reducing daily records to extremes at different time scales

Abstract

The block-maxima method reduces a long record to the maximum of each block — the hottest day per week, month, season or year. This notebook is a hands-on look at that operation on real Iberian station data: we extract maxima at several block lengths with xtremax, compare the resulting series and histograms, and see how block length trades the number of maxima against how extreme and how regular they are. No distribution is fitted yet — that comes next; here we just build intuition for the data.

Keywords:block maximaextremestime scalesIberia

From daily series to block maxima

A station gives us thousands of daily values, but we care about the rare hot extremes. The block-maxima method is the first, simplest reduction: split the record into equal blocks and keep only the maximum of each. This notebook explores that operation — purely as data — at several block lengths.

Background

For a block of daily maxima X1,X2,…,XnX_1, X_2, \dots, X_n, the block maximum is just

M  =  max⁡{X1,X2,…,Xn}.M \;=\; \max\{X_1, X_2, \dots, X_n\}.

The only real choice is the block length. A short block (a week) yields many maxima, each only mildly extreme; a long block (a year) yields few maxima, each genuinely rare. The block length also controls how identically distributed the maxima are — short blocks straddle the seasonal cycle, long ones absorb it. We make both effects concrete below, using xtremax.extraction.temporal_block_maxima.

Setup

source: REAL CDS
daily cube: {'station': 198, 'time': 46182}  |  1896–2026

The station network

Before reducing anything, a quick look at coverage: real networks are ragged, so we note how many stations carry long, complete records. The map colours each station by the number of years for which it has a usable annual maximum.

annual-maxima cube: 198 stations × 125 years
  stations with >= 26 valid years: 102
  stations with >= 20 valid years: 107
  stations with >= 15 valid years: 166
  stations with >= 10 valid years: 185
<Figure size 800x700 with 2 Axes>

Block maxima at four time scales

We pick the best-covered (and warmest) station as a running example and extract its maxima at four block lengths: weekly, monthly, seasonal (3-month) and annual. The number of maxima shrinks by roughly the block length, while each maximum becomes more extreme.

showcase station: SPE00175559 · near Barcelona, Spain
     weekly:    87 maxima   mean 24.1 °C   max 38.2 °C
    monthly:    24 maxima   mean 28.1 °C   max 38.2 °C
   seasonal:     8 maxima   mean 30.6 °C   max 38.2 °C
     annual:     3 maxima   mean 35.5 °C   max 38.2 °C
<Figure size 750x650 with 1 Axes>
<Figure size 1200x700 with 4 Axes>

How block length shapes the distribution

Pooling the maxima across all stations, the histograms show the trade-off directly: short blocks pile up near the seasonal warm-season temperatures, while longer blocks push the mass right and thin the upper tail into a smooth, right-skewed shape. The dashed line marks each scale’s median.

<Figure size 1200x700 with 4 Axes>
<Figure size 900x480 with 1 Axes>

Why annual blocks for extremes?

There is a second reason to prefer long blocks. A block maximum is only a clean, comparable quantity if every block is drawn from the same conditions. Monthly maxima are not: a July maximum and a January maximum come from completely different seasonal regimes. An annual block folds a whole seasonal cycle into each maximum, so all the MM in (1) are comparable. The boxplot of this station’s monthly maxima makes the seasonal dependence obvious.

<Figure size 900x420 with 1 Axes>

Recap & where next

Block maxima reduce a daily record to a handful of extremes, and the block length sets the bargain: shorter blocks give more but milder and seasonally mixed maxima; annual blocks give few, genuinely rare, mutually comparable maxima. From here on we work with annual maxima. In The GEV distribution we ask what distribution those annual maxima follow, and fit it to a single station.