A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

Recent Releases of xarray

xarray - v2025.03.1

This release brings the ability to specify fill_value and write_empty_chunks for Zarr V3 stores, and a few bug fixes.
Thanks to the 10 contributors to this release:
Andrecho, Deepak Cherian, Ian Hunt-Isaak, Karl Krauth, Mathias Hauser, Maximilian Roos, Nick Hodgskin (🦎 Vecko), Spencer Clark, Tom Nicholas and wpbonelli.

What's Changed

New Contributors

Full Changelog: https://github.com/pydata/xarray/compare/v2025.03.0...v2025.03.1

Climate Change - Climate Data Standards - Python
Published by dcherian 27 days ago

xarray - v2025.03.0

This release brings tested support for Python 3.13, support for reading Zarr V3 datasets into a :py:class:~xarray.DataTree,
significant improvements to datetime & timedelta encoding/decoding, and improvements to the :py:class:~xarray.DataTree API;
in addition to the usual bug fixes and other improvements.

Thanks to the 26 contributors to this release:
Alfonso Ladino, Benoit Bovy, Chuck Daniels, Deepak Cherian, Eni, Florian Jetter, Ian Hunt-Isaak, Jan, Joe Hamman, Josh Kihm, Julia Signell, Justus Magin, Kai Mühlbauer, Kobe Vandelanotte, Mathias Hauser, Max Jones, Maximilian Roos, Oliver Watt-Meyer, Sam Levang, Sander van Rijn, Spencer Clark, Stephan Hoyer, Tom Nicholas, Tom White, Vecko and maddogghoek

What's Changed

New Contributors

Full Changelog: https://github.com/pydata/xarray/compare/v2025.01.2...v2025.03.0

Climate Change - Climate Data Standards - Python
Published by dcherian about 1 month ago

xarray - v2025.01.2

This release brings non-nanosecond datetime and timedelta resolution to xarray, sharded reading in zarr, suggestion of correct names when trying to access non-existent data variables and bug fixes!

Thanks to the 16 contributors to this release: Deepak Cherian, Elliott Sales de Andrade, Jacob Prince-Bieker, Jimmy Westling, Joe Hamman, Joseph Nowak, Justus Magin, Kai Mühlbauer, Mattia Almansi, Michael Niklas, Roelof Rietbroek, Salaheddine EL FARISSI, Sam Levang, Spencer Clark, Stephan Hoyer and Tom Nicholas

What's Changed

New Contributors

Full Changelog: https://github.com/pydata/xarray/compare/v2025.01.1...v2025.01.2

Climate Change - Climate Data Standards - Python
Published by kmuehlbauer 3 months ago

xarray - v2025.01.1

This is a quick release to bring compatibility with the Zarr V3 release. It also includes an update to the time decoding
infrastructure as a step toward enabling non-nanosecond datetime support.

What's Changed

Full Changelog: https://github.com/pydata/xarray/compare/v2025.01.0...v2025.01.1

Climate Change - Climate Data Standards - Python
Published by dcherian 4 months ago

xarray - v2025.01.0

This release brings much improved read performance with Zarr arrays (without consolidated metadata), better support for additional array types, as well as bugfixes and performance improvements.
Thanks to the 20 contributors to this release:
Bruce Merry, Davis Bennett, Deepak Cherian, Dimitri Papadopoulos Orfanos, Florian Jetter, Illviljan, Janukan Sivajeyan, Justus Magin, Kai Germaschewski, Kai Mühlbauer, Max Jones, Maximilian Roos, Michael Niklas, Patrick Peglar, Sam Levang, Scott Huberty, Spencer Clark, Stephan Hoyer, Tom Nicholas and Vecko

What's Changed

New Contributors

Full Changelog: https://github.com/pydata/xarray/compare/v2024.11.0...v2025.01.0

Climate Change - Climate Data Standards - Python
Published by dcherian 4 months ago

xarray - v2024.11.0

What's Changed

New Contributors

Full Changelog: https://github.com/pydata/xarray/compare/v2024.10.0...v2024.11.0

Climate Change - Climate Data Standards - Python
Published by dcherian 5 months ago

xarray - v2024.10.0

This release brings official support for xarray.DataTree, and compatibility with zarr-python v3!

Aside from these two huge features, it also improves support for vectorised interpolation and fixes various bugs.

Thanks to the 31 contributors to this release:
Alfonso Ladino, DWesl, Deepak Cherian, Eni, Etienne Schalk, Holly Mandel, Ilan Gold, Illviljan, Joe Hamman, Justus Magin, Kai Mühlbauer, Karl Krauth, Mark Harfouche, Martey Dodoo, Matt Savoie, Maximilian Roos, Patrick Hoefler, Peter Hill, Renat Sibgatulin, Ryan Abernathey, Spencer Clark, Stephan Hoyer, Tom Augspurger, Tom Nicholas, Vecko, Virgile Andreani, Yvonne Fröhlich, carschandler, joseph nowak, mgunyho and owenlittlejohns

What's Changed

New Contributors

Full Changelog: https://github.com/pydata/xarray/compare/v2024.09.0...v2024.10.0

Climate Change - Climate Data Standards - Python
Published by TomNicholas 6 months ago

xarray - v2024.09.0

This release drops support for Python 3.9, and adds support for grouping by multiple arrays, while providing numerous performance improvements and bug fixes.

Thanks to the 33 contributors to this release:
Alfonso Ladino, Andrew Scherer, Anurag Nayak, David Hoese, Deepak Cherian, Diogo Teles Sant'Anna, Dom, Elliott Sales de Andrade, Eni, Holly Mandel, Illviljan, Jack Kelly, Julius Busecke, Justus Magin, Kai Mühlbauer, Manish Kumar Gupta, Matt Savoie, Maximilian Roos, Michele Claus, Miguel Jimenez, Niclas Rieger, Pascal Bourgault, Philip Chmielowiec, Spencer Clark, Stephan Hoyer, Tao Xin, Tiago Sanona, TimothyCera-NOAA, Tom Nicholas, Tom White, Virgile Andreani, oliverhiggs and tiago

What's Changed

New Contributors

Full Changelog: https://github.com/pydata/xarray/compare/v2024.07.0...v2024.09.0

Climate Change - Climate Data Standards - Python
Published by owenlittlejohns 8 months ago

xarray - v2024.07.0

This release extends the API for groupby operations with various grouper objects, and includes improvements to the documentation and numerous bugfixes.

Thanks to the 22 contributors to this release:
Alfonso Ladino, ChrisCleaner, David Hoese, Deepak Cherian, Dieter Werthmüller, Illviljan, Jessica Scheick, Joel Jaeschke, Justus Magin, K. Arthur Endsley, Kai Mühlbauer, Mark Harfouche, Martin Raspaud, Mathijs Verhaegh, Maximilian Roos, Michael Niklas, Michał Górny, Moritz Schreiber, Pontus Lurcock, Spencer Clark, Stephan Hoyer and Tom Nicholas

What's Changed

New Contributors

Full Changelog: https://github.com/pydata/xarray/compare/v2024.06.0...v2024.07.0

Climate Change - Climate Data Standards - Python
Published by keewis 9 months ago

xarray - v2024.06.0

This release brings compatibility with numpy 2 and various performance optimizations.

Thanks to the 22 contributors to this release:
Alfonso Ladino, David Hoese, Deepak Cherian, Eni Awowale, Ilan Gold, Jessica Scheick, Joe Hamman, Justus Magin, Kai Mühlbauer, Mark Harfouche, Mathias Hauser, Matt Savoie, Maximilian Roos, Mike Thramann, Nicolas Karasiak, Owen Littlejohns, Paul Ockenfuß, Philippe THOMY, Scott Henderson, Spencer Clark, Stephan Hoyer and Tom Nicholas

What's Changed

New Contributors

Full Changelog: https://github.com/pydata/xarray/compare/v2024.05.0...v2024.06.0

Climate Change - Climate Data Standards - Python
Published by keewis 11 months ago

xarray - v2024.05.0

This release brings support for pandas ExtensionArray objects, optimizations when reading Zarr, the ability to concatenate datasets without pandas indexes,
more compatibility fixes for the upcoming numpy 2.0, and the migration of most of the xarray-datatree project code into xarray main!

Thanks to the 18 contributors to this release:
Aimilios Tsouvelekakis, Andrey Akinshin, Deepak Cherian, Eni Awowale, Ilan Gold, Illviljan, Justus Magin, Mark Harfouche, Matt Savoie, Maximilian Roos, Noah C. Benson, Pascal Bourgault, Ray Bell, Spencer Clark, Tom Nicholas, ignamv, owenlittlejohns, and saschahofmann.

What's Changed

New Contributors

Full Changelog: https://github.com/pydata/xarray/compare/v2024.03.0...v2024.05.0

Climate Change - Climate Data Standards - Python
Published by TomNicholas 12 months ago

xarray - v2024.03.0

What's Changed

New Contributors

Full Changelog: https://github.com/pydata/xarray/compare/v2024.02.0...v2024.03.0

Climate Change - Climate Data Standards - Python
Published by dcherian about 1 year ago

xarray - v2024.02.0

This release brings size information to the text repr, changes to the accepted frequency strings, and various bug fixes.

Thanks to our 12 contributors:

Anderson Banihirwe, Deepak Cherian, Eivind Jahren, Etienne Schalk, Justus Magin, Marco Wolsza, Mathias Hauser, Matt Savoie, Maximilian Roos, Rambaud Pierrick, Tom Nicholas

Climate Change - Climate Data Standards - Python
Published by keewis about 1 year ago

xarray - v2024.01.1

This release is to fix a bug with the rendering of the documentation, but it also includes changes to the handling of pandas frequency strings.

What's Changed

New Contributors

Full Changelog: https://github.com/pydata/xarray/compare/v2024.01.0...v2024.01.1

Climate Change - Climate Data Standards - Python
Published by TomNicholas over 1 year ago

xarray - v2024.01.0

This release brings support for weights in correlation and covariance functions,
a new DataArray.cumulative aggregation, improvements to xr.map_blocks,
an update to our minimum dependencies, and various bugfixes.

Thanks to our 17 contributors to this release:

Abel Aoun, Deepak Cherian, Illviljan, Johan Mathe, Justus Magin, Kai Mühlbauer,
Llorenç Lledó, Mark Harfouche, Markel, Mathias Hauser, Maximilian Roos, Michael Niklas,
Niclas Rieger, Sébastien Celles, Tom Nicholas, Trinh Quoc Anh, and crusaderky.

Climate Change - Climate Data Standards - Python
Published by TomNicholas over 1 year ago

xarray - v2023.12.0

This release brings new hypothesis strategies for testing, significantly faster rolling aggregations as well as ffill and bfill with numbagg, a new Dataset.eval method, and improvements to reading and writing Zarr arrays (including a new "a-" mode).

Thanks to our 16 contributors:

Anderson Banihirwe, Ben Mares, Carl Andersson, Deepak Cherian, Doug Latornell, Gregorio L. Trevisan, Illviljan, Jens Hedegaard Nielsen, Justus Magin, Mathias Hauser, Max Jones, Maximilian Roos, Michael Niklas, Patrick Hoefler, Ryan Abernathey, Tom Nicholas

What's Changed

New Contributors

Full Changelog: https://github.com/pydata/xarray/compare/v2023.11.0...v2023.12.0

Climate Change - Climate Data Standards - Python
Published by dcherian over 1 year ago

xarray - v2023.11.0

[!NOTE]
This is our 10th year anniversary release! Thank you for your love and support.

This release brings the ability to use opt_einsum for :py:func:xarray.dot by default,
support for auto-detecting region when writing partial datasets to Zarr, and the use of h5py
drivers with h5netcdf.

Thanks to the 19 contributors to this release:
Aman Bagrecha, Anderson Banihirwe, Ben Mares, Deepak Cherian, Dimitri Papadopoulos Orfanos, Ezequiel Cimadevilla Alvarez,
Illviljan, Justus Magin, Katelyn FitzGerald, Kai Muehlbauer, Martin Durant, Maximilian Roos, Metamess, Sam Levang, Spencer Clark, Tom Nicholas, mgunyho, templiert

What's Changed

New Contributors

Full Changelog: https://github.com/pydata/xarray/compare/v2023.10.1...v2023.11.0

Climate Change - Climate Data Standards - Python
Published by dcherian over 1 year ago

xarray - v2023.10.1

This release updates our minimum numpy version in pyproject.toml to 1.22, consistent with our documentation.

Please see the v2023.10.0 release notes for our recent changes.

Climate Change - Climate Data Standards - Python
Published by max-sixty over 1 year ago

xarray - v2023.10.0

Highlights

This release brings performance enhancements to reading Zarr datasets, the ability to use numbagg <https://github.com/numbagg/numbagg>_ for reductions, an expansion in API for rolling_exp, fixes two regressions with datetime decoding, and many other bugfixes and improvements. Groupby reductions will also use numbagg if flox>=0.8.1 and numbagg are both installed.

Thanks to our 13 contributors:
Anderson Banihirwe, Bart Schilperoort, Deepak Cherian, Illviljan, Kai Mühlbauer, Mathias Hauser, Maximilian Roos, Michael Niklas, Pieter Eendebak, Simon Høxbro Hansen, Spencer Clark, Tom White, olimcc

What's Changed

New Contributors

Full Changelog: https://github.com/pydata/xarray/compare/v2023.09.0...v2023.10.0

Climate Change - Climate Data Standards - Python
Published by dcherian over 1 year ago

xarray - v2023.09.0

This release continues work on the new :py:class:xarray.Coordinates object, allows to provide preferred_chunks when
reading from netcdf files, enables :py:func:xarray.apply_ufunc to handle missing core dimensions and fixes several bugs.

Thanks to the 24 contributors to this release: Alexander Fischer, Amrest Chinkamol, Benoit Bovy, Darsh Ranjan, Deepak Cherian,
Gianfranco Costamagna, Gregorio L. Trevisan, Illviljan, Joe Hamman, JR, Justus Magin, Kai Mühlbauer, Kian-Meng Ang, Kyle Sunden,
Martin Raspaud, Mathias Hauser, Mattia Almansi, Maximilian Roos, András Gunyhó, Michael Niklas, Richard Kleijn, Riulinchen,
Tom Nicholas and Wiktor Kraśnicki.

What's Changed

New Contributors

Full Changelog: https://github.com/pydata/xarray/compare/v2023.08.0...v2023.09.0

Climate Change - Climate Data Standards - Python
Published by kmuehlbauer over 1 year ago

xarray - v2023.08.0

This release brings changes to minimum dependencies, allows reading of datasets where a dimension name is
associated with a multidimensional variable (e.g. finite volume ocean model output), and introduces
a new :py:class:xarray.Coordinates object.

Thanks to the 16 contributors to this release: Anderson Banihirwe, Articoking, Benoit Bovy, Deepak Cherian, Harshitha, Ian Carroll,
Joe Hamman, Justus Magin, Peter Hill, Rachel Wegener, Riley Kuttruff, Thomas Nicholas, Tom Nicholas, ilgast, quantsnus, vallirep

Announcements

The xarray.Variable class is being refactored out to a new project title 'namedarray'.
See the design doc for more
details. Reach out to us on this discussion topic if you have any thoughts.

What's Changed

New Contributors

Full Changelog: https://github.com/pydata/xarray/compare/v2023.07.0...v2023.08.0

Climate Change - Climate Data Standards - Python
Published by dcherian over 1 year ago

xarray - v2023.07.0

This release brings improvements to the documentation on wrapping numpy-like arrays, improved docstrings, and bug fixes.

Thanks to our 7 contributors:

Harshitha, Illviljan, Johan Mathe, Justus Magin, Kai Mühlbauer, Tom Nicholas, and Yvonne Fröhlich.

What's Changed

New Contributors

Full Changelog: https://github.com/pydata/xarray/compare/v2023.06.0...v2023.07.0

Climate Change - Climate Data Standards - Python
Published by TomNicholas almost 2 years ago

xarray - v2023.06.0

This release adds features to curvefit, improves the performance of concatenation, and fixes various bugs.

Thank to our 13 contributors to this release:
Anderson Banihirwe, Deepak Cherian, Illviljan, Juniper Tyree, Justus Magin, Martin Fleischmann,
Mattia Almansi, mgunyho, Negin Sobhani, Rutger van Haasteren, Tom Nicholas, Tom White.

What's Changed

New Contributors

Full Changelog: https://github.com/pydata/xarray/compare/v2023.05.0...v2023.06.0

Climate Change - Climate Data Standards - Python
Published by TomNicholas almost 2 years ago

xarray - v2023.05.0

This release adds some new methods and operators, updates our deprecation policy for python versions, fixes some bugs with groupby,
and introduces experimental support for alternative chunked parallel array computation backends via a new plugin system!

Note: If you are using a locally-installed development version of xarray then pulling the changes from this release may require you to re-install.
This avoids an error where xarray cannot detect dask via the new entrypoints system introduced in pull rquest #7019. See issue #7856 for details.

Thanks to our 14 contributors:
Alan Brammer, crusaderky, David Stansby, dcherian, Deeksha, Deepak Cherian, Illviljan, James McCreight,
Joe Hamman, Justus Magin, Kyle Sunden, Max Hollmann, mgunyho, and Tom Nicholas!

Climate Change - Climate Data Standards - Python
Published by TomNicholas almost 2 years ago

xarray - v2023.04.2

This is a bugfix release to fix another bug with binning (#7766)

What's Changed

Full Changelog: https://github.com/pydata/xarray/compare/v2023.04.1...v2023.04.2

Climate Change - Climate Data Standards - Python
Published by dcherian about 2 years ago

xarray - v2023.04.1

This is a patch release to fix a bug with groupby_bins

What's Changed

Full Changelog: https://github.com/pydata/xarray/compare/v2023.04.0...v2023.04.1

Climate Change - Climate Data Standards - Python
Published by dcherian about 2 years ago

xarray - v2023.04.0

What's Changed

This release includes support for pandas v2, allows refreshing of backend engines in a session, and removes deprecated backends
for rasterio and cfgrib.

Thanks to our 19 contributors:
Chinemere, Tom Coleman, Deepak Cherian, Harshitha, Illviljan, Jessica Scheick, Joe Hamman, Justus Magin, Kai Mühlbauer, Kwonil-Kim, Mary Gathoni, Michael Niklas, Pierre, Scott Henderson, Shreyal Gupta, Spencer Clark, mccloskey, nishtha981, veenstrajelmer

New Contributors

Full Changelog: https://github.com/pydata/xarray/compare/v2023.03.0...v2023.04.0

Climate Change - Climate Data Standards - Python
Published by dcherian about 2 years ago

xarray - v2023.03.0

This release brings many bug fixes, and some new features. The maximum pandas version is pinned to <2 until we can support the new pandas datetime types.
Thanks to our 19 contributors:
Abel Aoun, Alex Goodman, Deepak Cherian, Illviljan, Jody Klymak, Joe Hamman, Justus Magin, Mary Gathoni, Mathias Hauser, Mattia Almansi, Mick, Oriol Abril-Pla, Patrick Hoefler, Paul Ockenfuß, Pierre, Shreyal Gupta, Spencer Clark, Tom Nicholas, Tom Vo

New Contributors

Full Changelog: https://github.com/pydata/xarray/compare/v2023.02.0...v2023.03.0

Climate Change - Climate Data Standards - Python
Published by dcherian about 2 years ago

xarray - v2023.02.0

This release brings a major upgrade to xarray.concat, many bug fixes, and a bump in supported dependency versions. Thanks to our 11 contributors: Aron Gergely, Deepak Cherian, Illviljan, James Bourbeau, Joe Hamman, Justus Magin, Hauke Schulz, Kai Mühlbauer, Ken Mankoff, Spencer Clark, Tom Nicholas.

Support for python 3.8 has been dropped.

Climate Change - Climate Data Standards - Python
Published by dcherian about 2 years ago

xarray - v2023.01.0

See https://docs.xarray.dev/en/stable/whats-new.html

Climate Change - Climate Data Standards - Python
Published by dcherian over 2 years ago

xarray - v2022.12.0

This release includes a number of bug fixes and experimental support for Zarr V3.
Thanks to the 16 contributors to this release:
Deepak Cherian, Francesco Zanetta, Gregory Lee, Illviljan, Joe Hamman, Justus Magin, Luke Conibear, Mark Harfouche, Mathias Hauser,
Mick, Mike Taves, Sam Levang, Spencer Clark, Tom Nicholas, Wei Ji, templiert

New Features

  • Enable using offset and origin arguments in :py:meth:DataArray.resample
    and :py:meth:Dataset.resample (:issue:7266, :pull:7284). By Spencer Clark <https://github.com/spencerkclark>_.
  • Add experimental support for Zarr's in-progress V3 specification. (:pull:6475).
    By Gregory Lee <https://github.com/grlee77>_ and Joe Hamman <https://github.com/jhamman>_.

Breaking changes

  • The minimum versions of some dependencies were changed (:pull:7300):

    ========================== ========= ========
    Package Old New
    ========================== ========= ========
    boto 1.18 1.20
    cartopy 0.19 0.20
    distributed 2021.09 2021.11
    dask 2021.09 2021.11
    h5py 3.1 3.6
    hdf5 1.10 1.12
    matplotlib-base 3.4 3.5
    nc-time-axis 1.3 1.4
    netcdf4 1.5.3 1.5.7
    packaging 20.3 21.3
    pint 0.17 0.18
    pseudonetcdf 3.1 3.2
    typing_extensions 3.10 4.0
    ========================== ========= ========

Deprecations

  • The PyNIO backend has been deprecated (:issue:4491, :pull:7301).
    By Joe Hamman <https://github.com/jhamman>_.

Bug fixes

  • Fix handling of coordinate attributes in :py:func:where. (:issue:7220, :pull:7229)
    By Sam Levang <https://github.com/slevang>_.
  • Import nc_time_axis when needed (:issue:7275, :pull:7276).
    By Michael Niklas <https://github.com/headtr1ck>_.
  • Fix static typing of :py:meth:xr.polyval (:issue:7312, :pull:7315).
    By Michael Niklas <https://github.com/headtr1ck>_.
  • Fix multiple reads on fsspec S3 files by resetting file pointer to 0 when reading file streams (:issue:6813, :pull:7304).
    By David Hoese <https://github.com/djhoese>_ and Wei Ji Leong <https://github.com/weiji14>_.
  • Fix :py:meth:Dataset.assign_coords resetting all dimension coordinates to default (pandas) index (:issue:7346, :pull:7347).
    By Benoît Bovy <https://github.com/benbovy>_.

Documentation

  • Add example of reading and writing individual groups to a single netCDF file to I/O docs page. (:pull:7338)
    By Tom Nicholas <https://github.com/TomNicholas>_.

Climate Change - Climate Data Standards - Python
Published by dcherian over 2 years ago

xarray - v2022.11.0

This release brings a number of bugfixes and documentation improvements. Both text and HTML
reprs now have a new "Indexes" section, which we expect will help with development of new
Index objects. This release also features more support for the Python Array API.

Many thanks to the 16 contributors to this release: Daniel Goman, Deepak Cherian, Illviljan, Jessica Scheick, Justus Magin, Mark Harfouche, Maximilian Roos, Mick, Patrick Naylor, Pierre, Spencer Clark, Stephan Hoyer, Tom Nicholas, Tom White

Climate Change - Climate Data Standards - Python
Published by dcherian over 2 years ago

xarray - v2022.10.0

This release brings numerous bugfixes, a change in minimum supported versions,
and a new scatter plot method for DataArrays.

Many thanks to 11 contributors to this release: Anderson Banihirwe, Benoit Bovy,
Dan Adriaansen, Illviljan, Justus Magin, Lukas Bindreiter, Mick, Patrick Naylor,
Spencer Clark, Thomas Nicholas

Climate Change - Climate Data Standards - Python
Published by dcherian over 2 years ago

xarray - v2022.09.0

This release brings a large number of bugfixes and documentation improvements, as well as an external interface for
setting custom indexes!

Many thanks to our 40 contributors:

Anderson Banihirwe, Andrew Ronald Friedman, Bane Sullivan, Benoit Bovy, ColemanTom, Deepak Cherian,
Dimitri Papadopoulos Orfanos, Emma Marshall, Fabian Hofmann, Francesco Nattino, ghislainp, Graham Inggs, Hauke Schulz,
Illviljan, James Bourbeau, Jody Klymak, Julia Signell, Justus Magin, Keewis, Ken Mankoff, Luke Conibear, Mathias Hauser,
Max Jones, mgunyho, Michael Delgado, Mick, Mike Taves, Oliver Lopez, Patrick Naylor, Paul Hockett, Pierre Manchon,
Ray Bell, Riley Brady, Sam Levang, Spencer Clark, Stefaan Lippens, Tom Nicholas, Tom White, Travis A. O'Brien,
and Zachary Moon.

Climate Change - Climate Data Standards - Python
Published by TomNicholas over 2 years ago

xarray - v2022.06.0

This release brings a number of bug fixes and improvements, most notably a major internal
refactor of the indexing functionality, the use of flox in groupby operations,
and experimental support for the new Python Array API standard.
It also stops testing support for the abandoned PyNIO.

Much effort has been made to preserve backwards compatibility as part of the indexing refactor.
We are aware of one unfixed issue.

Please also see the the pre-relase v2022.06.0pre0 for a full list of changes.

Many thanks to our 18 contributors:
Bane Sullivan, Deepak Cherian, Dimitri Papadopoulos Orfanos, Emma Marshall, Hauke Schulz, Illviljan,
Julia Signell, Justus Magin, Keewis, Mathias Hauser, Michael Delgado, Mick, Pierre Manchon, Ray Bell,
Spencer Clark, Stefaan Lippens, Tom White, Travis A. O'Brien

Climate Change - Climate Data Standards - Python
Published by dcherian almost 3 years ago

xarray - v2022.06.0rc0

This pre-release brings a number of bug fixes and improvements, most notably a major internal refactor of the indexing functionality and the use of flox_ in groupby operations. It also stops testing support for the abandoned PyNIO.

Many thanks to the 39 contributors:

Abel Soares Siqueira, Alex Santana, Anderson Banihirwe, Benoit Bovy, Blair Bonnett, Brewster Malevich, brynjarmorka, Charles Stern, Christian Jauvin, Deepak Cherian, Emma Marshall, Fabien Maussion, Greg Behm, Guelate Seyo, Illviljan, Joe Hamman, Joseph K Aicher, Justus Magin, Kevin Paul, Louis Stenger, Mathias Hauser, Mattia Almansi, Maximilian Roos, Michael Bauer, Michael Delgado, Mick, ngam, Oleh Khoma, Oriol Abril-Pla, Philippe Blain, PLSeuJ, Sam Levang, Spencer Clark, Stan West, Thomas Nicholas, Thomas Vogt, Tom White, Xianxiang Li

Climate Change - Climate Data Standards - Python
Published by keewis almost 3 years ago

xarray - v2022.03.0

This release brings a number of small improvements, as well as a move to calendar versioning.

Many thanks to the 16 contributors to the v2022.02.0 release!

Aaron Spring, Alan D. Snow, Anderson Banihirwe, crusaderky, Illviljan, Joe Hamman, Jonas Gliß, Lukas Pilz, Martin Bergemann, Mathias Hauser, Maximilian Roos, Romain Caneill, Stan West, Stijn Van Hoey, Tobias Kölling, and Tom Nicholas.

Climate Change - Climate Data Standards - Python
Published by TomNicholas about 3 years ago

xarray - v0.21.1

This is a bugfix release to specify packaging as a dependency.

Climate Change - Climate Data Standards - Python
Published by max-sixty about 3 years ago

xarray - v0.21.0

Many thanks to the 20 contributors to the v0.21.0 release!

Abel Aoun, Anderson Banihirwe, Ant Gib, Chris Roat, Cindy Chiao,
Deepak Cherian, Dominik Stańczak, Fabian Hofmann, Illviljan, Jody Klymak, Joseph
K Aicher, Mark Harfouche, Mathias Hauser, Matthew Roeschke, Maximilian Roos,
Michael Delgado, Pascal Bourgault, Pierre, Ray Bell, Romain Caneill, Tim Heap,
Tom Nicholas, Zeb Nicholls, joseph nowak, keewis.

Climate Change - Climate Data Standards - Python
Published by max-sixty about 3 years ago

xarray - v0.20.2

This is a bugfix release to resolve xr.corr & xr.map_blocks when dask is not installed.
It also includes performance improvements in unstacking to a sparse array and a
number of documentation improvements.

Many thanks to the 20 contributors:

Aaron Spring, Alexandre Poux, Deepak Cherian, Enrico Minack, Fabien Maussion,
Giacomo Caria, Gijom, Guillaume Maze, Illviljan, Joe Hamman, Joseph Hardin, Kai
Mühlbauer, Matt Henderson, Maximilian Roos, Michael Delgado, Robert Gieseke,
Sebastian Weigand and Stephan Hoyer.

Climate Change - Climate Data Standards - Python
Published by max-sixty over 3 years ago

xarray - v0.20.1

This is a bugfix release for a major bug in v0.20.0

Climate Change - Climate Data Standards - Python
Published by dcherian over 3 years ago

xarray - v0.20.0

This release brings improved support for pint arrays, methods for weighted standard deviation, variance, and sum of squares, the option to disable the use of the bottleneck library, significantly improved performance of unstack, as well as many bugfixes and internal changes.

Climate Change - Climate Data Standards - Python
Published by TomNicholas over 3 years ago

xarray - v0.19.0

This release brings improvements to plotting of categorical data, the ability to specify how attributes are combined in xarray operations, a new high-level unify_chunks function, as well as various deprecations, bug fixes, and minor improvements.

Climate Change - Climate Data Standards - Python
Published by TomNicholas almost 4 years ago

xarray - v0.18.2

This release reverts a regression in xarray's unstacking of dask-backed arrays.

Climate Change - Climate Data Standards - Python
Published by max-sixty almost 4 years ago

xarray - v0.18.1

This release is intended as a small patch release to be compatible with the new 2021.5.0 dask.distributed release. It also includes a new drop_duplicates method, some documentation improvements, the beginnings of our internal Index refactoring, and some bug fixes.

Climate Change - Climate Data Standards - Python
Published by max-sixty almost 4 years ago

xarray - v0.18.0

This release brings a few important performance improvements, a wide range of usability upgrades, lots of bug fixes, and some new features. These include a plugin API to add backend engines, a new theme for the documentation, curve fitting methods, and several new plotting functions.

Climate Change - Climate Data Standards - Python
Published by TomNicholas almost 4 years ago

xarray - v0.17.0

This release brings a few important performance improvements, a wide range of usability upgrades, lots of bug fixes, and some new features. These include better cftime support, a new quiver plot, better unstack performance, more efficient memory use in rolling operations, and some python packaging improvements. We also have a few documentation improvements (and more planned!).

Climate Change - Climate Data Standards - Python
Published by max-sixty about 4 years ago

xarray - v0.16.2

This release brings the ability to write to limited regions of zarr files, open zarr files with open_dataset and open_mfdataset, increased support for propagating attrs using the keep_attrs flag, as well as numerous bugfixes and documentation improvements.

Climate Change - Climate Data Standards - Python
Published by dcherian over 4 years ago

xarray - v0.16.1

This patch release fixes an incompatibility with a recent pandas change, which was causing an issue indexing with a datetime64. It also includes improvements to rolling, to_dataframe, cov & corr methods and bug fixes. Our documentation has a number of improvements, including fixing all doctests and confirming their accuracy on every commit.

Climate Change - Climate Data Standards - Python
Published by max-sixty over 4 years ago

xarray - v0.16.0

This release adds xarray.cov & xarray.corr for covariance & correlation respectively; the idxmax & idxmin methods, the polyfit method & xarray.polyval for fitting polynomials, as well as a number of documentation improvements, other features, and bug fixes. Many thanks to all 44 contributors who contributed to this release.

Climate Change - Climate Data Standards - Python
Published by max-sixty almost 5 years ago

xarray - v0.15.1

This release brings many new features such as weighted methods for weighted array reductions, a new jupyter repr by default, and the start of units integration with pint. There's also the usual batch of usability improvements, documentation additions, and bug fixes.

Climate Change - Climate Data Standards - Python
Published by max-sixty about 5 years ago

xarray -

Climate Change - Climate Data Standards - Python
Published by dcherian about 5 years ago

xarray -

Climate Change - Climate Data Standards - Python
Published by max-sixty over 5 years ago

xarray - v0.14.0

Climate Change - Climate Data Standards - Python
Published by jhamman over 5 years ago

xarray -

Climate Change - Climate Data Standards - Python
Published by dcherian over 5 years ago

xarray -

Climate Change - Climate Data Standards - Python
Published by max-sixty over 5 years ago

xarray -

Climate Change - Climate Data Standards - Python
Published by shoyer almost 6 years ago

xarray -

Climate Change - Climate Data Standards - Python
Published by shoyer almost 6 years ago

xarray -

Climate Change - Climate Data Standards - Python
Published by shoyer almost 6 years ago

xarray -

Climate Change - Climate Data Standards - Python
Published by max-sixty almost 6 years ago

xarray -

Climate Change - Climate Data Standards - Python
Published by shoyer over 6 years ago

xarray -

Climate Change - Climate Data Standards - Python
Published by shoyer over 6 years ago

xarray -

Climate Change - Climate Data Standards - Python
Published by shoyer over 6 years ago

xarray -

Climate Change - Climate Data Standards - Python
Published by shoyer over 6 years ago

xarray -

Climate Change - Climate Data Standards - Python
Published by shoyer almost 7 years ago

xarray -

Climate Change - Climate Data Standards - Python
Published by shoyer almost 7 years ago

xarray -

Climate Change - Climate Data Standards - Python
Published by shoyer almost 7 years ago

xarray - v0.10.5

Climate Change - Climate Data Standards - Python
Published by shoyer almost 7 years ago

xarray - v0.10.4

Climate Change - Climate Data Standards - Python
Published by shoyer almost 7 years ago

xarray - v0.10.3

The minor release includes a number of bug-fixes and backwards compatible enhancements.

For full details, see the release notes: http://xarray.pydata.org/en/latest/whats-new.html

Climate Change - Climate Data Standards - Python
Published by shoyer about 7 years ago

xarray - v0.10.2

The minor release includes a number of bug-fixes and enhancements, along with
one possibly backwards incompatible change (when applying NumPy ufunc methods to xarray objects).

For full details, see the release notes.

Climate Change - Climate Data Standards - Python
Published by shoyer about 7 years ago

xarray - v0.10.1

The minor release includes a number of bug-fixes and backwards compatible enhancements. For full details, see the release notes.

Climate Change - Climate Data Standards - Python
Published by shoyer about 7 years ago

xarray - v0.10.0

This is a major release that includes bug fixes, new features and a few
backwards incompatible changes. Highlights include:

  • Indexing now supports broadcasting over dimensions, similar to NumPy's vectorized indexing (but better!).
  • resample has a new groupby-like API like pandas.
  • xarray.apply_ufunc facilitates wrapping and parallelizing functions written for NumPy arrays.
  • Performance improvements, particularly for dask and open_mfdataset.

For more details, see the release notes: http://xarray.pydata.org/en/latest/whats-new.html

Climate Change - Climate Data Standards - Python
Published by shoyer over 7 years ago

xarray - v0.10.0rc2

Climate Change - Climate Data Standards - Python
Published by shoyer over 7 years ago

xarray - v0.10.0rc1

Climate Change - Climate Data Standards - Python
Published by shoyer over 7 years ago

xarray - v0.9.6

This release includes a number of backwards compatible enhancements and bug fixes.

Enhancements

  • New sortby() method to Dataset and DataArray that enable sorting along dimensions (GH967). See the docs for examples. By Chun-Wei Yuan and Kyle Heuton.
  • Add .dt accessor to DataArrays for computing datetime-like properties for the values they contain, similar to pandas.Series (GH358). By Daniel Rothenberg.
  • Renamed internal dask arrays created by open_dataset to match new dask conventions (GH1343). By Ryan Abernathey.
  • as_variable() is now part of the public API (GH1303). By Benoit Bovy.
  • align() now supports join='exact', which raises an error instead of aligning when indexes to be aligned are not equal. By Stephan Hoyer.
  • New function open_rasterio() for opening raster files with the rasterio library. See the docs for details. By Joe Hamman, Nic Wayand and Fabien Maussion

Bug fixes

  • Fix error from repeated indexing of datasets loaded from disk (GH1374). By Stephan Hoyer.
  • Fix a bug where .isel_points wrongly assigns unselected coordinate to data_vars. By Keisuke Fujii.
  • Tutorial datasets are now checked against a reference MD5 sum to confirm successful download (GH1392). By Matthew Gidden.
  • DataArray.chunk() now accepts dask specific kwargs like Dataset.chunk() does. By Fabien Maussion.
  • Support for engine='pydap' with recent releases of Pydap (3.2.2+), including on Python 3 (GH1174).

Documentation

  • A new gallery allows to add interactive examples to the documentation. By Fabien Maussion.

Testing

  • Fix test suite failure caused by changes to pandas.cut function (GH1386). By Ryan Abernathey.
  • Enhanced tests suite by use of @network decorator, which is controlled via --run-network-tests command line argument to py.test (GH1393). By Matthew Gidden.

Climate Change - Climate Data Standards - Python
Published by shoyer almost 8 years ago

xarray - v0.9.5

Remove an inadvertently introduced print statement.

Climate Change - Climate Data Standards - Python
Published by shoyer about 8 years ago

xarray - v0.9.3

Enhancements

  • Add .persist() method to Datasets and DataArrays to enable persisting data in distributed memory (GH1344). By Matthew Rocklin.
  • New expand_dims() method for DataArray and Dataset (GH1326). By Keisuke Fujii.

Bug fixes

  • Fix .where() with drop=True when arguments do not have indexes (GH1350). This bug, introduced in v0.9, resulted in xarray producing incorrect results in some cases. By Stephan Hoyer.
  • Fixed writing to file-like objects with to_netcdf() (GH1320). Stephan Hoyer.
  • Fixed explicitly setting engine='scipy' with to_netcdf when not providing a path (GH1321). Stephan Hoyer.
  • Fixed open_dataarray does not pass properly its parameters to open_dataset (GH1359). Stephan Hoyer.
  • Ensure test suite works when runs from an installed version of xarray (GH1336). Use @pytest.mark.slow instead of a custom flag to mark slow tests. By Stephan Hoyer

Climate Change - Climate Data Standards - Python
Published by shoyer about 8 years ago

xarray - v0.9.2

The minor release includes bug-fixes and backwards compatible enhancements.

Enhancements

  • .rolling() on Dataset is now supported (GH859). By Keisuke Fujii.
  • When bottleneck version 1.1 or later is installed, use bottleneck for rolling var, argmin, argmax, and rank computations. Also, rolling median now accepts a min_periods argument (GH1276). By Joe Hamman.
  • When .plot() is called on a 2D DataArray and only one dimension is specified with x= or y=, the other dimension is now guessed (GH1291). By Vincent Noel.
  • Added new method assign_attrs() to DataArray and Dataset, a chained-method compatible implementation of the dict.update method on attrs (GH1281). By Henry S. Harrison.
  • Added new autoclose=True argument to open_mfdataset() to explicitly close opened files when not in use to prevent occurrence of an OS Error related to too many open files (GH1198). Note, the default is autoclose=False, which is consistent with previous xarray behavior. By Phillip J. Wolfram.
  • The repr() of Dataset and DataArray attributes uses a similar format to coordinates and variables, with vertically aligned entries truncated to fit on a single line (GH1319). Hopefully this will stop people writing data.attrs = {} and discarding metadata in notebooks for the sake of cleaner output. The full metadata is still available as data.attrs. By Zac Hatfield-Dodds.
  • Enhanced tests suite by use of @slow and @flaky decorators, which are controlled via --run-flaky and --skip-slow command line arguments to py.test (GH1336). By Stephan Hoyer and Phillip J. Wolfram.

Bug fixes

  • Rolling operations now keep preserve original dimension order (GH1125). By Keisuke Fujii.
  • Fixed sel with method='nearest' on Python 2.7 and 64-bit Windows (GH1140). Stephan Hoyer.
  • Fixed where with drop='True' for empty masks (GH1341). By Stephan Hoyer and Phillip J. Wolfram.

Climate Change - Climate Data Standards - Python
Published by shoyer about 8 years ago

xarray - v0.9.1

Renamed the "Unindexed dimensions" section in the Dataset and DataArray repr (added in v0.9.0) to "Dimensions without coordinates".

Climate Change - Climate Data Standards - Python
Published by shoyer about 8 years ago

xarray - v0.9.0

This major release includes five months worth of enhancements and bug fixes from 24 contributors, including some significant changes that are not fully backwards compatible. Highlights include:

  • Coordinates are now optional in the xarray data model, even for dimensions.
  • Changes to caching, lazy loading and pickling to improve xarray’s experience for parallel computing.
  • Improvements for accessing and manipulating pandas.MultiIndex levels.
  • Many new methods and functions, including quantile(), cumsum(), cumprod() combine_first set_index(), reset_index(), reorder_levels(), full_like(), zeros_like(), ones_like() open_dataarray(), compute(), Dataset.info(), testing.assert_equal(), testing.assert_identical(), and testing.assert_allclose().

For more details, see what's new.

Climate Change - Climate Data Standards - Python
Published by shoyer about 8 years ago

xarray -

Climate Change - Climate Data Standards - Python
Published by shoyer about 8 years ago

xarray - v0.8.2

This release includes a number of bug fixes and minor enhancements.

Breaking changes

  • broadcast() and concat() now auto-align inputs, using join=outer. Previously, these functions raised ValueError for non-aligned inputs. By Guido Imperiale.

Enhancements

  • New documentation on Transitioning from pandas.Panel to xarray. By Maximilian Roos.
  • New Dataset and DataArray methods to_dict() and from_dict() to allow easy conversion between dictionaries and xarray objects (#432). See dictionary IO for more details. By Julia Signell.
  • Added exclude and indexes optional parameters to align(), and exclude optional parameter to broadcast(). - By Guido Imperiale.
  • Better error message when assigning variables without dimensions (#971). By Stephan Hoyer.
  • Better error message when reindex/align fails due to duplicate index values (#956). By Stephan Hoyer.

Bug fixes

  • Ensure xarray works with h5netcdf v0.3.0 for arrays with dtype=str (#953). By Stephan Hoyer.
  • Dataset.dir() (i.e. the method python calls to get autocomplete options) failed if one of the dataset’s keys was not a string (#852). By Maximilian Roos.
  • Dataset constructor can now take arbitrary objects as values (#647). By Maximilian Roos.
    Clarified copy argument for reindex() and align(), which now consistently always return new xarray objects (#927).
  • Fix open_mfdataset with engine='pynio' (#936). By Stephan Hoyer.
    groupby_bins sorted bin labels as strings (#952). By Stephan Hoyer.
  • Fix bug introduced by v0.8.0 that broke assignment to datasets when both the left and right side have the same non-unique index values (#956).

Climate Change - Climate Data Standards - Python
Published by shoyer over 8 years ago

xarray - v0.8.1

Bug fixes

  • Fix bug in v0.8.0 that broke assignment to Datasets with non-unique
    indexes (#943). By Stephan Hoyer.

Climate Change - Climate Data Standards - Python
Published by shoyer over 8 years ago

xarray - v0.8.0

v0.8.0 (2 August 2016)

This release includes new features and bug fixes, including several breaking changes.

Breaking changes

  • Dropped support for Python 2.6 (#855).
  • Indexing on multi-index now drop levels, which is consistent with pandas. It also changes the name of the dimension / coordinate when the multi-index is reduced to a single index (#802).
  • Contour plots no longer add a colorbar per default (#866). Filled contour plots are unchanged.
  • DataArray.values and .data now always returns an NumPy array-like object, even for 0-dimensional arrays with object dtype (#867). Previously, .values returned native Python objects in such cases. To convert the values of scalar arrays to Python objects, use the .item() method.

Enhancements

  • Groupby operations now support grouping over multidimensional variables. A new method called xarray.Dataset.groupby_bins has also been added to allow users to specify bins for grouping. The new features are described in groupby.multidim and examples.multidim. By Ryan Abernathey.
  • DataArray and Dataset method where now supports a drop=True option that clips coordinate elements that are fully masked. By Phillip J. Wolfram.
  • New top level merge function allows for combining variables from any number of Dataset and/or DataArray variables. See merge for more details. By Stephan Hoyer.
  • DataArray and Dataset method resample now supports the keep_attrs=False option that determines whether variable and dataset attributes are retained in the resampled object. By Jeremy McGibbon.
  • Better multi-index support in DataArray and Dataset sel and loc methods, which now behave more closely to pandas and which also accept dictionaries for indexing based on given level names and labels (see multi-level indexing). By Benoit Bovy.
  • New (experimental) decorators xarray.register_dataset_accessor and xarray.register_dataarray_accessor for registering custom xarray extensions without subclassing. They are described in the new documentation page on internals. By Stephan Hoyer.
  • Round trip boolean datatypes. Previously, writing boolean datatypes to netCDF formats would raise an error since netCDF does not have a bool datatype. This feature reads/writes a dtype attribute to boolean variables in netCDF files. By Joe Hamman.
  • 2D plotting methods now have two new keywords (cbar_ax and cbar_kwargs), allowing more control on the colorbar (#872). By Fabien Maussion.
  • New Dataset method filter_by_attrs, akin to netCDF4.Dataset.get_variables_by_attributes, to easily filter data variables using its attributes. Filipe Fernandes.

Bug fixes

  • Attributes were being retained by default for some resampling operations when they should not. With the keep_attrs=False option, they will no longer be retained by default. This may be backwards-incompatible with some scripts, but the attributes may be kept by adding the keep_attrs=True option. By Jeremy McGibbon.
  • Concatenating xarray objects along an axis with a MultiIndex or PeriodIndex preserves the nature of the index (#875). By Stephan Hoyer.
  • Fixed bug in arithmetic operations on DataArray objects whose dimensions are numpy structured arrays or recarrays #861, #837. By Maciek Swat.
  • decode_cf_timedelta now accepts arrays with ndim >1 (#842). This fixes issue #665. Filipe Fernandes.
  • Fix a bug where xarray.ufuncs that take two arguments would incorrectly use to numpy functions instead of dask.array functions (#876). By Stephan Hoyer.
  • Support for pickling functions from xarray.ufuncs (#901). By Stephan Hoyer.
  • Variable.copy(deep=True) no longer converts MultiIndex into a base Index (#769). By Benoit Bovy.
  • Fixes for groupby on dimensions with a multi-index (#867). By Stephan Hoyer.
  • Fix printing datasets with unicode attributes on Python 2 (#892). By Stephan Hoyer.
  • Fixed incorrect test for dask version (#891). By Stephan Hoyer.
  • Fixed dim argument for isel_points/sel_points when a pandas.Index is passed. By Stephan Hoyer.
  • xarray.plot.contour now plots the correct number of contours (#866). By Fabien Maussion.

Climate Change - Climate Data Standards - Python
Published by jhamman over 8 years ago

xarray - v0.8.0rc1

Climate Change - Climate Data Standards - Python
Published by jhamman over 8 years ago

xarray - v0.7.2

Climate Change - Climate Data Standards - Python
Published by jhamman over 8 years ago

xarray - v0.7.1

Climate Change - Climate Data Standards - Python
Published by jhamman over 8 years ago

xarray - v0.7.0

Climate Change - Climate Data Standards - Python
Published by jhamman over 8 years ago

xarray - v0.6.1

This release contains a number of bug and compatibility fixes, as well as enhancements to plotting, indexing and writing files to disk.

Note that the minimum required version of dask for use with xray is now version 0.6.

  • Faceted plotting through FacetGrid and the plot() method. See Faceting for more details and examples.
  • sel() and reindex() now support the tolerance argument for controlling nearest-neighbor selection (GH629). This feature requires pandas v0.17 or newer.
  • New encoding argument in to_netcdf() for writing netCDF files with compression, as described in the new documentation section on Writing encoded data.
  • Add real and imag attributes to Dataset and DataArray (GH553).
  • More informative error message with from_dataframe() if the frame has duplicate columns.
  • xray now uses deterministic names for dask arrays it creates or opens from disk. This allows xray users to take advantage of dask’s nascent support for caching intermediate computation results. See GH555 for an example.
  • Compatibility with Python 3.5 (GH583).
  • Compatibility with pandas 0.17 (GH569).
  • Compatability with numpy 1.10 (GH618).

See the What's New page for more information. Please report any issues here.

You an install the latest version of xray via conda:

conda install xray

or via pip:

pip install xray

Climate Change - Climate Data Standards - Python
Published by jhamman over 9 years ago

xarray - v0.5.1

This minor release fixes a few bugs and an inconsistency with pandas. It also adds the pipe method, copied from pandas.

For more details, see the release notes.

Climate Change - Climate Data Standards - Python
Published by shoyer almost 10 years ago

xarray - v0.5

Highlights of this release:

  • Support for parallel computation on arrays that don't fit in memory using dask.array (see http://continuum.io/blog/xray-dask for more details)
  • Support for multi-file datasets
  • assign and fillna methods, based on the pandas methods of the same name.
  • to_array and to_dataset methods for easier conversion between xray Dataset and DataArray objects.
  • Label based indexing with nearest neighbor lookups

For more details, see the release notes.

Climate Change - Climate Data Standards - Python
Published by shoyer almost 10 years ago

xarray - v0.4.1

The release contains bug fixes and several new features. All changes should be fully backwards compatible.

Highlights include:

  • Documentation sections on Time series data and Combining multiple files.
  • resample method for resampling to a new temporal resolution like pandas
  • first and last methods on groupby objects
  • swap_dims method for swapping dimensions
  • Fixed a critical bug with the scipy netCDF backend

For more details, see the release notes

Climate Change - Climate Data Standards - Python
Published by shoyer about 10 years ago

xarray - v0.4

This is a major release that includes a number of new features and bug fixes, including several changes from existing behavior.

Highlights include:

  • Automatic alignment of index labels in arithmetic and when combining arrays or datasets.
  • Aggregations like mean now skip missing values by default.
  • Relaxed equality rules in concat and merge for variables with equal value(s) but different shapes.
  • New drop method for dropping variables or index labels.
  • Support for reindexing with a fill method like pandas.

For more details, see the release notes.

Climate Change - Climate Data Standards - Python
Published by shoyer about 10 years ago

xarray - v0.4 release candidate

This is a release candidate for v0.4. This version of xray includes some major changes, so I wanted it to get some testing before its official release.

For a list of changes, please read the release notes from the development version of the documentation:
http://xray.readthedocs.org/en/latest/whats-new.html

To test it out, use:

pip install https://github.com/xray/xray/archive/v0.4rc1.zip

Climate Change - Climate Data Standards - Python
Published by shoyer about 10 years ago

xarray -

This release focused on bug-fixes, speedups and resolving some niggling inconsistencies.

There are a few cases where the behavior of xray differs from the previous version. However, I expect that in almost all cases your code will continue to run unmodified.

xray now requires pandas v0.15.0 or later. This was necessary for supporting TimedeltaIndex without too many painful hacks.

Backwards incompatible changes:

  • Arrays of datetime.datetime objects are now automatically cast to datetime64[ns] arrays when stored in an xray object, using machinery borrowed from pandas:

    In [1]: from datetime import datetime
    
    In [2]: xray.Dataset({'t': [datetime(2000, 1, 1)]})
    Out[2]: 
    <xray.Dataset>
    Dimensions:  (t: 1)
    Coordinates:
      * t        (t) datetime64[ns] 2000-01-01
    Variables:
        *empty*
    
  • xray now has support (including serialization to netCDF) for pandas.TimedeltaIndex. datetime.timedelta objects are thus accordingly cast to timedelta64[ns] objects when appropriate.

  • Masked arrays are now properly coerced to use NaN as a sentinel value.

Enhancements:

  • Due to popular demand, we have added experimental attribute style access as a shortcut for dataset variables, coordinates and attributes:

    In [3]: ds = xray.Dataset({'tmin': ([], 25, {'units': 'celcius'})})
    
    In [4]: ds.tmin.units
    Out[4]: 'celcius'
    

    Tab-completion for these variables should work in editors such as IPython. However, setting variables or attributes in this fashion is not yet supported because there are some unresolved ambiguities.

  • You can now use a dictionary for indexing with labeled dimensions. This provides a safe way to do assignment with labeled dimensions:

    In [5]: array = xray.DataArray(np.zeros(5), dims=['x'])
    
    In [6]: array[dict(x=slice(3))] = 1
    
    In [7]: array
    Out[7]: 
    <xray.DataArray (x: 5)>
    array([ 1.,  1.,  1.,  0.,  0.])
    Coordinates:
      * x        (x) int64 0 1 2 3 4
    
  • Non-index coordinates can now be faithfully written to and restored from netCDF files. This is done according to CF conventions when possible by using the coordinates attribute on a data variable. When not possible, xray defines a global coordinates attribute.

  • Preliminary support for converting xray.DataArray objects to and from CDAT cdms2 variables.

  • We sped up any operation that involves creating a new Dataset or DataArray (e.g., indexing, aggregation, arithmetic) by a factor of 30 to 50%. The full speed up requires cyordereddict to be installed.

Bug fixes:

  • Fix for to_dataframe() with 0d string/object coordinates
  • Fix for to_netcdf with 0d string variable
  • Fix writing datetime64 arrays to netcdf if NaT is present
  • Fix align silently upcasts data arrays when NaNs are inserted

Climate Change - Climate Data Standards - Python
Published by shoyer about 10 years ago

xarray -

This is mostly a bug-fix release to make xray compatible with the latest release of pandas (v0.15).

We added several features to better support working with missing values and exporting xray objects to pandas. We also reorganized the internal API for serializing and deserializing datasets, but this change should be almost entirely transparent to users.

Other than breaking the experimental DataStore API, there should be no backwards incompatible changes.

New features:

  • Added count and dropna methods, copied from pandas, for working with missing values.
  • Added DataArray.to_pandas for
    converting a data array into the pandas object with the same dimensionality
    (1D to Series, 2D to DataFrame, etc.).
  • Support for reading gzipped netCDF3 files.
  • Reduced memory usage when writing netCDF files.
  • 'missing_value' is now supported as an alias for the '_FillValue' attribute
    on netCDF variables.
  • Trivial indexes, equivalent to range(n) where n is the length of the
    dimension, are no longer written to disk.

Bug fixes:

  • Compatibility fixes for pandas v0.15.
  • Fixes for display and indexing of NaT (not-a-time).
  • Fix slicing by label was an argument is a data array.
  • Test data is now shipped with the source distribution.
  • Ensure order does not matter when doing arithmetic with scalar data arrays.
  • Order of dimensions preserved with DataArray.to_dataframe.

Climate Change - Climate Data Standards - Python
Published by shoyer over 10 years ago

xarray -

New features:

  • Revamped coordinates: "coordinates" now refer to all arrays that are not
    used to index a dimension. Coordinates are intended to allow for keeping track
    of arrays of metadata that describe the grid on which the points in "variable"
    arrays lie. They are preserved (when unambiguous) even though mathematical
    operations.
  • Dataset math xray.Dataset objects now support all arithmetic
    operations directly. Dataset-array operations map across all dataset
    variables; dataset-dataset operations act on each pair of variables with the
    same name.
  • GroupBy math: This provides a convenient shortcut for normalizing by the
    average value of a group.
  • The dataset __repr__ method has been entirely overhauled; dataset
    objects now show their values when printed.
  • You can now index a dataset with a list of variables to return a new dataset:
    ds[['foo', 'bar']].

Backwards incompatible changes:

  • Dataset.__eq__ and Dataset.__ne__ are now element-wise operations
    instead of comparing all values to obtain a single boolean. Use the method
    Dataset.equals instead.

Deprecations:

  • Dataset.noncoords is deprecated: use Dataset.vars instead.
  • Dataset.select_vars deprecated: index a Dataset with a list of
    variable names instead.
  • DataArray.select_vars and DataArray.drop_vars deprecated: use
    DataArray.reset_coords instead.

Climate Change - Climate Data Standards - Python
Published by shoyer over 10 years ago

xarray -

This is major release that includes some new features and quite a few bug
fixes. Here are the highlights:

  • There is now a direct constructor for DataArray objects, which makes it
    possible to create a DataArray without using a Dataset. This is highlighted
    in the refreshed tutorial.
  • You can perform aggregation operations like mean directly on
    xray.Dataset objects, thanks to Joe Hamman. These aggregation
    methods also worked on grouped datasets.
  • xray now works on Python 2.6, thanks to Anna Kuznetsova.
  • A number of methods and attributes were given more sensible (usually shorter)
    names: labeled -> sel, indexed -> isel, select ->
    select_vars, unselect -> drop_vars, dimensions -> dims,
    coordinates -> coords, attributes -> attrs.
  • New Dataset.load_data and Dataset.close methods for datasets facilitate lower level of control of data loaded from disk.

Climate Change - Climate Data Standards - Python
Published by shoyer over 10 years ago

xarray -

Initial release

Climate Change - Climate Data Standards - Python
Published by shoyer almost 11 years ago