Skip to content
Skills Library
Science & research · Analysis

climate-analysis

/climate-analysis

Analyse labelled climate time series and gridded or station observations with checked calendars, aggregation, climatological baselines and spatial validation. Use for climate anomalies, regional summaries or station-to-grid analysis; distinguish descriptive analysis from future-time prediction.

Licence
MIT
Last repository change
15.09.2026

Assessment and security

95/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content30 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
1
HTML comments
0
URLs in SKILL.md
2
Deprecation

No signals detected. Repository changed on 15.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/station_pipeline.py

What it does and when to use it

Analyse labelled climate time series and gridded or station observations with checked calendars, aggregation, climatological baselines and spatial validation. Use for climate anomalies, regional summaries or station-to-grid analysis; distinguish descriptive analysis from future-time prediction.

Original author description

Analyse labelled climate time series and gridded or station observations with checked calendars, aggregation, climatological baselines and spatial validation. Use for climate anomalies, regional summaries or station-to-grid analysis; distinguish descriptive analysis from future-time prediction.

How it works

  1. Define the data contract
  2. Select the analysis
  3. Aggregate without losing meaning
  4. Spatial modelling and validation
  5. Outputs and uncertainty
  6. Executed station case
Original SKILL.md headings · 95 lines, 739 words
SKILL.md preview
---
name: climate-analysis
description: >-
  Analyse labelled climate time series and gridded or station observations with
  checked calendars, aggregation, climatological baselines and spatial validation.
  Use for climate anomalies, regional summaries or station-to-grid analysis;
  distinguish descriptive analysis from future-time prediction.
license: MIT
metadata:
  version: "1.0.1"
  author: Geoscience Skills
  skill_type: workflow
  tags: '["Climate", "Time Series", "Spatial Analysis", "Validation"]'
  dependencies: '["xarray", "numpy", "pandas", "cftime", "verde", "pyproj", "scipy"]'
  complements: '["xarray", "verde", "pooch"]'
  workflow_role: analysis
---

# Climate Analysis

Use `xarray` for labelled climate arrays and `verde` only when scattered spatial
observations need interpolation. Existing regular grids do not require a new
interpolation stage. Run the relevant stages in one agent; companion skills are
helpful references rather than mandatory registrations.

## Define the data contract

Identify the variable, physical units, spatial support, timestamp meaning,
calendar, time bounds, missing-value encoding and source/version before combining
files. Check coordinate uniqueness and order, longitude convention, latitude
direction, projection, vertical level and ensemble/member dimensions. Preserve
non-Gregorian calendars; do not silently coerce them into ordinary timestamps.

Distinguish an instantaneous value, interval mean, accumulated amount and rate.
For precipitation or energy fluxes, use the time bounds and unit definition to
decide integration or summation. Do not apply the same resampling operation to
temperature means and accumulated rainfall. Record source URLs, licences and
checksums; use the `pooch` skill only when downloading is actually requested.

## Select the analysis

| Deliverable | Main steps | Validation partition |
| --- | --- | --- |
| Climatology/anomalies | Specify baseline years, calendar grouping, coverage and weights | Document baseline overlap; no forecasting claim from descriptive anomalies |
| Regional averages | Use cell areas or justified spatial weights and a fixed mask | Check missing coverage and area/weight normalisation for each period |
| Station-to-grid product | Project coordinates appropriately, fit a spatial model, mask unsupported regions | Withhold spatial blocks or stations before fitting any preprocessing |
| Forecast/downscaling evaluation | Define issue time, lead time and predictor availability, then fit | Withhold future time periods and unseen locations as required by deployment |

## Aggregate without losing meaning

Choose an explicit coverage rule for incomplete months/seasons and retain a
coverage/count variable. Weight monthly means by represented duration, respecting
the dataset's calendar; the [xarray seasonal-mean example](https://docs.xarray.dev/en/stable/examples/monthly-means.html)
illustrates calendar-aware weighting. Renormalise over valid support only when
that matches the stated estimand; never turn an entirely missing region or
period into a zero observation.

Use supplied cell areas for irregular/projected grids. Cosine-latitude weights
are an approximation for suitable regular longitude/latitude grids, not a
general area calculation. Define whether December belongs to the following
winter year before grouping DJF; a long-term seasonal climatology and a sequence
of individual seasonal means are different outputs.

For anomalies, record baseline years and grouping. In prediction experiments,
estimate climatology, trends, scaling, missing-value models and bias corrections
using training data only. Do not allow centred windows, filled gaps or target
aggregation windows to reach into future observations unavailable at issue time.

## Spatial modelling and validation

For station observations, retain station identifiers and repeated-observation
groups. Use a distance-appropriate CRS for a regional planar model; do not feed
unqualified geographic degrees into metre-scale block sizes. Fit trends,
normalisation, hyperparameters and interpolation within each training fold.

Use [Verde spatial block validation](https://www.fatiando.org/verde/latest/api/generated/verde.BlockKFold.html)
when evaluating interpolation away from measured stations. Choose block size
and any buffer from spatial support/dependence and the intended deployment;
randomly splitting neighbouring samples can overstate performance. For future
predictions, also hold out contiguous time periods. A station appearing in both
sets may still be valid for a same-station forecast, but does not test an unseen
location; state which question the split answers.

## Outputs and uncertainty

Export a labelled dataset retaining units, calendar, CRS, baseline, masks and
coverage, plus a record of processing choices and package versions. Reopen the
output and check coordinates, dimensions and selected analytical summaries.
Report errors by location/season and against a suitable climatology or persistence
baseline. Account for temporal/spatial dependence when estimating uncertainty;
model spread is not automatically a calibrated predictive interval, and trend
significance is not causal attribution.

## Executed station case

The [NOAA station example](references/validated-station-case.md) executes the
workflow from real daily maximum temperatures through QC, calendar-aware means,
short-reference anomalies, spatial holdout and a labelled NetCDF export. Its
[offline script](scripts/station_pipeline.py) requires the recorded source and
provenance files and preserves existing output directories.

The example separates each station's descriptive anomaly from a spatial model
relative to a station-network reference. Every spatial fold learns that reference
from training stations alone; the held-out station's past values are also excluded.
The final grid contains model estimates, with a recorded support mask and spherical
cell areas. A regional model mean is not a measured regional climate change.

Tests also cover synthetic `360_day`/`noleap` calendars, missing coverage and
all-NaN periods/regions. This verification does not establish forecasts,
30-year climate normals, homogenization, precipitation integration or arbitrary
regridding accuracy. Use a data-specific validation for those branches.
Files in this package (3)
  • SKILL.md 6 KB
  • references/validated-station-case.md 4 KB
  • scripts/station_pipeline.py 22 KB

Versions

The database has no other skills named climate-analysis.

Database snapshot: 13.11.2026 · package version 2793212d9f92 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100copernicus-climate
    Access Copernicus Climate Data Store (CDS) for ERA5 reanalysis, climate projections, and satellite observations. Use when: (1) retrieving historical weather/climate data, (2) downloading ERA5 reanalysis fields, (3) querying climate projections (CMIP), (4) getting…
  • 95skill-127
    Analyze climate data over geographic areas using GeoPandas. Use to understand climate change effects and trends on various ecosystems.
  • 95pyleoclim
    Analyse paleoclimate proxy time series with Pyleoclim, including irregular sampling, spectra and comparisons across uncertain chronologies. Use for proxy Series and EnsembleSeries analysis, spectral peaks and age-model sensitivity; use xarray for gridded climate fields.
  • 100track-climate-hazards
    Retrieve climate-relevant disaster events, anomalies, and climate news. Use when the user asks about floods, cyclones, droughts, heatwaves, wildfires, or climate disruption.
  • 100pilot-service-agents-climate
    Climate and energy-grid data — UK carbon intensity, Electricity Maps zones, Open-Meteo climate. Use this skill when: 1. Real-time grid carbon intensity by region (UK, generic) 2. Electricity-mix snapshots (Electricity Maps) 3. Climate normals / long-term series (Open-Meteo…
  • 100earth2studio-data-fetch
    Fetch weather/climate data via Earth2Studio data sources for specific variables and times. Do NOT use for inference pipelines, model discovery, or installation.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.