@@ -21,6 +21,8 @@ v2025.02.0 (unreleased)
21
21
22
22
New Features
23
23
~~~~~~~~~~~~
24
+ - Added :py:meth: `tutorial.open_datatree ` and :py:meth: `tutorial.load_datatree `
25
+ By `Eni Awowale <https://github.com/eni-awowale >`_.
24
26
- Added :py:meth: `DataTree.filter_like ` to conveniently restructure a DataTree like another DataTree (:issue: `10096 `, :pull: `10097 `).
25
27
By `Kobe Vandelanotte <https://github.com/kobebryant432 >`_.
26
28
- Added :py:meth: `Coordinates.from_xindex ` as convenience for creating a new :py:class: `Coordinates ` object
@@ -32,11 +34,25 @@ New Features
32
34
By `Justus Magin <https://github.com/keewis >`_.
33
35
- Added experimental support for coordinate transforms (not ready for public use yet!) (:pull: `9543 `)
34
36
By `Benoit Bovy <https://github.com/benbovy >`_.
37
+ - Similar to our :py:class: `numpy.datetime64 ` encoding path, automatically
38
+ modify the units when an integer dtype is specified during eager cftime
39
+ encoding, but the specified units would not allow for an exact round trip
40
+ (:pull: `9498 `). By `Spencer Clark <https://github.com/spencerkclark >`_.
35
41
- Support reading to `GPU memory with Zarr <https://zarr.readthedocs.io/en/stable/user-guide/gpu.html >`_ (:pull: `10078 `).
36
42
By `Deepak Cherian <https://github.com/dcherian >`_.
37
43
44
+ Performance
45
+ ~~~~~~~~~~~
46
+ - :py:meth: `DatasetGroupBy.first ` and :py:meth: `DatasetGroupBy.last ` can now use ``flox `` if available. (:issue: `9647 `)
47
+ By `Deepak Cherian <https://github.com/dcherian >`_.
48
+
38
49
Breaking changes
39
50
~~~~~~~~~~~~~~~~
51
+ - Rolled back code that would attempt to catch integer overflow when encoding
52
+ times with small integer dtypes (:issue: `8542 `), since it was inconsistent
53
+ with xarray's handling of standard integers, and interfered with encoding
54
+ times with small integer dtypes and missing values (:pull: `9498 `). By
55
+ `Spencer Clark <https://github.com/spencerkclark >`_.
40
56
- Warn instead of raise if phony_dims are detected when using h5netcdf-backend and ``phony_dims=None `` (:issue: `10049 `, :pull: `10058 `)
41
57
By `Kai Mühlbauer <https://github.com/kmuehlbauer >`_.
42
58
@@ -62,6 +78,12 @@ Bug fixes
62
78
- Fix DataArray().drop_attrs(deep=False) and add support for attrs to
63
79
DataArray()._replace(). (:issue: `10027 `, :pull: `10030 `). By `Jan
64
80
Haacker <https://github.com/j-haacker> `_.
81
+ - Fix bug preventing encoding times with missing values with small integer
82
+ dtype (:issue: `9134 `, :pull: `9498 `). By `Spencer Clark
83
+ <https://github.com/spencerkclark> `_.
84
+ - More robustly raise an error when lazily encoding times and an integer dtype
85
+ is specified with units that do not allow for an exact round trip
86
+ (:pull: `9498 `). By `Spencer Clark <https://github.com/spencerkclark >`_.
65
87
- Prevent false resolution change warnings from being emitted when decoding
66
88
timedeltas encoded with floating point values, and make it clearer how to
67
89
silence this warning message in the case that it is rightfully emitted
@@ -157,8 +179,6 @@ New Features
157
179
:py:class: `pandas.DatetimeIndex ` (:pull: `9965 `). By `Spencer Clark
158
180
<https://github.com/spencerkclark> `_ and `Kai Mühlbauer
159
181
<https://github.com/kmuehlbauer> `_.
160
- - :py:meth: `DatasetGroupBy.first ` and :py:meth: `DatasetGroupBy.last ` can now use ``flox `` if available. (:issue: `9647 `)
161
- By `Deepak Cherian <https://github.com/dcherian >`_.
162
182
163
183
Breaking changes
164
184
~~~~~~~~~~~~~~~~
@@ -1473,7 +1493,7 @@ Bug fixes
1473
1493
special case ``NaT `` handling in :py:meth: `~core.accessor_dt.DatetimeAccessor.isocalendar `
1474
1494
(:issue: `7928 `, :pull: `8084 `).
1475
1495
By `Kai Mühlbauer <https://github.com/kmuehlbauer >`_.
1476
- - Fix :py:meth: `~core .rolling.DatasetRolling.construct ` with stride on Datasets without indexes.
1496
+ - Fix :py:meth: `~computation .rolling.DatasetRolling.construct ` with stride on Datasets without indexes.
1477
1497
(:issue: `7021 `, :pull: `7578 `).
1478
1498
By `Amrest Chinkamol <https://github.com/p4perf4ce >`_ and `Michael Niklas <https://github.com/headtr1ck >`_.
1479
1499
- Calling plot with kwargs ``col ``, ``row `` or ``hue `` no longer squeezes dimensions passed via these arguments
@@ -2488,8 +2508,8 @@ New Features
2488
2508
2489
2509
- The ``zarr `` backend is now able to read NCZarr.
2490
2510
By `Mattia Almansi <https://github.com/malmans2 >`_.
2491
- - Add a weighted ``quantile `` method to :py:class: `~core .weighted.DatasetWeighted ` and
2492
- :py:class: `~core .weighted.DataArrayWeighted ` (:pull: `6059 `).
2511
+ - Add a weighted ``quantile `` method to :py:class: `.computation .weighted.DatasetWeighted ` and
2512
+ :py:class: `~computation .weighted.DataArrayWeighted ` (:pull: `6059 `).
2493
2513
By `Christian Jauvin <https://github.com/cjauvin >`_ and `David Huard <https://github.com/huard >`_.
2494
2514
- Add a ``create_index=True `` parameter to :py:meth: `Dataset.stack ` and
2495
2515
:py:meth: `DataArray.stack ` so that the creation of multi-indexes is optional
@@ -2871,7 +2891,7 @@ Thomas Nicholas, Tomas Chor, Tom Augspurger, Victor Negîrneac, Zachary Blackwoo
2871
2891
2872
2892
New Features
2873
2893
~~~~~~~~~~~~
2874
- - Add ``std ``, ``var ``, ``sum_of_squares `` to :py:class: `~core .weighted.DatasetWeighted ` and :py:class: `~core .weighted.DataArrayWeighted `.
2894
+ - Add ``std ``, ``var ``, ``sum_of_squares `` to :py:class: `~computation .weighted.DatasetWeighted ` and :py:class: `~computation .weighted.DataArrayWeighted `.
2875
2895
By `Christian Jauvin <https://github.com/cjauvin >`_.
2876
2896
- Added a :py:func: `get_options ` method to xarray's root namespace (:issue: `5698 `, :pull: `5716 `)
2877
2897
By `Pushkar Kopparla <https://github.com/pkopparla >`_.
@@ -3507,7 +3527,7 @@ New Features
3507
3527
By `Justus Magin <https://github.com/keewis >`_.
3508
3528
- Allow installing from git archives (:pull: `4897 `).
3509
3529
By `Justus Magin <https://github.com/keewis >`_.
3510
- - :py:class: `~core .rolling.DataArrayCoarsen ` and :py:class: `~core .rolling.DatasetCoarsen `
3530
+ - :py:class: `~computation .rolling.DataArrayCoarsen ` and :py:class: `~computation .rolling.DatasetCoarsen `
3511
3531
now implement a ``reduce `` method, enabling coarsening operations with custom
3512
3532
reduction functions (:issue: `3741 `, :pull: `4939 `).
3513
3533
By `Spencer Clark <https://github.com/spencerkclark >`_.
@@ -4352,8 +4372,8 @@ New Features
4352
4372
- :py:meth: `Dataset.quantile `, :py:meth: `DataArray.quantile ` and ``GroupBy.quantile ``
4353
4373
now work with dask Variables.
4354
4374
By `Deepak Cherian <https://github.com/dcherian >`_.
4355
- - Added the ``count `` reduction method to both :py:class: `~core .rolling.DatasetCoarsen `
4356
- and :py:class: `~core .rolling.DataArrayCoarsen ` objects. (:pull: `3500 `)
4375
+ - Added the ``count `` reduction method to both :py:class: `~computation .rolling.DatasetCoarsen `
4376
+ and :py:class: `~computation .rolling.DataArrayCoarsen ` objects. (:pull: `3500 `)
4357
4377
By `Deepak Cherian <https://github.com/dcherian >`_
4358
4378
- Add ``meta `` kwarg to :py:func: `~xarray.apply_ufunc `;
4359
4379
this is passed on to :py:func: `dask.array.blockwise `. (:pull: `3660 `)
@@ -4705,7 +4725,7 @@ Bug fixes
4705
4725
- Fix error in concatenating unlabeled dimensions (:pull: `3362 `).
4706
4726
By `Deepak Cherian <https://github.com/dcherian >`_.
4707
4727
- Warn if the ``dim `` kwarg is passed to rolling operations. This is redundant since a dimension is
4708
- specified when the :py:class: `~core .rolling.DatasetRolling ` or :py:class: `~core .rolling.DataArrayRolling ` object is created.
4728
+ specified when the :py:class: `~computation .rolling.DatasetRolling ` or :py:class: `~computation .rolling.DataArrayRolling ` object is created.
4709
4729
(:pull: `3362 `). By `Deepak Cherian <https://github.com/dcherian >`_.
4710
4730
4711
4731
Documentation
@@ -5936,7 +5956,7 @@ Enhancements
5936
5956
supplied list, returning a bool array. See :ref: `selecting values with isin `
5937
5957
for full details. Similar to the ``np.isin `` function.
5938
5958
By `Maximilian Roos <https://github.com/max-sixty >`_.
5939
- - Some speed improvement to construct :py:class: `~xarray.core .rolling.DataArrayRolling `
5959
+ - Some speed improvement to construct :py:class: `~xarray.computation .rolling.DataArrayRolling `
5940
5960
object (:issue: `1993 `)
5941
5961
By `Keisuke Fujii <https://github.com/fujiisoup >`_.
5942
5962
- Handle variables with different values for ``missing_value `` and
@@ -6016,8 +6036,8 @@ Enhancements
6016
6036
NumPy. By `Stephan Hoyer <https://github.com/shoyer >`_.
6017
6037
6018
6038
- Improve :py:func: `~xarray.DataArray.rolling ` logic.
6019
- :py:func: `~xarray.core .rolling.DataArrayRolling ` object now supports
6020
- :py:func: `~xarray.core .rolling.DataArrayRolling.construct ` method that returns a view
6039
+ :py:func: `~xarray.computation .rolling.DataArrayRolling ` object now supports
6040
+ :py:func: `~xarray.computation .rolling.DataArrayRolling.construct ` method that returns a view
6021
6041
of the DataArray / Dataset object with the rolling-window dimension added
6022
6042
to the last axis. This enables more flexible operation, such as strided
6023
6043
rolling, windowed rolling, ND-rolling, short-time FFT and convolution.
@@ -6791,7 +6811,7 @@ Enhancements
6791
6811
By `Stephan Hoyer <https://github.com/shoyer >`_ and
6792
6812
`Phillip J. Wolfram <https://github.com/pwolfram >`_.
6793
6813
6794
- - New aggregation on rolling objects :py:meth: `~core .rolling.DataArrayRolling.count `
6814
+ - New aggregation on rolling objects :py:meth: `~computation .rolling.DataArrayRolling.count `
6795
6815
which providing a rolling count of valid values (:issue: `1138 `).
6796
6816
6797
6817
Bug fixes
0 commit comments