xarray (formerly xray) is an open source project and Python package that aims to bring the labeled data power of pandas to the physical sciences, by providing N-dimensional variants of the core pandas data structures.
Our goal is to provide a pandas-like and pandas-compatible toolkit for
analytics on multi-dimensional arrays, rather than the tabular data for which
pandas excels. Our approach adopts the Common Data Model for self-
describing scientific data in widespread use in the Earth sciences:
xarray.Dataset
is an in-memory representation of a netCDF file.
Getting Started
.. toctree:: :maxdepth: 1 :hidden: :caption: Getting Started why-xarray faq examples installing
User Guide
- :doc:`data-structures`
- :doc:`indexing`
- :doc:`interpolation`
- :doc:`computation`
- :doc:`groupby`
- :doc:`reshaping`
- :doc:`combining`
- :doc:`time-series`
- :doc:`pandas`
- :doc:`io`
- :doc:`dask`
- :doc:`plotting`
.. toctree:: :maxdepth: 1 :hidden: :caption: User Guide data-structures indexing interpolation computation groupby reshaping combining time-series pandas io dask plotting
Help & reference
- :doc:`whats-new`
- :doc:`api`
- :doc:`internals`
- :doc:`roadmap`
- :doc:`contributing`
- :doc:`related-projects`
.. toctree:: :maxdepth: 1 :hidden: :caption: Help & reference whats-new api internals roadmap contributing related-projects
- Stephan Hoyer and Joe Hamman's Journal of Open Research Software paper describing the xarray project.
- The UW eScience Institute's Geohackweek tutorial on xarray for geospatial data scientists.
- Stephan Hoyer's SciPy2015 talk introducing xarray to a general audience.
- Stephan Hoyer's 2015 Unidata Users Workshop talk and tutorial (with answers) introducing xarray to users familiar with netCDF.
- Nicolas Fauchereau's tutorial on xarray for netCDF users.
- 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 of interest to xarray users, use the mailing list.
Xarray is a fiscally sponsored project of NumFOCUS, a nonprofit dedicated to supporting the open source scientific computing community. If you like Xarray and want to support our mission, please consider making a donation to support our efforts.
xarray is an evolution of an internal tool developed at The Climate Corporation. It was originally written by Climate Corp researchers Stephan Hoyer, Alex Kleeman and Eugene Brevdo and was released as open source in May 2014. The project was renamed from "xray" in January 2016. Xarray became a fiscally sponsored project of NumFOCUS in August 2018.
xarray is available under the open source Apache License.