xarray-netcdf

Analyze NetCDF/HDF5 datasets with xarray and lazy Dask computation.

33|6|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill xarray-netcdf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xarray-netcdf
Source: https://github.com/xjtulyc/awesome-rosetta-skills/tree/main/skills/01-physics/xarray-netcdf
Command: npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill xarray-netcdf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you analyze large, multi-dimensional scientific datasets stored in NetCDF/HDF5 by providing labeled array operations with lazy loading, efficient parallel computation, and standards-compliant metadata handling.

Core Features & Use Cases

  • Labeled N-D data analysis: Use xarray’s named dimensions and coordinates to select, align, merge, interpolate, and compute statistics without losing semantic meaning.
  • Scalable I/O with lazy Dask execution: Open and transform datasets without loading everything into RAM, then compute results when needed.
  • Cloud-ready storage and interoperability: Convert NetCDF to chunked Zarr stores for faster parallel access, and write CF-compliant metadata for downstream tooling.

Use Case: You have multiple years of climate model output in NetCDF and need to compute seasonal means, anomalies, and area-weighted global averages while converting the dataset to Zarr for efficient reanalysis and sharing.

Quick Start

Use the xarray-netcdf skill to open a large NetCDF file with Dask chunking, compute a seasonal mean from a chosen variable, and write the result back with CF metadata preserved.

Frequently Asked Questions about xarray-netcdf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compute seasonal climatologies from large NetCDF climate datasets without loading everything into RAM?

Use xarray to open NetCDF files with Dask chunking for lazy loading, compute seasonal means and anomalies on labeled coordinates, then write results to chunked Zarr stores with CF-compliant metadata preserved.

What is the best way to convert NetCDF files to Zarr for cloud-native parallel processing?

Convert NetCDF to Zarr by opening the dataset with xarray and lazy Dask execution, rechunking across dimensions for parallel access, and writing to a chunked Zarr store with CF-compliant metadata preserved.

Does xarray support CF-convention metadata like standard_name and calendars when writing NetCDF?

Yes, xarray supports CF-convention metadata by encoding attributes like units, standard_name, and calendars when writing NetCDF files, ensuring downstream scientific tooling correctly interprets labeled coordinates and time axes.

How do I calculate area-weighted global averages from remote sensing data using xarray?

Calculate area-weighted global averages from remote sensing data by using xarray's labeled dimensions to align latitude and longitude coordinates with weighting arrays, then apply weighted reductions via Dask for scalable parallel computation across chunks.

Can I perform interpolation and grouping on multidimensional NetCDF arrays without losing semantic meaning?

Yes, you can perform interpolation and grouping on multidimensional NetCDF arrays without losing semantic meaning because xarray operates on named dimensions and coordinates rather than positional indices, preserving metadata throughout the operations.