Skip to content
Skills Library
Data & analytics · Conversion & formats

drop

/drop

Remove named data variables or non-index coordinates from a weather-skills Zarr. Use to strip leftovers that stop two datasets from lining up, or to keep only the variables a later step needs.

Licence
MIT
Last repository change
24.10.2026

Assessment and security

100/ 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.
Content35 / 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
2
HTML comments
0
URLs in SKILL.md
0
Deprecation

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

Licence

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

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

Scripts: scripts/drop.py, tests/test_drop.py

What it does and when to use it

Remove named data variables or non-index coordinates from a weather-skills Zarr. Use to strip leftovers that stop two datasets from lining up, or to keep only the variables a later step needs.

Original author description

Remove named data variables or non-index coordinates from a weather-skills Zarr. Use to strip leftovers that stop two datasets from lining up, or to keep only the variables a later step needs.

How it works

  1. Usage
Original SKILL.md headings · 30 lines, 170 words
SKILL.md preview
---
name: drop
description: "Remove named data variables or non-index coordinates from a weather-skills Zarr. Use to strip leftovers that stop two datasets from lining up, or to keep only the variables a later step needs."
license: MIT
compatibility: Requires Python 3.12 and uv.
allowed-tools: Bash(uv run ${CLAUDE_SKILL_DIR}/scripts/drop.py *)
metadata:
  version: "0.0.3"
  catalog-group: transforms
---

# drop

Removes the named data variables and coordinates and writes the rest unchanged.

## Usage

```bash
uv run ${CLAUDE_SKILL_DIR}/scripts/drop.py -i IN.zarr -o OUT.zarr --name NAME [--name NAME ...]
```

### Arguments
- `--input`, `-i` — input Zarr.
- `--name` — a data variable, or a coordinate that does not index a dimension; repeat for several. Required.
- `--output`, `-o` — output Zarr.

### Output
The input without the named variables; attributes pass through unchanged.

### Notes
- A coordinate's CF `bounds` variable is not dropped with it; list it with `--name` too.
- To remove a dimension, pick one entry with select or reduce over it with summarize-dim.
- Exits 2 when a name does not exist (the message lists what does), names a dimension's index, or would leave no data variables.

### Example
```bash
uv run ${CLAUDE_SKILL_DIR}/scripts/drop.py -i ifs.zarr -o ifs_clean.zarr --name valid_time --name surface
```
Writes the IFS fetch without its scalar `valid_time` and `surface` coordinates, so it lines up with an IMERG dataset that lacks them.
Files in this package (3)
  • SKILL.md 1 KB
  • scripts/drop.py 1 KB
  • tests/test_drop.py 2 KB

Versions

The database has no other skills named drop.

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

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100edit-coords
    Rename data variables, coordinates, or dimensions in a weather-skills Zarr, or re-index a dimension by another coordinate along it. Use to make two datasets' names match before combining them, or to index stations by their ids.
  • 100merge
    Combine the variables of two or more weather-skills Zarrs into one dataset, keeping the coordinate values they share. Use to put related quantities side by side, e.g. a climate index and rainfall, to compare or plot one against the other.
  • 100synthetic-data
    Generates synthetic Zarr datasets with configurable dimensions, shapes, data types, and compression for controlled chunking benchmarks. Supports local and cloud storage backends (S3, GCS). Use when the user needs to create test Zarr datasets for benchmarking, generate synthetic…
  • 95data-migration
    Migrates data between formats with a focus on converting HDF5 and NetCDF datasets to Zarr. Covers xarray-based conversion, direct zarr.copy operations, VirtualiZarr for reference-based virtual Zarr stores, kerchunk for legacy workflows, validation strategies, and batch migration…

Feedback and reports

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