xarray: N-D labeled arrays and datasets in Python

xarray (formerly xray) is an open source project and Python packagethat makes working with labelled multi-dimensional arrays simple,efficient, and fun!

Xarray introduces labels in the form of dimensions, coordinates andattributes on top of raw NumPy-like arrays, which allows for a moreintuitive, more concise, and less error-prone developer experience.The package includes a large and growing library of domain-agnostic functionsfor advanced analytics and visualization with these data structures.

Xarray was inspired by and borrows heavily from pandas, the popular dataanalysis package focused on labelled tabular data.It is particularly tailored to working with netCDF files, which were thesource of xarray’s data model, and integrates tightly with dask for parallelcomputing.

Documentation

See also

Get in touch

  • Ask usage questions (“How do I?”) on StackOverflow.

  • Report bugs, suggest features or view the source code on GitHub.

  • For less well defined questions or ideas, or to announce other projects ofinterest to xarray users, use the mailing list.

NumFOCUS

_images/numfocus_logo.png Xarray is a fiscally sponsored project of NumFOCUS, a nonprofit dedicatedto supporting the open source scientific computing community. If you likeXarray and want to support our mission, please consider making a donationto support our efforts.

History

xarray is an evolution of an internal tool developed at The ClimateCorporation. It was originally written by Climate Corp researchers StephanHoyer, Alex Kleeman and Eugene Brevdo and was released as open source inMay 2014. The project was renamed from “xray” in January 2016. Xarray became afiscally sponsored project of NumFOCUS in August 2018.

License

xarray is available under the open source Apache License.