Build Local Climate Anomaly Charts with France’s SIM2 Data in R
France’s monthly SIM2 climate data makes it possible to move from national temperature stripes to a city-level view of historical change. The dataset spans 1970–2025 and maps temperature, precipitation and other weather variables on an 8 km grid. That resolution gives readers a way to examine broad local patterns that a country-wide average can smooth over, though it still represents a gridded estimate rather than a thermometer reading at every address. With R’s spatial tools, you can extract a location’s monthly temperatures and chart their departures from a defined baseline.
That added detail is useful when a national picture leaves local variation out of view. A country-wide series can make the direction of change easy to grasp, but it can’t answer every question about how a particular place compares with its own past. The example below focuses on June in Paris, then shows how the same workflow can generate charts for other months and places.
SIM2 is available from Météo-France’s monthly dataset; the familiar ShowYourStripes visualizations offer a broader reference point. The two views serve different purposes: stripes communicate a long run of anomalies at a glance, while a location chart makes the chosen month, baseline and scale more explicit. This is more significant than it looks, because those choices shape what a reader can reasonably infer from a climate chart.
From compressed tables to a location series
The input comes as compressed, semicolon-separated CSV files. The R workflow reads those files into a data frame, then uses terra to turn the tabular grid coordinates and temperature values into a raster. Each date becomes a raster layer, so the data’s geographic layout and monthly sequence are represented together rather than treated as an ordinary list of observations.
That structure matters for the extraction step. With one layer per date, terra::extract() can retrieve the sequence of temperatures associated with a chosen location across the period. The result is a time series that can be filtered and plotted using familiar R tools. The raster approach also makes the underlying assumption visible: a requested place is matched to a value represented on an 8 km grid, not to a bespoke measurement point.
Location lookup uses OpenStreetMap’s Nominatim service through osmdata. The function takes the first geocoding result, finds a point on its surface, and transforms it into the coordinate reference system used by the SIM2 grid. That’s convenient for turning a place name into coordinates, but the first result is still a choice made by the lookup service; ambiguous names or large place boundaries can affect which point gets sampled. Memoisation caches that lookup, which avoids repeating the same request when generating several charts for one place.
For a selected month, the workflow filters dates by their month number, builds the raster from the grid coordinates, and extracts the values at the location. It then calculates an anomaly for each year by subtracting that month’s 1991–2020 mean. Comparing June values with the June baseline keeps seasonal differences from distorting the chart: a June observation is judged against Junes, rather than against a yearly average that includes colder and warmer parts of the calendar.
Reading the chart
The output is a bar chart of yearly temperature departures in degrees Celsius. Red and blue fills distinguish warmer and cooler months relative to the baseline, while a LOESS curve gives a smoothed view of the longer-term pattern. That curve can help the eye follow broad movement through year-to-year variation, but smoothing also deemphasizes individual years; it’s a guide to the pattern, not a replacement for the bars.
The chart labels identify the month, location, baseline period and data source. Those labels are more than housekeeping. Without them, a reader could mistake an anomaly for an absolute temperature, or compare two charts built against different reference periods as if they meant the same thing.
For Paris, the example plots June temperatures from 1970 through 2025. The function can also save a PNG to a chosen output directory, with a cleaned location name in the filename—handy when building a set of charts for a report or presentation. If you’re working in this space, that repeatability is useful: the same steps can be applied across places and months, while the resulting files remain easy to identify.
Comparisons need consistent scales
Running the function across all 12 months can produce a full year of charts; changing the location makes the same approach applicable to other French cities, such as Grenoble. There’s one important constraint when comparing those plots: their default axis and color scales vary. A warmer-looking bar may reflect the chart’s scale as much as the underlying anomaly.
For comparisons across months or cities, set shared y-axis limits and color breaks. That makes the differences interpretable across the full set, because the same visual length and shade then correspond to the same range of values. Here’s the thing: a chart can be technically accurate and still invite a misleading comparison if its scale changes from panel to panel.
What a local chart can tell you
The practical value of SIM2 is the combination of a long monthly record and a grid fine enough to examine conditions at a specific location, while keeping the baseline and chart scales explicit. That makes the workflow useful for exploration and communication: it can show how one month’s temperatures depart from a defined local reference, and how those departures vary over time.
And yet, a location chart answers a narrow question. It doesn’t by itself explain why a particular year was unusual, establish what happened between the monthly observations, or describe every condition within a city. Similar gridded climate products typically summarize conditions over an area, so readers should treat the extracted series as a structured view of local history rather than a complete account of lived weather.
(And this is the part most people overlook.) A repeatable chart is only as clear as its choices: which place the geocoder selected, which month was filtered, what baseline was used and whether scales match across comparisons. Make those choices visible, and the output can help readers move from a national signal to a more specific question without claiming more precision than the data supports. Useful context, with limits.
