xarray

Analyze labeled multi-dimensional geoscience data with NetCDF/Zarr I/O and Dask integration.

46|3|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/SteadfastAsArt/geoscience-skills --skill xarray
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xarray
Source: https://github.com/SteadfastAsArt/geoscience-skills/tree/main/xarray
Command: npx skills add https://github.com/SteadfastAsArt/geoscience-skills --skill xarray

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, xarray, scipy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Handling multi-dimensional geoscience data with simple labeled coordinates is painful with plain NumPy; xarray provides high-level labeled data structures and I/O for NetCDF/Zarr, climate/ocean datasets, and CF conventions.

Core Features & Use Cases

  • Labeled multi-dimensional arrays and datasets for intuitive data organization.
  • NetCDF/Zarr I/O and CF-conventions support enabling seamless data loading and saving.
  • Temporal aggregations (daily/monthly/annual means) and time-series analysis.
  • Area-weighted statistics and robust mathematical operations across large arrays.
  • Dask-backed scalability to handle big geoscience datasets.
  • Interoperability with climate/ocean workflows and integration with common Python tools.

Quick Start

Open a NetCDF file and begin exploring labeled multi-dimensional data with simple selections and aggregations.

Frequently Asked Questions about xarray

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

FAQPage Schema
How do I analyze multi-dimensional NetCDF climate data with labeled coordinates?

To analyze multi-dimensional NetCDF climate data with labeled coordinates, you need a library that provides high-level labeled DataArray and Dataset structures. This approach replaces plain NumPy arrays, enabling intuitive data organization and seamless NetCDF I/O for geoscience workflows.

What is the best way to perform area-weighted statistics on large geoscience datasets?

The best way to perform area-weighted statistics on large geoscience datasets is using labeled multi-dimensional arrays integrated with Dask. This combination provides robust mathematical operations across large arrays and Dask-backed scalability to handle big data efficiently.

Can I use Dask with xarray for scalable time-series aggregation?

Yes, you can use Dask with xarray for scalable time-series aggregation. Dask integration provides scalability for big geoscience datasets, enabling efficient temporal aggregations like daily, monthly, and annual means across large arrays.

Does this approach support reading and writing Zarr files with CF conventions?

Yes, this approach supports reading and writing Zarr files with CF conventions. It provides seamless NetCDF and Zarr read-write capabilities, ensuring compatibility with climate and ocean datasets while maintaining CF conventions support.

Why is handling multi-dimensional climate data with plain NumPy painful?

Handling multi-dimensional climate data with plain NumPy is painful because it lacks simple labeled coordinates. Labeled data structures solve this by providing high-level organization and I/O for NetCDF/Zarr, making climate and ocean dataset analysis more intuitive.