/agentic-awesome-skills:xarray-coordinate-alignmentfrom agentic-awesome-skills
Diagnoses xarray coordinate mismatches and guides explicit alignment before comparing or merging labeled scientific datasets, including weather and climate grids.
Ships in agentic-awesome-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use weather-model-data-fetching to obtain model inputs and weather-data-reproducibility to record provenance. This workflow starts with loaded or lazily opened xarray objects.
.dims, .sizes, .coords, and .xindexes on each input. Confirm that names such as time, valid_time, and step represent the intended axes before renaming. Different dimension names can broadcast and create extra axes.y and x indexes can still correspond to different locations.| Intended coverage | Operation | What to verify |
|---|---|---|
| Same indexed labels in the same order | xr.align(a, b, join="exact", copy=False) | Inspect the mismatch if alignment raises. |
| Shared labels only | xr.align(a, b, join="inner", copy=False) | Count labels dropped from each input and flag an empty overlap. |
| All labels from both inputs | xr.align(a, b, join="outer", copy=False) | Count introduced gaps and retain missing values unless the calculation defines a fill. |
| One input supplies the target labels | xr.align(a, b, join="left", copy=False) for a | Identify any target labels missing from the other input. |
Use explicit alignment before arithmetic. For adding variables from same-grid datasets, pass join="exact" to xr.merge and choose compat and combine_attrs explicitly. Use compat="no_conflicts" for complementary missing values only after confirming that overlapping variables have the same meaning and units. Conflicting nonmissing values require a resolution supported by the source data.
For different grids or sampling times, establish the intended interpolation, regridding, or calendar conversion method before proceeding. Record the target, tolerance or method, and resulting coverage.
Compare two synthetic daily series. The requested result retains all days from both inputs and calculates simulated minus observed only where both values exist.
import numpy as np
import xarray as xr
observed = xr.DataArray(
[10.0, 12.0], dims="time",
coords={"time": np.array(["2026-01-01", "2026-01-02"], dtype="datetime64[D]")},
)
simulated = xr.DataArray(
[11.0, 13.0], dims="time",
coords={"time": np.array(["2026-01-02", "2026-01-03"], dtype="datetime64[D]")},
)
observed, simulated = xr.align(observed, simulated, join="outer", copy=False)
difference = simulated - observed
np.testing.assert_array_equal(
difference["time"].values.astype("datetime64[D]"),
np.array(["2026-01-01", "2026-01-02", "2026-01-03"], dtype="datetime64[D]"),
)
np.testing.assert_allclose(difference.values, [np.nan, -1.0, np.nan])
Use xarray in the existing Python environment with authorized inputs. The example uses NumPy and xarray in memory, with no accounts, network calls, or file writes. Accessing lazy values can read from the original backend, so use a bounded slice from the authorized source.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
xarray, coordinate-alignment, scientific-data, netcdf, weather-data
npx claudepluginhub sickn33/agentic-awesome-skills --plugin agentic-awesome-skills3,104 skills in this plugin
/007Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project./00-andruia-consultantUsar al iniciar o mejorar un proyecto de IA: diagnostica código y restricciones, propone skills existentes y redacta tareas y un plan de implementación en español./10-andruia-skill-smithUsar para crear o mejorar una skill de Andru.ia: define entradas y resultados, redacta SKILL.md con ejemplos y límites, valida la estructura y prepara una PR.2 plugins in one repository ship this exact skill · first indexed Dec 1, 2026
Other plugins' skills for the same job