xarray is a package for working with labelled multidimensional arrays and datasets. It extends conventional array processing by associating dimensions, coordinates and metadata with numerical data, making it easier to organise and analyse complex information.
The software is particularly useful for scientific datasets where measurements depend on multiple variables, such as time, geographical position, depth or experimental conditions. Rather than relying exclusively on numerical array positions, users can select and manipulate data using meaningful labels.
xarray is widely used in climate science, meteorology, oceanography and other fields that work with multidimensional information. It integrates with NumPy, pandas and Dask, allowing analytical workflows to combine labelled data structures with numerical processing and parallel computation.
This is free and open source software.
Key Features
- DataArray and Dataset objects for representing labelled multidimensional data.
- DataTree structures for organising hierarchical collections of datasets.
- Select data by coordinate labels, dimension names and positional indexes.
- Perform mathematical operations with automatic broadcasting and coordinate alignment.
- Group and aggregate data using split-apply-combine operations.
- Resample time series using date and time coordinates.
- Apply rolling-window calculations, weighted reductions and coarsening operations.
- Interpolate data along one or more dimensions.
- Reindex and align datasets while handling missing coordinates and values.
- Reshape data using stacking, unstacking, transposing and dimension expansion.
- Combine datasets through concatenation, merging and coordinate-aware operations.
- Read and write netCDF, HDF5 and Zarr data using supported backends.
- Access data from OPeNDAP and other supported scientific data sources.
- Process large datasets using Dask for parallel and out-of-core computation.
- Produce plots of arrays, datasets and geographical information.
- Interoperate with pandas and NumPy data structures.
- Store descriptive metadata as attributes attached to arrays and datasets.
- Support scientific calendars and specialised date representations.
- Cross-platform support – runs on Linux, macOS, and Windows.
Website: github.com/pydata/xarray
Support:
Developer: xarray Developers
License: Apache License 2.0
xarray is written in Python. Learn Python with our recommended free books and free tutorials.
Related Software
| Python Data Analysis | |
|---|---|
| pandas | High-level building block for doing practical, real world data analysis |
| NumPy | Core package for scientific computing with Python |
| SciPy | Ecosystem for mathematics, science, and engineering |
| Polars | DataFrame interface on top of an OLAP Query Engine |
| statsmodels | Statistical modeling and econometrics in Python |
| Dask | Advanced parallelism for analytics |
| Orange | Component-based framework for machine learning and data mining |
| Modin | Drop-in replacement for pandas |
| Vaex | Fast visualization of big data |
| AWS DW | Extends the power of pandas library |
| yt | Multi-code Toolkit for Analyzing and Visualizing Volumetric Data |
| HoloViews | Make Data Analysis and Visualization Seamless |
| datatable | Manipulate 2-dimensional tabular data structures |
| xarray | Work with labelled multi-dimensional arrays and datasets |
| pyjanitor | Extend pandas with readable data-cleaning functions |
| Optimus | Agile Data Preparation Workflows |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.