Correcting a climate simulation without blurring its mountains

Correcting each cell separately blurs the mountains. Smoothing the correction keeps them sharp.

WRF (Weather Research and Forecasting), a weather model, is 7.8 °C too cold across this map4.9 °C too warm across this map. That bias is its average difference from ERA5, a coarser record of observations blended with a model. Both corrections cut it to 0.7 °C0.3 °C, but cell-by-cell copies ERA5’s blur.

Move the map with two fingers.

Raw WRFRaw WRF in summer. Mountains are sharp, but the map is colder than ERA5.

Cell-by-cellCell-by-cell correction in summer. Warmer, but the mountains are blurred.

SmoothedSmoothed correction in summer. Warmer, and the mountains are still sharp.

ERA5ERA5 in summer. Mountains look smooth because its grid is coarse.

Choose a map. Close-ups: Oman’s Hajar Mountains

Detail match compares fine detail with raw WRF’s (1 is identical). A correction smoothed over 50 km barely changes it, so its 0.99 is expected and doesn’t prove the detail is right. The other numbers compare the whole map with ERA5.

Why the mountains disappear

These cross-sections run 164 km west to east through the close-up, in summer. Higher ground is cooler, so mountains show up as dips.

CorrectedAdded by the correctionRaw WRFERA5

Cell by cell, the correction fills in the dips
20 °C30 °C40 °C+17.6 °C+10.4 °CHighest ground

ERA5 is too coarse to show these mountains, so its line is nearly flat. Correcting each cell separately pulls WRF close to that line. It adds anywhere from 5.3 to 17.6 °C, and the most where WRF is coldest.

Smoothed, the correction lifts the whole line
20 °C30 °C40 °C+8.6 °C+9.3 °CHighest ground

I smooth the correction over about 50 km, separately for land and sea. Here it adds 7.6 to 9.3 °C all the way along, so the mountains stay. On the highest ground, the result is 9.4 °C colder than ERA5, which is too coarse to show which is right.

Fixing the average overshoots the hottest days

The hottest day anywhere is 51.5 °C in ERA5 but only 44.4 °C in raw WRF. My smoothed correction overshoots to 55.8 °C. Also correcting the day-to-day spread brings it to 52.2 °C. That fix was adopted for the production correction.

Hottest daily high, on its own scale. Each step is 2 °C.

30 °C40 °C50 °C

Above 54 °CSmoothed map’s hottest spotCorrected daysERA5 daysHottest day

ERA5Peak 51.5 °C
Hottest daily high in each place in ERA5. Nowhere is above 54 °C.
51.1 °C

Summer days at the ring: spread 2.0 °C

SmoothedPeak 55.8 °C
The same map after the smoothed correction. A hatched area at the head of the Gulf is above 54 °C.
55.8 °C

Summer days at the ring: spread 3.5 °C

Smoothed + spreadPeak 52.2 °C
The same map after also correcting the spread. Nowhere is above 54 °C, and the mountains are still sharp.
51.3 °C

Summer days at the ring: spread 2.3 °C

Why it happens

In summer, raw WRF is too cold, but its daily highs also vary more than ERA5’s: 1.29 times as much, averaged over the map. The smoothed correction warms summer days but doesn’t reduce that variation, so the hottest days overshoot.

The ring marks the hottest spot on the smoothed map. Each chart counts that spot’s 460 summer days by daily high, and spread is their standard deviation.

How the fix works

I split each day into the usual temperature for that date and how far the day is above or below it. I correct the usual part as before, then multiply the rest by ERA5’s spread divided by WRF’s. At the ring, that averages 0.66 in summer, so the swings shrink by about a third.

Both spreads are measured at 50 km, because ERA5 can’t show finer detail. I adapted this from the ISIMIP (Inter-Sectoral Impact Model Intercomparison Project) method of Hempel et al. (2013).

What improves, and what doesn’t

RawSmoothed+ spread
Cell-days above 54 °C04,2500
Summer spread ratio1.291.331.05
Summer detail match1.000.990.99
Autumn hot-day error−4.5−0.1−0.4
Winter hot-day error+2.1−3.0−1.5

Smoothing leaves winter hot days further from ERA5 than raw WRF does. The spread fix helps, but they’re still too cold, and autumn gets slightly worse. A cell-day is one map cell on one day, and spread ratio is spread divided by ERA5’s. Hot-day error is the map minus ERA5, in °C, at each place’s 99th percentile, averaged over cells about 22 km apart.

How the maps were made

The main maps and close-ups show the average daily high 2 m above the ground, in June to August or December to February. I built both corrections from even years in 1990–1999, and every map shows only odd years. Each December counts with the next year’s winter.

All the maps are drawn in 2 °C steps. The full maps and hottest-day maps use 2 × 2 cell averages. The numbers use the full data.

I chose the close-up by rule. Of all areas this size on the Arabian Peninsula at least 10 km from the sea, it’s where cell-by-cell loses the most fine detail that smoothing keeps, averaged over both seasons.

How the numbers are measured

Each difference is the map minus ERA5 in the same 2.7 km cell, after ERA5 is interpolated from its roughly 25 km grid. “Typically off” is the root-mean-square difference over the whole map.

Fine detail is what’s left after subtracting a version of the map smoothed over 25 km. Detail match is its correlation with raw WRF’s fine detail: 1 is the same pattern, and 0 is no match.

Pressure falls with height. On the cross-section, WRF’s surface pressure is lowest at the dips, which shows they’re the high ground.

What to keep in mind

Cell-by-cell is closer to ERA5. In summer it’s typically 0.8 °C off, against 1.2 °C for smoothed. But ERA5 is too coarse to check WRF’s fine detail, so this page shows the detail is kept, not that it’s right.

ERA5 can miss local peaks. Its daily high here is the highest of four readings a day, six hours apart. I also first saw the overshoot using all ten years, so the idea for the spread fix wasn’t independent of the test years.

Smoothing land and sea separately adds a sharp edge at the coast. In summer, land cells end up 4.8 °C warmer than the sea cells next to them, against 0.4 °C in ERA5 and 0.0 °C in raw WRF. The close-ups show only inland areas.

The raw simulation has large errors. Use these maps to compare the corrections, not as a guide to the climate.