Land extremes: the tail and how warming moves it
GeoStack · application · 3 December 2026
Abstract¶
Heat and rain extremes at stations: their return levels as fields over space, how those move with warming, and how much warming made one event more likely. The running example is daily maximum temperature at Spanish stations, 1896 to 2026.
The question and the data¶
How hot can a summer day get at a place, how sure are we, and how has that moved as the climate warmed? The mean is useless here: the tail is the product.
One station · daily Tx · illustrative

threshold
Block maximaone per year→ temporal_block_maxima
Exceedancesevery day above → rate , decluster_runs
One tail, one L4a point process in (time, value)→ return level
Two ways to keep the tail of a record: six maxima, or every day over a threshold. Both estimate the same shape , because both are views of one point process.
The data are daily maximum temperatures (Tx) at land stations. The curriculum in pyrox-xtreme runs on the real Copernicus record over Spain, and so does every number on this page:
| Source | Copernicus CDS, in-situ surface land observations, through xrproducts CDSInsituArchive |
| Record | 198 Spanish stations, 6.8 million daily values, 1896 to 2026 |
| Used | 107 stations with long records: 23 to 120 years each, 49% of the 107 × 125 station-years observed |
| Covariates | elevation, distance to the coast and slope per station, built once |
| Running example | Albacete (1.86° W, 38.95° N): 115 annual maxima from 1901 to 2025, 35.0 to 45.0 °C |
A daily record says almost nothing about its tail directly. The first step is to keep only the part that does: one maximum per year, or every day above a high threshold. The figure shows both on an illustrative record, and the next section shows why they estimate the same thing.
Real data, offline fallback. The tutorial loader serves the cached CDS record when present and a deterministic synthetic one otherwise, so the whole ladder runs without credentials, and every result says which it ran on.
Stations are points. There is no grid until the model makes one, which is why this application has no L3.
Three arrows, no L3¶
Stations are points, and the spatial GEV maps them straight to a field, so the grid step is part of the L4 model.
| Transition | Card | What is estimated | In the stack |
|---|---|---|---|
| L1 → L2 extract | part of lnd.tx.extremes | annual maxima, or declustered exceedances, per station | pyrox_xtreme.extraction (temporal_block_maxima, decluster_runs, estimate_extremal_index) |
| L2 → L4 map | lnd.tx.extremes, lnd.precip.pot | GEV parameters as fields over space, shifting with time or warming | pyrox_xtreme (GeneralizedExtremeValueDistribution, assemble_nonstationary_gev_fields); GP fields from pyrox-gp; NUTS |
| L4 → L5 derive | lnd.tx.derive | return-level change per °C; the probability ratio of an observed event | pyrox_xtreme (nonstationary_return_level, nonstationary_return_period) |
One tail, three views¶
Extreme-value theory gives the tail a fixed form whatever the parent distribution. Block maxima, threshold exceedances and the point process are three ways to fit it, and they share their parameters.
Block maxima: the GEV¶
Let be the maximum at station in year . For long enough blocks it follows a generalised extreme value distribution with location , scale and shape ; bounds the tail (heat), makes it heavy (rain):
The -year return level is the value exceeded with probability in a year:
Threshold exceedances: a rate and a GPD¶
Keeping every day above a high threshold uses more of the record. Exceedances arrive at a rate per year, and their excesses follow a generalised Pareto distribution with scale and the same :
Here , , , and are real numbers in °C, are in °C too, has no units, is in years and is in .
Hot days come in spells, so exceedances are declustered first (decluster_runs) or counted with the extremal index (estimate_extremal_index); otherwise the rate counts one heatwave several times.
The point process that holds both¶
The points with form a Poisson process on time × value. Its expected count in a box, in years, is
The chance of no point above in one year is , which is the GEV above; the conditional law of a point’s excess over is the GPD. This is the same object as the persistence model of Trace Sources: a ground rate in time, a size for each event, and a sieve that keeps only some. There the sieve is a satellite’s detection curve; here it is the threshold, .
Letting the tail move¶
Non-stationarity puts a covariate in the location, with the year: the calendar year itself in the tutorials, or the global-mean temperature anomaly for attribution. With and fixed, every return level shifts one for one with :
Attribution compares two worlds. For an observed maximum , the probability ratio is its exceedance probability under today’s covariate over that under a reference one, :
Albacete, 1901 to 2025¶
The running example: the longest record in the set, fitted with a linear trend in the location by NUTS (tutorial 10).

Figure 1:Posterior medians from the linear-trend GEV of tutorial 10 on the real record. The curve moves up by about 1.4 °C at every return period, so the same heat is roughly four times as likely.
| Quantity | Posterior [95% interval unless noted] |
|---|---|
| Warming of the location | +0.115 °C per decade [+0.026, +0.202]; +1.43 °C over 1901–2025 [+0.32, +2.50] |
| 0.994 | |
| Shape | −0.09, 90% interval [−0.16, −0.01]: a bounded upper tail, as expected for temperature |
| Model choice | WAIC 443.2 against 447.9 for the stationary fit; a trend in as well does not help (its slope straddles 0) |
| 100-year level | 43.0 °C under the 1901 climate, 44.4 °C under 2025’s: +1.4 °C, the same shift at and |
| 1901’s 100-year day today | about once in 26 years |
The shift is the same at every return period, as the model says it must be when only moves. The probability ratio between the two climates for 1901’s 100-year day is about . It is a trend in the calendar, not yet an attribution: the covariate is the year, not the warming, and the attribution card swaps one for the other.
The stack¶
Land extremes owns no assemble library: the model is short enough to live in the fit shelf.
| Step | Libraries | Shelf |
|---|---|---|
| Station data | xrproducts (CDSInsituArchive, StationCollection) | data |
| Extraction | pyrox_xtreme.extraction: block maxima, r-largest, thresholds, declustering, extremal index | fit |
| Distributions | pyrox_xtreme: GEV and its three types, GPD, their return levels and periods, stationary or not | fit |
| Spatial fields | pyrox-gp, kernellib; a two-range Gaussian copula, two_range_correlation | fit |
| Trends in time | assemble_nonstationary_gev_fields; diffrax for the energy-balance trend; Markov GPs from pyrox-gp | fit |
| Point processes | pyrox_xtreme.point_processes (TemporalDomain, EventHistory, integrate_log_intensity) | fit |
| Synthetic truth | pyrox_xtreme.simulations (simulate_temp_extremes, simulate_precip_extremes, generate_physical_gmst) | fit |
| Benchmark | pipekit-evaluate | orch |
The ladder of complexity¶
Each axis climbs on its own, and the rung below is the reference for the one above. The space axis is already climbed on real data.
The space axis · 107 Spanish stations
One station120 maxima near Zaragoza 43.4 °C [42.1, 46.0]
pool nothing
Every station, alone107 stations, NUTS or Laplace interval 3.9 °C wide on average
pool partly
Hierarchical poolingstations share hyperpriorsinterval 2.3 °C wide: 40% narrower
pool by distance
A GP field for neighbours share a locationa smooth map of the typical maximum
add a covariate
GP fields for , on elevation and coast smaller high up and inland
free the tail
GP fields for , , the shape set free too signal to noise 0.14: no map
Each rung adds one idea and is checked against the one below. Pooling buys the most; the last rung shows where the data stops.
The space axis, on real data¶
Pooling buys the most. Going from 107 separate fits to a hierarchical one narrows the 100-year interval by 40% on average and its worst case from 18 °C to 6 °C. Spatial fields refine the map; they add less certainty than sharing does.
The data says where to stop. With the shape free in space, the spread of across stations is 0.14 of its per-station uncertainty: the record cannot map the tail’s shape, and a global is the honest choice.
The point process changes the data, not only the model. It uses every exceedance instead of one maximum a year, so its gain is part information and part hypothesis; a fair comparison holds the threshold fixed.
Every axis¶
| Axis | Simplest | Rungs above | In the stack | Status |
|---|---|---|---|---|
| What is kept of the record | annual maxima | the r largest per year; declustered exceedances over a threshold; every exceedance as a point process | temporal_block_maxima, r_largest_block_maxima, quantile_threshold, decluster_runs, estimate_extremal_index | landed; open a point-process likelihood in GEV parameters |
| Time | stationary | a linear trend in the year (Coles); a forced energy-balance ODE inside NUTS; a state-space GP trend; the trend on global-mean warming instead of the calendar | assemble_nonstationary_gev_fields; diffrax; Markov GPs; generate_physical_gmst | landed tutorials 10–12, one station; open an observed series |
| Space: the margins | one station | every station alone; hierarchical pooling; GP fields for , then with covariates, then | pyrox-gp, kernellib | landed tutorials 04–09 |
| Space: the dependence | stations independent given the fields | a Gaussian copula with two ranges; max-stable or r-Pareto processes for extremes that happen together | two_range_correlation | partial the copula; open max-stable |
| Space and time together | trend at one station, fields with no trend | : fields that move, the model of the first card | assemble_nonstationary_gev_fields | partial the primitive; open a tutorial on real data |
| The variable | daily maximum temperature, | precipitation, and scaled by Clausius–Clapeyron; wind gusts; compound heat and drought | simulate_precip_extremes, simulate_wind_extremes, FrechetType2GEVD | partial synthetic only; open compound events |
| Inference | NUTS | Laplace; mean-field VI; an amortized set encoder from station maxima to fields | numpyro; pyrox | landed NUTS, Laplace, VI; open the encoder |
The cycle on every tier¶
| Tier | Forward model | 1 · Model | 2 · Inference | 3 · Emulator | 4 · Emulator inference | 5 · Amortized |
|---|---|---|---|---|---|---|
| I · Stationary GEV | iid block maxima | exists | NUTS; Laplace | skipped | none | open |
| II · Non-stationary GEV | shifts with | exists | NUTS, with linear, ODE and state-space trends | skipped | none | open |
| III · Spatial GEV | , as GP fields | exists | NUTS and mean-field VI with GP fields | intensity-integral emulator | open | set encoder |
| IV · Point process | a marked spatio-temporal process | generic | NUTS | open | open | open |
The suite: three cards¶
| Card | Transition | Synthetic truth → oracle | Real-data track | Headline scores | Status |
|---|---|---|---|---|---|
lnd.tx.extremes | L2 → L4 | simulate_temp_extremes → NUTS over the spatial GEV | CDS in-situ stations over Spain, years held out in blocks | return-level coverage, threshold-weighted CRPS | 4b |
lnd.tx.derive | L4 → L5 | return-level change at a known warming shift | held-out recent decades | error at ; coverage of the change per °C | card |
lnd.precip.pot | L2 → L4 | a point process → NUTS | station networks, one network held out at a time | time-rescaling KS; POD and FAR; Clausius–Clapeyron scaling | card |
The first card: lnd.tx.extremes¶
With a synthetic truth the maxima are drawn from known , , and , so the oracle is NUTS on the true model and the fast rungs (quantile regression, Laplace, an amortized set encoder) are scored against it. With real data there is no truth: years are held out in blocks, and the scores are the threshold-weighted CRPS and the coverage of withheld maxima by the predicted return-level interval. The floor is a stationary GEV per station; the bar is the hierarchical fit, which the tutorials show is already 40% sharper.
The headline test is extrapolation. Fit on years with the covariate below a cut-off, then score the return levels predicted for the warmest held-out years. A model that fits the past and fails there has learned the climatology, not the trend.
Attribution is a counterfactual. The probability ratio needs the world at the reference covariate, which only a model can give, so its card can climb the twin ladder only to the hybrid rung: there is no observed intervention on the climate.
Sketch¶
A code sketch of the first card, lnd.tx.extremes, on the real record: the names marked today exist; the arguments are sketched. Nothing here runs yet.
import numpyro
from pyrox_xtreme import (
GeneralizedExtremeValueDistribution,
assemble_nonstationary_gev_fields,
nonstationary_return_level,
)
from pyrox_xtreme.extraction import temporal_block_maxima
from xrproducts import CDSInsituArchive
# Shapes: J = 107 stations; Y = 125 years; S = 1,000 posterior draws
# today* (xrproducts)
# daily maximum temperature at every station
archive = CDSInsituArchive(root, preset="cds_insitu_land", time_aggregation="daily")
daily = archive.load() # → (time, J)
# today* (pyrox_xtreme.extraction)
# y_max,b,j = max over year b of Tx_j(t)
maxima = temporal_block_maxima(daily, freq="YS") # (time, J) → (Y, J)
# user
def model(maxima, year):
# μ₀(𝐬), μ₁(𝐬) ~ GP over the stations; log σ, ξ pooled
mu0, mu1, log_sigma, xi = priors(stations) # (J,), (J,), (), ()
# today* (pyrox_xtreme)
# μ(𝐬, t) = μ₀(𝐬) + x(t) μ₁(𝐬), t the year of each block
loc, scale, shape = assemble_nonstationary_gev_fields(
mu0, mu1, log_sigma, xi, year
) # → (Y, J) each
# today (pyrox_xtreme)
# y_max,b,j ~ GEV(μ(𝐬_j, t), σ, ξ), missing years masked
gev = GeneralizedExtremeValueDistribution(loc, scale, shape)
with numpyro.handlers.mask(mask=observed):
numpyro.sample("z", gev, obs=maxima)
# today* (pyrox_xtreme)
# y_100(𝐬) under the 2025 covariate, draw by draw
levels = nonstationary_return_level(100.0, loc_2025, scale, shape) # → (S, J)Gaps¶
Where it doesn’t fit¶
[1] No tail scores and no amortized rung. The threshold-weighted CRPS is in no library, and neither is a set encoder from station maxima to GEV fields, so the card’s fast rungs and its tail score are missing. Proposed: The score in pipekit-evaluate; the encoder in geonnax
[2] No attribution card.
lnd.tx.derivescores the change per degree, but the probability ratio of an observed event, the question people ask after a heatwave, has no card; the tutorials’ trend is on the calendar year, and no observed series is in the stack. Proposed: A counterfactual card, lnd.tx.attribute, scored on the hybrid rung, with an observed GMST series staged by a GeoBench data recipe[3] The point process stops at generic machinery. pyrox-xtreme has the processes and the GEV, but no likelihood that writes the exceedance intensity in , so the point-process rung is hand-written and the threshold choice is untested. Proposed: A GEV-parametrised exceedance process in pyrox_xtreme, sharing the thinning API that plumax.population uses
[4] No joint extremes. Stations are independent given the fields. A heatwave is one event over many stations, and its area, the question for impacts, needs spatial dependence in the tail: the Gaussian copula is a start, max-stable processes are absent. Proposed: Max-stable or r-Pareto processes in pyrox_xtreme, with the extremal coefficient as a score
Sources and status
Cards, transitions, tiers and the worked chains from the GeoBench catalogue (7 October 2026), with library names moved to today’s and checked against geostack’s capability indexes on 2 December 2026. How a card is run and scored is GeoBench; what the applications share is the Application stack. Data and every number from the pyrox-xtreme spatial-extremes tutorials (tutorials 00–12), executed on the real CDS record. The record in the first figure is illustrative, a seeded synthetic series; the return-level plot is redrawn from the posterior medians that tutorial 10 prints (xtremax/docs/tutorials/spatial_extremes/04_nonstationary/10_nonstationary_parametric.ipynb, cells 21 and 23), with no new fit.