Context
Climdex.org publishes climate-extremes indices computed from observations: the hottest day of each year (TXx), the coldest night (TNn), the wettest day (Rx1day), total annual rainfall (PRCPTOT) and 55 more. About 11,000 people a year use it to download gridded and station-based index data, maps and time series.
The site, its data-access app and the API behind it were built before I joined. My work was on the data going in and the interfaces coming out.
Four datasets, four shapes
I onboarded four third-party gridded datasets and processed them on NCI's Gadi supercomputer. On Gadi, the raw gridded observations go through the Climpact library, which computes the extremes indices, and out come regional and global index products alongside the observational data itself:
| Dataset | Coverage | Grid | Years |
|---|---|---|---|
| AGCD v1 (Bureau of Meteorology) | Australia | 0.25° | 1900–2022 |
| BEST (Berkeley Earth) | Global | 1° | 1880–2019 |
| APHRODITE | Asia, served over South-East Asia | 0.25° | 1951–2016 |
| REGEN, masked and unmasked | Global land | 1° | 1950–2016 |
No two share a grid, a footprint and a time span. REGEN alone comes in two versions: the masked one interpolates only long-term stations (at least 40 complete years), the unmasked one uses every station. I wrote the catalogue entries with their references, cropped APHRODITE to the region we serve, and changed the access app to group datasets by region and set the map bounds dynamically, so a regional product opens on its own region.
I also merged the Climpact portal into Climdex. Climpact is the tool for computing the same indices from your own station data, and its site held a lot of resources and references. Those moved onto the Climdex side, and Climdex's access flow now hands users on to Climpact after a download.
The dashboard
The question was simple: what has happened to Australia's extremes, nationally and by state, over the instrumental record? I built the answer end to end.
Input. Annual AGCD index grids as NetCDF: 138 × 177 cells at 0.25°, 113 years (1910–2022), five indices, about 11 MB each.
Masks. State polygons rasterised onto the grid with rasterio, using all_touched so coastal cells count, then one masked NetCDF per state and index.
Series. Area-weighted means with cos(latitude) weights, because a 0.25° cell in Tasmania covers less ground than one in the tropics. On top sits the 21-point binomial smoother, ported from Climdex's legacy NCL plotting engine, end padding and all (the mean of the first and last 10 values).
Trends. For every cell, a Theil–Sen slope and a Mann–Kendall p-value, computed with xarray's apply_ufunc vectorised over the time axis. The same function runs on a Dask cluster when the grid is chunked (32 × 32 tiles, 4 workers).
Output. One JSON file per index and region. Each carries the dataset name, version and DOI, the lat/lon range, units, the weighted series, the smoothed series, a slope for every cell, and the list of cells significant at p < 0.05. That's 39 files, 16 MB in total, the largest 1.9 MB. They're static files fetched by name, so there's no API or server to run.
Front end. React with react-map-gl (Mapbox GL) for the trend map, stippling on significant cells, Recharts for the time series, four index cards, and a region selector that zooms to each state's bounding box. It was merged as production-ready in May 2024.
Why Theil–Sen
The legacy NCL engine fits an ordinary least-squares trend and tests it with degrees of freedom adjusted for lag-1 autocorrelation. For the dashboard, Professor Lisa Alexander, who led the work, chose Theil–Sen with Mann–Kendall instead. My job was making it run over every cell.
Theil–Sen is the median of the slopes between every pair of years. A single freak year, the kind Rx1day is full of, can't drag the line: the estimator tolerates up to about 29% of points being arbitrarily wrong. Mann–Kendall is rank-based and assumes no distribution, which suits indices that are annual maxima and minima by construction.
The cost is quadratic. 113 years means 6,328 pairwise slopes per cell, and a continental map has about 10,000 land cells, so roughly 63 million slopes per map. In testing on a 63-year series each cell took about 0.6 ms for Theil–Sen and 0.5 ms for Mann–Kendall. Theil–Sen was the most expensive step in the pipeline, which is why the Dask path exists.
What the cell map shows that the average hides
Run Theil–Sen on the area-weighted national series for the coldest night of the year and you get −0.02 °C per decade, not significant (p ≈ 0.25). By that measure, nothing happened.
The cell map disagrees. 6,086 of the 10,052 land cells have a significant trend: 3,455 warming and 2,631 cooling. Averaged together, they wash out. A national number would have told users nothing about where their own coldest nights are going.
The hottest day is more uniform: 5,504 cells are significant and 4,803 of them are warming. The national series rises about 1.2 °C over the record (+0.11 °C per decade, p < 0.001).
Being honest about the data
AGCD is interpolated from a station network that changed a lot over the century, with many stations added in the late 1950s. That can put a coverage effect into a time series, so the dashboard says so next to every series and tells users to treat trend values with caution.
Updates were manual notebook re-runs. When I left, my handover list still had automating AGCD updates, putting an API behind the dashboard so it could serve more datasets and indices, and finishing the Python replacement for the NCL plotting engine. I had prototyped that replacement (trend maps and area-averaged series in xarray, Dask and Cartopy), but speed was still an open problem.