N-D labeled arrays and datasets in Python
indexing.py
: introduce .oindex
for Explicitly Indexed Arrays by @andersy005 in https://github.com/pydata/xarray/pull/8750
.vindex
property for Explicitly Indexed Arrays by @andersy005 in https://github.com/pydata/xarray/pull/8780
expand_dims
by @spencerkclark in https://github.com/pydata/xarray/pull/8782
upstream-dev
CI to complete again by @keewis in https://github.com/pydata/xarray/pull/8823
arithmetic_broadcast=False
by @etienneschalk in https://github.com/pydata/xarray/pull/8784
dask-expr
to environment-3.12.yml by @dcherian in https://github.com/pydata/xarray/pull/8827
.oindex
and .vindex
by @andersy005 in https://github.com/pydata/xarray/pull/8790
.oindex
and .vindex
properties by @andersy005 in https://github.com/pydata/xarray/pull/8845
xarray/core/indexing.py
by @andersy005 in https://github.com/pydata/xarray/pull/8857
Full Changelog: https://github.com/pydata/xarray/compare/v2024.02.0...v2024.03.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
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.
normalize_axis_index
if possible by @keewis in https://github.com/pydata/xarray/pull/8483
user_level_warnings
by @max-sixty in https://github.com/pydata/xarray/pull/8625
.dims
in tests by @max-sixty in https://github.com/pydata/xarray/pull/8639
T_DataArray
in Weighted
by @max-sixty in https://github.com/pydata/xarray/pull/8630
numbagg>=0.7.0
for aggregations by @max-sixty in https://github.com/pydata/xarray/pull/8624
isnull
using full_like
instead of zeros_like
by @keewis in https://github.com/pydata/xarray/pull/7395
Full Changelog: https://github.com/pydata/xarray/compare/v2024.01.0...v2024.01.1
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.
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
_get_alpha
func by @max-sixty in https://github.com/pydata/xarray/pull/8465
map_blocks
docs' formatting by @max-sixty in https://github.com/pydata/xarray/pull/8464
rank
to run on dask arrays by @max-sixty in https://github.com/pydata/xarray/pull/8475
ffill
by default by @max-sixty in https://github.com/pydata/xarray/pull/8389
dims
to dim
by @max-sixty in https://github.com/pydata/xarray/pull/8487
append_dim
by @rabernat in https://github.com/pydata/xarray/pull/8428
.drop
by @max-sixty in https://github.com/pydata/xarray/pull/8497
combine_by_coords
by @gtrevisan in https://github.com/pydata/xarray/pull/8471
.drop_vars
by @max-sixty in https://github.com/pydata/xarray/pull/8511
.assign_coords
by @max-sixty in https://github.com/pydata/xarray/pull/8495
rolling
methods by @max-sixty in https://github.com/pydata/xarray/pull/8493
eval
method to Dataset by @max-sixty in https://github.com/pydata/xarray/pull/7163
__array_namespace__
for numpy.ndarray
by @keewis in https://github.com/pydata/xarray/pull/8526
Full Changelog: https://github.com/pydata/xarray/compare/v2023.11.0...v2023.12.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
.imag
and .real
properties to NamedArray
by @andersy005 in https://github.com/pydata/xarray/pull/8365
NamedArray.imag
and NamedArray.real
typing info by @andersy005 in https://github.com/pydata/xarray/pull/8369
opt_einsum
by default if installed. by @dcherian in https://github.com/pydata/xarray/pull/8373
consolidated
and write_empty_chunks
by @Metamess in https://github.com/pydata/xarray/pull/8326
testing.assert_identical
by @dcherian in https://github.com/pydata/xarray/pull/8400
to_array
to to_dataarray
by @max-sixty in https://github.com/pydata/xarray/pull/8438
cdms2
by @keewis in https://github.com/pydata/xarray/pull/8441
to_zarr()
by @slevang in https://github.com/pydata/xarray/pull/8434
Full Changelog: https://github.com/pydata/xarray/compare/v2023.10.1...v2023.11.0
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.
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
chunks=None
handling by @max-sixty in https://github.com/pydata/xarray/pull/8249
check-untyped
by @max-sixty in https://github.com/pydata/xarray/pull/8242
lambda
for other
param by @max-sixty in https://github.com/pydata/xarray/pull/8256
dtypes
module to the namedarray
package. by @andersy005 in https://github.com/pydata/xarray/pull/8250
to_zarr
by @max-sixty in https://github.com/pydata/xarray/pull/8257
.sortby
method by @max-sixty in https://github.com/pydata/xarray/pull/8273
GroupBy
import by @max-sixty in https://github.com/pydata/xarray/pull/8286
.rolling_exp
to work on dask arrays by @max-sixty in https://github.com/pydata/xarray/pull/8284
reset_encoding
to drop_encoding
by @max-sixty in https://github.com/pydata/xarray/pull/8287
ZarrArrayWrapper
by @olimcc in https://github.com/pydata/xarray/pull/8297
min_weight
param to rolling_exp
functions by @max-sixty in https://github.com/pydata/xarray/pull/8285
reindex_like
re broadcasting by @max-sixty in https://github.com/pydata/xarray/pull/8327
corr
, cov
, std
& var
to .rolling_exp
by @max-sixty in https://github.com/pydata/xarray/pull/8307
pyproject.toml
by @ZedThree in https://github.com/pydata/xarray/pull/8331
Full Changelog: https://github.com/pydata/xarray/compare/v2023.09.0...v2023.10.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.
Coordinates.assign()
method by @benbovy in https://github.com/pydata/xarray/pull/8102
interpolate(fill_value=)
error by @max-sixty in https://github.com/pydata/xarray/pull/8139
numpy=2.0
errors by @keewis in https://github.com/pydata/xarray/pull/8117
PeriodIndex
deprecation in xarray tests by @max-sixty in https://github.com/pydata/xarray/pull/8182
apply_ufunc
error message by @max-sixty in https://github.com/pydata/xarray/pull/8179
setup.cfg
in favor of pyproject.toml
by @max-sixty in https://github.com/pydata/xarray/pull/8183
pyproject.toml
by @max-sixty in https://github.com/pydata/xarray/pull/8185
requirements.txt
by @max-sixty in https://github.com/pydata/xarray/pull/8196
apply_ufunc
to ignore missing core dims by @max-sixty in https://github.com/pydata/xarray/pull/8138
.rolling_exp
functions from reduce
to apply_ufunc
by @max-sixty in https://github.com/pydata/xarray/pull/8114
TypeVar
by @max-sixty in https://github.com/pydata/xarray/pull/8212
.isel
for DatasetRolling.construct
consistent rolling behavior by @p4perf4ce in https://github.com/pydata/xarray/pull/7578
indexes.py
to use Self
for typing by @max-sixty in https://github.com/pydata/xarray/pull/8217
Self
rather than concrete types, remove cast
s by @max-sixty in https://github.com/pydata/xarray/pull/8216
Literal
typing by @max-sixty in https://github.com/pydata/xarray/pull/8227
units
for datetime64/timedelta64 variables to preserve integer dtype by @kmuehlbauer in https://github.com/pydata/xarray/pull/8201
Full Changelog: https://github.com/pydata/xarray/compare/v2023.08.0...v2023.09.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
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.
as_variable
by @ZedThree in https://github.com/pydata/xarray/pull/7995
repr
by @keewis in https://github.com/pydata/xarray/pull/7225
other
in GroupBy binary ops. by @dcherian in https://github.com/pydata/xarray/pull/7684
write_empty_chunks
by @RKuttruff in https://github.com/pydata/xarray/pull/8016
numpy
by @keewis in https://github.com/pydata/xarray/pull/8061
Full Changelog: https://github.com/pydata/xarray/compare/v2023.07.0...v2023.08.0