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
- Add dev whats-new by @dcherian in https://github.com/pydata/xarray/pull/10152
- Fix GitHub Actions badge in README by @spencerkclark in https://github.com/pydata/xarray/pull/10155
- Forbid datatree to zarr append dim by @TomNicholas in https://github.com/pydata/xarray/pull/10156
- Fix numpy advanced indexing docs link by @wpbonelli in https://github.com/pydata/xarray/pull/10160
- Update DataArray.to_zarr to match Dataset.to_zarr. by @Karl-Krauth in https://github.com/pydata/xarray/pull/10164
- Preserve label ordering for multi-variable GroupBy by @dcherian in https://github.com/pydata/xarray/pull/10151
- Move chunks-related functions to a new file by @max-sixty in https://github.com/pydata/xarray/pull/10172
- Move fit computation code to dedicated new file by @max-sixty in https://github.com/pydata/xarray/pull/10174
- Fix GroupBy first, last with flox by @dcherian in https://github.com/pydata/xarray/pull/10173
- Allow setting
fill_value
on Zarr format 3 arrays by @dcherian in https://github.com/pydata/xarray/pull/10161 - DataTree: sel & isel add error context by @mathause in https://github.com/pydata/xarray/pull/10154
- DOC: Update docstring to reflect renamed section (modifying Zarr stores) by @VeckoTheGecko in https://github.com/pydata/xarray/pull/10180
- Use explicit repo name in upstream wheels by @ianhi in https://github.com/pydata/xarray/pull/10181
- Fix: Correct axis labelling with units for FacetGrid plots by @andrewendlinger in https://github.com/pydata/xarray/pull/10185
- Vendor pandas to xarray conversion tests by @dcherian in https://github.com/pydata/xarray/pull/10187
- Support zarr
write_empty_chunks
for zarr-python 3 and up by @ianhi in https://github.com/pydata/xarray/pull/10177 - release 2025.03.1 by @dcherian in https://github.com/pydata/xarray/pull/10188
New Contributors
- @wpbonelli made their first contribution in https://github.com/pydata/xarray/pull/10160
- @andrewendlinger made their first contribution in https://github.com/pydata/xarray/pull/10185
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
- add new section in whats-new.rst by @kmuehlbauer in https://github.com/pydata/xarray/pull/10011
- spelling fix: possibilites -> possibilities by @shoyer in https://github.com/pydata/xarray/pull/10023
- Duck array ops for
all
andany
by @tomwhite in https://github.com/pydata/xarray/pull/9883 map_over_datasets
: fix error message for wrong result type by @mathause in https://github.com/pydata/xarray/pull/10016- Use resolution-dependent default units for lazy time encoding by @spencerkclark in https://github.com/pydata/xarray/pull/10017
- DOC: Fix 404 on Cubed's documentation by @VeckoTheGecko in https://github.com/pydata/xarray/pull/10029
- use mean of min/max years as offset in calculation of datetime64 mean by @kmuehlbauer in https://github.com/pydata/xarray/pull/10035
- Fix dataarray drop attrs by @j-haacker in https://github.com/pydata/xarray/pull/10030
- Start splitting up
dataset.py
by @max-sixty in https://github.com/pydata/xarray/pull/10039 - Upgrade mypy to 1.15 by @max-sixty in https://github.com/pydata/xarray/pull/10041
- implement map_over_datasets kwargs by @kmuehlbauer in https://github.com/pydata/xarray/pull/10012
- run CI on
python=3.13
by @keewis in https://github.com/pydata/xarray/pull/9681 - Add
Coordinates.from_xindex
method (+ refactor API doc) by @benbovy in https://github.com/pydata/xarray/pull/10000 - Add types stubs to optional dependencies by @max-sixty in https://github.com/pydata/xarray/pull/10048
- Flexible coordinate transform by @benbovy in https://github.com/pydata/xarray/pull/9543
- More precisely type
pipe
methods by @chuckwondo in https://github.com/pydata/xarray/pull/10038 - Default to phony_dims="access" in h5netcdf-backend by @kmuehlbauer in https://github.com/pydata/xarray/pull/10058
- More permissive Index typing by @benbovy in https://github.com/pydata/xarray/pull/10067
- Restrict fastpath isel indexes to the case of all PandasIndex by @benbovy in https://github.com/pydata/xarray/pull/10066
- deprecate cftime_range() in favor of date_range(use_cftime=True) by @Maddogghoek in https://github.com/pydata/xarray/pull/10024
- Generalize lazy backend indexing a little more by @dcherian in https://github.com/pydata/xarray/pull/10078
- Another reduction in the size of
dataset.py
by @max-sixty in https://github.com/pydata/xarray/pull/10088 - Prune data tree for Isomorphic operations by @kobebryant432 in https://github.com/pydata/xarray/pull/10097
- Skip failing array api test. by @dcherian in https://github.com/pydata/xarray/pull/10102
- Pass node path to tokenize in
open_datatree
by @slevang in https://github.com/pydata/xarray/pull/10100 - Fix false timedelta decoding
SerializationWarning
and improve warning message by @spencerkclark in https://github.com/pydata/xarray/pull/10072 - Add typos check to pre-commit hooks by @max-sixty in https://github.com/pydata/xarray/pull/10040
- Ensure KeyError raised for zarr datasets missing dim names by @oliverwm1 in https://github.com/pydata/xarray/pull/10025
- Improve handling of dtype and NaT when encoding/decoding masked and packaged datetimes and timedeltas by @kmuehlbauer in https://github.com/pydata/xarray/pull/10050
- fix and supress some test warnings by @mathause in https://github.com/pydata/xarray/pull/10104
- Update asv badge url in README.md by @sjvrijn in https://github.com/pydata/xarray/pull/10113
- Fix broken Zarr test by @dcherian in https://github.com/pydata/xarray/pull/10109
- Pin pandas stubs by @jsignell in https://github.com/pydata/xarray/pull/10119
- Use
to_numpy
in time decoding by @dcherian in https://github.com/pydata/xarray/pull/10081 - explicitly cast the dtype of
where
's condition parameter tobool
by @keewis in https://github.com/pydata/xarray/pull/10087 - Better
uv
compatibility by @max-sixty in https://github.com/pydata/xarray/pull/10124 - Change
python_files
inpyproject.toml
to a list by @max-sixty in https://github.com/pydata/xarray/pull/10127 - Don't skip tests when on a
mypy
branch by @max-sixty in https://github.com/pydata/xarray/pull/10129 - Fix type issues from pandas stubs by @max-sixty in https://github.com/pydata/xarray/pull/10128
- Refactor compatibility modules into xarray.compat package by @max-sixty in https://github.com/pydata/xarray/pull/10131
- Refactor modules from
core
intoxarray.computation
by @max-sixty in https://github.com/pydata/xarray/pull/10132 - Split
apply_ufunc
out ofcomputation.py
by @max-sixty in https://github.com/pydata/xarray/pull/10133 - Refactor concat / combine / merge into
xarray/structure
by @max-sixty in https://github.com/pydata/xarray/pull/10134 - Fix test_distributed::test_async by @fjetter in https://github.com/pydata/xarray/pull/10138
- Refactor datetime and timedelta encoding for increased robustness by @spencerkclark in https://github.com/pydata/xarray/pull/9498
- [docs]
DataTree
cannot be constructed fromDataArray
by @mathause in https://github.com/pydata/xarray/pull/10142 - Fix
open_datatree
whendecode_cf=False
by @ianhi in https://github.com/pydata/xarray/pull/10141 - Fix version in requires_zarr_v3 fixture by @TomNicholas in https://github.com/pydata/xarray/pull/10145
- Adds open_datatree and load_datatree to the tutorial module by @eni-awowale in https://github.com/pydata/xarray/pull/10082
- Update flaky pydap test by @dcherian in https://github.com/pydata/xarray/pull/10149
- Use flox for grouped first, last. by @dcherian in https://github.com/pydata/xarray/pull/10148
- Refactor calendar fixtures by @dcherian in https://github.com/pydata/xarray/pull/10150
- Refactoring/fixing zarr-pyhton v3 incompatibilities in xarray datatrees by @aladinor in https://github.com/pydata/xarray/pull/10020
- Release 2025.03.0 by @dcherian in https://github.com/pydata/xarray/pull/10143
New Contributors
- @j-haacker made their first contribution in https://github.com/pydata/xarray/pull/10030
- @chuckwondo made their first contribution in https://github.com/pydata/xarray/pull/10038
- @Maddogghoek made their first contribution in https://github.com/pydata/xarray/pull/10024
- @kobebryant432 made their first contribution in https://github.com/pydata/xarray/pull/10097
- @oliverwm1 made their first contribution in https://github.com/pydata/xarray/pull/10025
- @ianhi made their first contribution in https://github.com/pydata/xarray/pull/10141
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
- dev whats-new by @dcherian in https://github.com/pydata/xarray/pull/9936
- Remove outdated quantile test. by @dcherian in https://github.com/pydata/xarray/pull/9945
- Relax nanosecond datetime restriction in CF time decoding by @kmuehlbauer in https://github.com/pydata/xarray/pull/9618
- fix upstream dev issues by @kmuehlbauer in https://github.com/pydata/xarray/pull/9953
- Suggest the correct name when no key matches in the dataset by @Illviljan in https://github.com/pydata/xarray/pull/9943
- cast type to PDDatetimeUnitOptions by @kmuehlbauer in https://github.com/pydata/xarray/pull/9963
- Update time coding tests to assert exact equality by @spencerkclark in https://github.com/pydata/xarray/pull/9961
- remove dask-expr from CI runs, fix related tests by @kmuehlbauer in https://github.com/pydata/xarray/pull/9971
- Use zarr-fixture to prevent thread leakage errors by @kmuehlbauer in https://github.com/pydata/xarray/pull/9967
- fix weighted polyfit for arrays with more than 2 dimensions by @malmans2 in https://github.com/pydata/xarray/pull/9974
- Fix test_doc_example on big-endian systems by @QuLogic in https://github.com/pydata/xarray/pull/9949
- Remove unnecessary a article by @salahelfarissi in https://github.com/pydata/xarray/pull/9980
- Fix some typing by @dcherian in https://github.com/pydata/xarray/pull/9988
- Use flox for grouped first, last by @dcherian in https://github.com/pydata/xarray/pull/9986
- Add
shards
tovalid_encodings
to enable sharded Zarr writing by @jacobbieker in https://github.com/pydata/xarray/pull/9948 - Add shxarray to the xarray ecosystem list by @strawpants in https://github.com/pydata/xarray/pull/9995
- Remove repetitive that (replace it with the) by @salahelfarissi in https://github.com/pydata/xarray/pull/9994
- Enable
DataTree.to_zarr(compute=False)
by @slevang in https://github.com/pydata/xarray/pull/9958 - Add
time_unit
argument toCFTimeIndex.to_datetimeindex
by @spencerkclark in https://github.com/pydata/xarray/pull/9965 - fix mean for datetime-like using the respective time resolution unit by @kmuehlbauer in https://github.com/pydata/xarray/pull/9977
- Enable passing a
CFTimedeltaCoder
todecode_timedelta
by @spencerkclark in https://github.com/pydata/xarray/pull/9966 - Revert "Use flox for grouped first, last (#9986)" by @dcherian in https://github.com/pydata/xarray/pull/10001
- Fix infer_freq, check for subdtype "datetime64"/"timedelta64" by @kmuehlbauer in https://github.com/pydata/xarray/pull/9999
- Migrate Zarr region="auto" tests to a class by @dcherian in https://github.com/pydata/xarray/pull/9990
- Fix the push method when the limit parameter is bigger than the chunk… by @josephnowak in https://github.com/pydata/xarray/pull/9940
- Use
freq="D"
instead offreq="d"
inpd.timedelta_range
by @spencerkclark in https://github.com/pydata/xarray/pull/10004 - cast
numpy
scalars to arrays inNamedArray.from_array
by @keewis in https://github.com/pydata/xarray/pull/10008 - remove outdated type-ignores by @kmuehlbauer in https://github.com/pydata/xarray/pull/10006
- Preserve order of variables in combine_by_coords by @kmuehlbauer in https://github.com/pydata/xarray/pull/9070
- Add FAQ answer about API stability & backwards compatibility by @TomNicholas in https://github.com/pydata/xarray/pull/9855
- release notes: 2025.01.2 by @kmuehlbauer in https://github.com/pydata/xarray/pull/10007
New Contributors
- @salahelfarissi made their first contribution in https://github.com/pydata/xarray/pull/9980
- @jacobbieker made their first contribution in https://github.com/pydata/xarray/pull/9948
- @strawpants made their first contribution in https://github.com/pydata/xarray/pull/9995
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
- split out CFDatetimeCoder, deprecate use_cftime as kwarg by @kmuehlbauer in https://github.com/pydata/xarray/pull/9901
- Fix zarr upstream tests by @dcherian in https://github.com/pydata/xarray/pull/9927
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
- Add blank What's New by @Illviljan in https://github.com/pydata/xarray/pull/9817
- Upgrade ruff to 0.8.0 by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/9816
- Improved duck array wrapping by @slevang in https://github.com/pydata/xarray/pull/9798
- Use compute instead of load in plot by @Illviljan in https://github.com/pydata/xarray/pull/9818
- Described default centre argument behaviour in rolling functions by @JanukanS in https://github.com/pydata/xarray/pull/9819
- Fix type annotations for
get_axis_num
(GH 9822) by @bmerry in https://github.com/pydata/xarray/pull/9827 - Test type annotations for Variable.get_axis_num by @bmerry in https://github.com/pydata/xarray/pull/9832
- FIX: gracfully handle missing seaborn dependency by @scott-huberty in https://github.com/pydata/xarray/pull/9835
- move ensure_dtype_not_object from conventions to backends by @kmuehlbauer in https://github.com/pydata/xarray/pull/9828
- Fixed function links in dataarray.py and dataset.py by @JanukanS in https://github.com/pydata/xarray/pull/9850
- Fix seed for random test data. by @dcherian in https://github.com/pydata/xarray/pull/9844
- Set
zarr_format
forzarr.consolidate_metadata
by @dcherian in https://github.com/pydata/xarray/pull/9848 - Reference ncdata in docs. by @pp-mo in https://github.com/pydata/xarray/pull/9847
- Add Pyproject pre-commit hooks by @VeckoTheGecko in https://github.com/pydata/xarray/pull/9840
- dask tests: Avoid check for non-copies, xfail pandas comparison by @dcherian in https://github.com/pydata/xarray/pull/9857
- Avoid local functions in push by @fjetter in https://github.com/pydata/xarray/pull/9856
- Add token to codecov by @max-sixty in https://github.com/pydata/xarray/pull/9865
- Remove deprecated behavior for non-dim positional args by @max-sixty in https://github.com/pydata/xarray/pull/9864
- Fix/silence upstream tests by @dcherian in https://github.com/pydata/xarray/pull/9879
- finalize deprecation of "closed"-parameter by @kmuehlbauer in https://github.com/pydata/xarray/pull/9882
- Fix upstream Zarr compatibility by @dcherian in https://github.com/pydata/xarray/pull/9884
- Fix interpolation when non-numeric coords are present. by @dcherian in https://github.com/pydata/xarray/pull/9887
- Use integers instead of randint by @Illviljan in https://github.com/pydata/xarray/pull/9889
- Add "unit"-parameter to date_range, enhance iso time parser to us by @kmuehlbauer in https://github.com/pydata/xarray/pull/9885
- Add missing DataTree attributes to docs by @maxrjones in https://github.com/pydata/xarray/pull/9876
- move scalar-handling logic into
possibly_convert_objects
by @kmuehlbauer in https://github.com/pydata/xarray/pull/9900 - remove unused "type: ignore" comments in test_plot.py by @kmuehlbauer in https://github.com/pydata/xarray/pull/9904
- Optimize idxmin, idxmax with dask by @dcherian in https://github.com/pydata/xarray/pull/9800
- Cache pre-existing Zarr arrays in Zarr backend by @d-v-b in https://github.com/pydata/xarray/pull/9861
- Explicitly configure ReadTheDocs build to use conf.py by @shoyer in https://github.com/pydata/xarray/pull/9908
- Skip dask rolling by @Illviljan in https://github.com/pydata/xarray/pull/9909
- Rewrite interp to use
apply_ufunc
by @dcherian in https://github.com/pydata/xarray/pull/9881 - friendlier error messages for missing chunk managers by @keewis in https://github.com/pydata/xarray/pull/9676
- Edit serialization error message by @VeckoTheGecko in https://github.com/pydata/xarray/pull/9916
- Enhance and move ISO-8601 parser to coding.times by @kmuehlbauer in https://github.com/pydata/xarray/pull/9899
- fix warning from scipy backend guess_can_open on directory by @germasch in https://github.com/pydata/xarray/pull/9911
- time coding refactor by @kmuehlbauer in https://github.com/pydata/xarray/pull/9906
- Whats-new 2025.01.0 by @dcherian in https://github.com/pydata/xarray/pull/9919
New Contributors
- @JanukanS made their first contribution in https://github.com/pydata/xarray/pull/9819
- @bmerry made their first contribution in https://github.com/pydata/xarray/pull/9827
- @pp-mo made their first contribution in https://github.com/pydata/xarray/pull/9847
- @fjetter made their first contribution in https://github.com/pydata/xarray/pull/9856
- @d-v-b made their first contribution in https://github.com/pydata/xarray/pull/9861
- @germasch made their first contribution in https://github.com/pydata/xarray/pull/9911
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 blank whatsnew after v2024.10.0 by @TomNicholas in https://github.com/pydata/xarray/pull/9679
- Fix inadvertent deep-copying of child data in DataTree by @shoyer in https://github.com/pydata/xarray/pull/9684
- Raise
ValueError
for unmatching chunks length inDataArray.chunk()
by @lkstrp in https://github.com/pydata/xarray/pull/9689 - Typing annotations for arithmetic overrides (e.g., DataArray + Dataset) by @shoyer in https://github.com/pydata/xarray/pull/9688
- Add
DataTree.persist
by @slevang in https://github.com/pydata/xarray/pull/9682 - Use the same function to floatize coords in polyfit and polyval by @aulemahal in https://github.com/pydata/xarray/pull/9691
- Refactor out utility functions from to_zarr by @dcherian in https://github.com/pydata/xarray/pull/9695
- update mypy to 1.13 by @headtr1ck in https://github.com/pydata/xarray/pull/9687
- add pydap-server dependencies to environment.yml by @kmuehlbauer in https://github.com/pydata/xarray/pull/9709
- DOC: mention attribute peculiarities in docs/docstrings by @kmuehlbauer in https://github.com/pydata/xarray/pull/9700
- GroupBy(chunked-array) by @dcherian in https://github.com/pydata/xarray/pull/9522
- Fix writing of DataTree subgroups to zarr or netCDF by @shoyer in https://github.com/pydata/xarray/pull/9677
- Add missing xarray.core.missing import by @shoyer in https://github.com/pydata/xarray/pull/9714
- Fix groupby tests by @dcherian in https://github.com/pydata/xarray/pull/9716
- Move to micromamba 2 by @kmuehlbauer in https://github.com/pydata/xarray/pull/9732
- Enforce ruff/pygrep-hooks rules (PGH) by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/9729
- Apply ruff/flake8-pie rules (PIE) by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/9726
- Apply ruff/flake8-implicit-str-concat rules (ISC) by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/9722
- Apply ruff/flake8-simplify rules (SIM) by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/9727
- support for additional scipy nd interpolants by @hollymandel in https://github.com/pydata/xarray/pull/9599
- Fix typos found by codespell by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/9721
- Aplpy ruff rules (RUF) by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/9731
- chmod -x by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/9725
- Apply ruff rule RUF007 by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/9739
- Enforce ruff/Perflint rules (PERF) by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/9730
- Enforce ruff/flake8-comprehensions rules (C4) by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/9724
- Enforce ruff/flake8-pie rules (PIE) by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/9740
- MNT: use new conda-forge package pydap-server by @kmuehlbauer in https://github.com/pydata/xarray/pull/9741
- Reorganise ruff rules by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/9738
- pin array-api-strict<=2.1 by @kmuehlbauer in https://github.com/pydata/xarray/pull/9751
- Use micromamba 1.5.10 where conda is needed by @kmuehlbauer in https://github.com/pydata/xarray/pull/9737
- Apply ruff/flake8-simplify rule SIM401 by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/9749
- Discard useless
!s
conversion in f-string by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/9752 - http:// → https:// by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/9748
- Updates to Dask page in Xarray docs by @scharlottej13 in https://github.com/pydata/xarray/pull/9495
- Dispatch to Dask if nanquantile is available by @phofl in https://github.com/pydata/xarray/pull/9719
- Compress PNG files by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/9747
- Specify copyright holders in main license file by @TomNicholas in https://github.com/pydata/xarray/pull/9756
- CI runs ruff instead of pep8speaks by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/9759
- rewrite the
min_deps_check
script by @keewis in https://github.com/pydata/xarray/pull/9754 - unpin array-api-strict as issues are resolved upstream by @kmuehlbauer in https://github.com/pydata/xarray/pull/9762
- Fix html repr indexes section by @benbovy in https://github.com/pydata/xarray/pull/9768
- Use
map_overlap
for rolling reductions with Dask by @phofl in https://github.com/pydata/xarray/pull/9770 - Optimize polyfit by @dcherian in https://github.com/pydata/xarray/pull/9766
- Allow wrapping
np.ndarray
subclasses by @slevang in https://github.com/pydata/xarray/pull/9760 - fix cf decoding of grid_mapping by @kmuehlbauer in https://github.com/pydata/xarray/pull/9765
- Optimize
ffill
,bfill
with dask whenlimit
is specified by @josephnowak in https://github.com/pydata/xarray/pull/9771 - add 'User-Agent'-header to pooch.retrieve by @kmuehlbauer in https://github.com/pydata/xarray/pull/9782
- Fix open_mfdataset for list of fsspec files by @phofl in https://github.com/pydata/xarray/pull/9785
- Add download stats badges by @headtr1ck in https://github.com/pydata/xarray/pull/9786
- Buffer types by @headtr1ck in https://github.com/pydata/xarray/pull/9787
rolling.construct
: Addsliding_window_view_kwargs
to pipe arguments down tosliding_window_view
by @dcherian in https://github.com/pydata/xarray/pull/9720- Add prettier and pygrep hooks to pre-commit hooks by @Armavica in https://github.com/pydata/xarray/pull/9644
- Namespace-aware
xarray.ufuncs
by @slevang in https://github.com/pydata/xarray/pull/9776 - Bump minimum versions by @dcherian in https://github.com/pydata/xarray/pull/9796
- Soft import by @scott-huberty in https://github.com/pydata/xarray/pull/9561
- Add utility for opening remote files with
fsspec
by @jrbourbeau in https://github.com/pydata/xarray/pull/9797 - Add
GroupBy.shuffle_to_chunks()
by @dcherian in https://github.com/pydata/xarray/pull/9320 - Minor format tweak to unrecognized engine error by @jrbourbeau in https://github.com/pydata/xarray/pull/9809
- Compatibility with Zarr v3b2 by @dcherian in https://github.com/pydata/xarray/pull/9795
- Faster chunk checking for backend datasets by @dcherian in https://github.com/pydata/xarray/pull/9808
- Add note on DataTree.map_over_datasets to migration guide by @TomNicholas in https://github.com/pydata/xarray/pull/9804
- ListedColormap: don't pass N colors by @mathause in https://github.com/pydata/xarray/pull/9811
- release notes for v2024.11.0 by @dcherian in https://github.com/pydata/xarray/pull/9794
New Contributors
- @lkstrp made their first contribution in https://github.com/pydata/xarray/pull/9689
- @scharlottej13 made their first contribution in https://github.com/pydata/xarray/pull/9495
- @scott-huberty made their first contribution in https://github.com/pydata/xarray/pull/9561
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 whatsnew section by @owenlittlejohns in https://github.com/pydata/xarray/pull/9483
- Update pyproject.toml by @TomAugspurger in https://github.com/pydata/xarray/pull/9484
open_groups
for zarr backends by @eni-awowale in https://github.com/pydata/xarray/pull/9469- Ensure TreeNode doesn't copy in-place by @TomNicholas in https://github.com/pydata/xarray/pull/9482
- Make illegal path-like variable names when constructing a DataTree from a Dataset by @etienneschalk in https://github.com/pydata/xarray/pull/9378
- DAS-2155 - Merge datatree documentation into main docs. by @owenlittlejohns in https://github.com/pydata/xarray/pull/9033
- Forbid modifying names of DataTree objects with parents by @shoyer in https://github.com/pydata/xarray/pull/9494
- Fixed formatting for whats-new.rst and added line for
open_groups
with zarr backends. by @eni-awowale in https://github.com/pydata/xarray/pull/9493 - Opt out of floor division for float dtype time encoding by @spencerkclark in https://github.com/pydata/xarray/pull/9497
- Stateful test: silence DeprecationWarning from drop_dims by @dcherian in https://github.com/pydata/xarray/pull/9508
- Turn off survey banner by @jhamman in https://github.com/pydata/xarray/pull/9512
- flox: don't set fill_value where possible by @dcherian in https://github.com/pydata/xarray/pull/9433
- Fix pandas datetime decoding with NumPy >= 2.0 for small integer dtypes by @spencerkclark in https://github.com/pydata/xarray/pull/9518
- Datatree setitem dataset by @TomNicholas in https://github.com/pydata/xarray/pull/9516
- Repo review bugbear by @Armavica in https://github.com/pydata/xarray/pull/9505
- Make _replace more lenient. by @dcherian in https://github.com/pydata/xarray/pull/9517
- Update
compat
error checking to disallow "minimal" inconcat()
by @VeckoTheGecko in https://github.com/pydata/xarray/pull/9525 - (fix):
ExtensionArray
+DataArray
roundtrip by @ilan-gold in https://github.com/pydata/xarray/pull/9520 - Improve safe chunk validation by @josephnowak in https://github.com/pydata/xarray/pull/9527
- Fix DataTree repr to not repeat inherited coordinates by @shoyer in https://github.com/pydata/xarray/pull/9532
- cast
numpy
scalars to arrays inas_compatible_data
by @keewis in https://github.com/pydata/xarray/pull/9403 - Add
.rolling_exp
onto.rolling
's 'See also' by @max-sixty in https://github.com/pydata/xarray/pull/9534 - Update array signatures with copy by @Illviljan in https://github.com/pydata/xarray/pull/9529
- Support vectorized interpolation with more scipy interpolators by @hollymandel in https://github.com/pydata/xarray/pull/9526
- Add yet an other CI for numpy 2.1 by @hmaarrfk in https://github.com/pydata/xarray/pull/9540
- Update donation links by @martey in https://github.com/pydata/xarray/pull/9549
- Remove duplicate coordinates with indexes on sub-trees by @shoyer in https://github.com/pydata/xarray/pull/9531
- Typos in pandas.rst by @carschandler in https://github.com/pydata/xarray/pull/9551
- Fix NamedArray html repr crashing by @Illviljan in https://github.com/pydata/xarray/pull/9553
- allow using
__array_function__
as a fallback for missing Array API functions by @keewis in https://github.com/pydata/xarray/pull/9530 - Revert "Improve safe chunk validation" by @shoyer in https://github.com/pydata/xarray/pull/9558
- Improve safe chunk validation by @josephnowak in https://github.com/pydata/xarray/pull/9559
- DOC/ecosystem: Fix tiny typo by @yvonnefroehlich in https://github.com/pydata/xarray/pull/9562
- bump
scientific-python/upload-nightly-action
by @keewis in https://github.com/pydata/xarray/pull/9566 - towards new h5netcdf/netcdf4 features by @kmuehlbauer in https://github.com/pydata/xarray/pull/9509
- Add missing space between sentences in error message by @shoyer in https://github.com/pydata/xarray/pull/9563
- Remove superfluous lines from pyright config by @max-sixty in https://github.com/pydata/xarray/pull/9569
- Adjust pip extra dependencies by @max-sixty in https://github.com/pydata/xarray/pull/9571
- Add numba constraint by @max-sixty in https://github.com/pydata/xarray/pull/9572
- Add
.cumulative
tocumsum
&cumprod
docstrings by @max-sixty in https://github.com/pydata/xarray/pull/9533 - Remove unneeded indentation by @max-sixty in https://github.com/pydata/xarray/pull/9574
- Disable pyright config? by @max-sixty in https://github.com/pydata/xarray/pull/9570
- Stop inheriting non-indexed coordinates for DataTree by @shoyer in https://github.com/pydata/xarray/pull/9555
- passing missing arguments when opening zarr, hdf5 and netcdft4 datatrees by @aladinor in https://github.com/pydata/xarray/pull/9428
- Remove unvetted DataTree methods by @shoyer in https://github.com/pydata/xarray/pull/9585
- Remove out of date comment on DataTree inheritance by @shoyer in https://github.com/pydata/xarray/pull/9592
- Add support for coordinate inputs in polyfit. by @Karl-Krauth in https://github.com/pydata/xarray/pull/9369
- Implement DataTree.isel and DataTree.sel by @shoyer in https://github.com/pydata/xarray/pull/9588
- Datatree deduplicate setitem by @TomNicholas in https://github.com/pydata/xarray/pull/9602
- Reimplement DataTree aggregations by @shoyer in https://github.com/pydata/xarray/pull/9589
- updating group type annotation for netcdf, hdf5, and zarr open_datatree function by @aladinor in https://github.com/pydata/xarray/pull/9614
- Rename inherited -> inherit in DataTree.to_dataset by @shoyer in https://github.com/pydata/xarray/pull/9615
- Datatree alignment docs by @TomNicholas in https://github.com/pydata/xarray/pull/9501
- pin mypy to 1.11.2 by @kmuehlbauer in https://github.com/pydata/xarray/pull/9621
- map_over_subtree -> map_over_datasets by @TomNicholas in https://github.com/pydata/xarray/pull/9622
- Reimplement Datatree typed ops by @TomNicholas in https://github.com/pydata/xarray/pull/9619
- Migration guide for users of old datatree repo by @TomNicholas in https://github.com/pydata/xarray/pull/9598
- docs(groupby): mention deprecation of
squeeze
kwarg by @Sibgatulin in https://github.com/pydata/xarray/pull/9625 - Add inherit=False option to DataTree.copy() by @shoyer in https://github.com/pydata/xarray/pull/9628
- Bug fixes for DataTree indexing and aggregation by @shoyer in https://github.com/pydata/xarray/pull/9626
- Add missing
memo
argument to DataTree.deepcopy by @shoyer in https://github.com/pydata/xarray/pull/9631 - Type check datatree tests by @TomNicholas in https://github.com/pydata/xarray/pull/9632
- Add zip_subtrees for paired iteration over DataTrees by @shoyer in https://github.com/pydata/xarray/pull/9623
- DOC: Clarify error message in open_dataarray by @DWesl in https://github.com/pydata/xarray/pull/9637
- Updates to DataTree.equals and DataTree.identical by @shoyer in https://github.com/pydata/xarray/pull/9627
- Support alternative names for the root node in DataTree.from_dict by @shoyer in https://github.com/pydata/xarray/pull/9638
- Fix error and missing code cell in io.rst by @kmuehlbauer in https://github.com/pydata/xarray/pull/9641
- Replace black and blackdoc with ruff-format by @Armavica in https://github.com/pydata/xarray/pull/9506
- fix zarr intersphinx by @shoyer in https://github.com/pydata/xarray/pull/9652
- Re-implement map_over_datasets using group_subtrees by @shoyer in https://github.com/pydata/xarray/pull/9636
- Update Datatree html repr to indicate inheritance by @TomNicholas in https://github.com/pydata/xarray/pull/9633
- flox: Properly propagate multiindex by @dcherian in https://github.com/pydata/xarray/pull/9649
- Fix multiple grouping with missing groups by @dcherian in https://github.com/pydata/xarray/pull/9650
- Change URL for pydap test by @dcherian in https://github.com/pydata/xarray/pull/9655
- Add close() method to DataTree and use it to clean-up open files in tests by @shoyer in https://github.com/pydata/xarray/pull/9651
- Reduce graph size through writing indexes directly into graph for
map_blocks
by @phofl in https://github.com/pydata/xarray/pull/9658 - Update to_dataframe doc to match current behavior by @mgunyho in https://github.com/pydata/xarray/pull/9662
- Compatibility for zarr-python 3.x by @TomAugspurger in https://github.com/pydata/xarray/pull/9552
- support
chunks
inopen_groups
andopen_datatree
by @keewis in https://github.com/pydata/xarray/pull/9660 - implement
dask
methods onDataTree
by @keewis in https://github.com/pydata/xarray/pull/9670 - fix(zarr): use inplace array.resize for zarr 2 and 3 by @jhamman in https://github.com/pydata/xarray/pull/9673
- Use zarr v3 dimension_names by @rabernat in https://github.com/pydata/xarray/pull/9669
- fixing behaviour for group parameter in
open_datatree
by @aladinor in https://github.com/pydata/xarray/pull/9666 - drop the length from
numpy
's fixed-width string dtypes by @keewis in https://github.com/pydata/xarray/pull/9586 - v2024.10.0 release summary by @TomNicholas in https://github.com/pydata/xarray/pull/9678
New Contributors
- @VeckoTheGecko made their first contribution in https://github.com/pydata/xarray/pull/9525
- @martey made their first contribution in https://github.com/pydata/xarray/pull/9549
- @carschandler made their first contribution in https://github.com/pydata/xarray/pull/9551
- @Karl-Krauth made their first contribution in https://github.com/pydata/xarray/pull/9369
- @Sibgatulin made their first contribution in https://github.com/pydata/xarray/pull/9625
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
- post-release cleanup by @keewis in https://github.com/pydata/xarray/pull/9290
- Fix
DataTree.from_dict
to be insensitive to insertion order by @TomNicholas in https://github.com/pydata/xarray/pull/9292 - Increased verbosity for Value Error raised if backend not installed by @jbusecke in https://github.com/pydata/xarray/pull/9294
- DOC: Add note to docs on DataTree root-group naming conventions by @kmuehlbauer in https://github.com/pydata/xarray/pull/9298
- DOC: fix minimum dependency versions in getting started guide by @kmuehlbauer in https://github.com/pydata/xarray/pull/9306
- Add grib2io to ecosystem.rst by @TimothyCera-NOAA in https://github.com/pydata/xarray/pull/9304
- added kerchunk as backend documentation by @Anu-Ra-g in https://github.com/pydata/xarray/pull/9163
- cftime: Fix resampling when time contains
0001-01-01
by @dcherian in https://github.com/pydata/xarray/pull/9116 - Add missing spacing in documentation by @domdent in https://github.com/pydata/xarray/pull/9318
- Use assert_duckarray_allclose instead of rounding the array by @Illviljan in https://github.com/pydata/xarray/pull/9313
- Fix some dask tests by @dcherian in https://github.com/pydata/xarray/pull/9321
- Verbose error handling for non-valid duckarrays by @Illviljan in https://github.com/pydata/xarray/pull/9314
- Fix pirate arrgragation by @clausmichele in https://github.com/pydata/xarray/pull/9328
- Remove ignores due to pandas-stubs by @Illviljan in https://github.com/pydata/xarray/pull/9329
- Use duck array ops for
around
andround
by @tomwhite in https://github.com/pydata/xarray/pull/9326 - fix: github workflow vulnerable to script injection by @diogoteles08 in https://github.com/pydata/xarray/pull/9331
- xfail np.cross tests; force numpy>=2 in main CI by @dcherian in https://github.com/pydata/xarray/pull/9356
- try to fix scheduled hypothesis test by @dcherian in https://github.com/pydata/xarray/pull/9358
- Revise by @Tao-VanJS in https://github.com/pydata/xarray/pull/9357
- drop support for
python=3.9
by @keewis in https://github.com/pydata/xarray/pull/8937 - whats-new entry for dropping python 3.9 by @keewis in https://github.com/pydata/xarray/pull/9359
- Fix rechunking to a frequency with empty bins. by @dcherian in https://github.com/pydata/xarray/pull/9364
- Revise by @Tao-VanJS in https://github.com/pydata/xarray/pull/9366
- Adding open_groups to BackendEntryPointEngine, NetCDF4BackendEntrypoint, and H5netcdfBackendEntrypoint by @eni-awowale in https://github.com/pydata/xarray/pull/9243
- Remove duplicate word from docs by @JackKelly in https://github.com/pydata/xarray/pull/9367
- Revise by @Tao-VanJS in https://github.com/pydata/xarray/pull/9371
- Make chunk manager an option in
set_options
by @tomwhite in https://github.com/pydata/xarray/pull/9362 - Add flaky to TestNetCDF4ViaDaskData by @Illviljan in https://github.com/pydata/xarray/pull/9373
- Improve error message for missing coordinate index by @nicrie in https://github.com/pydata/xarray/pull/9370
- Improve error message on
ds['x', 'y']
by @max-sixty in https://github.com/pydata/xarray/pull/9375 - Fix tests on big-endian systems by @QuLogic in https://github.com/pydata/xarray/pull/9380
- passing missing parameters to ZarrStore.open_store when opening a datatree by @aladinor in https://github.com/pydata/xarray/pull/9377
- Combine
UnsignedIntegerCoder
andCFMaskCoder
by @djhoese in https://github.com/pydata/xarray/pull/9274 - refactor GroupBy internals by @dcherian in https://github.com/pydata/xarray/pull/9389
- Extend padding functionalities by @tsanona in https://github.com/pydata/xarray/pull/9353
- pyarrow dependency added to doc environment by @hollymandel in https://github.com/pydata/xarray/pull/9394
numpy 2
compatibility in thepydap
backend by @Mikejmnez in https://github.com/pydata/xarray/pull/9391- Adds copy parameter to array for numpy 2.0 by @andrew-s28 in https://github.com/pydata/xarray/pull/9393
- Encode/decode property tests use variables() by @dcherian in https://github.com/pydata/xarray/pull/9401
- GroupBy(multiple groupers) by @dcherian in https://github.com/pydata/xarray/pull/9372
- Use
python-build
instead ofbuild
in benchmark workflow by @philipc2 in https://github.com/pydata/xarray/pull/9406 - fix the failing
pre-commit.ci
runs by @keewis in https://github.com/pydata/xarray/pull/9411 - [skip-ci] Speed up docs build by limiting toctrees by @dcherian in https://github.com/pydata/xarray/pull/9395
- Accessibility: Add keyboard handling for XArray HTML view by @srijan55 in https://github.com/pydata/xarray/pull/9412
- Don't specify a subdir in mypy CI cli by @max-sixty in https://github.com/pydata/xarray/pull/9416
- Upgrade mypy to 1.11 by @max-sixty in https://github.com/pydata/xarray/pull/9417
- Use EllipsisType by @max-sixty in https://github.com/pydata/xarray/pull/9418
- Byte attr support by @hollymandel in https://github.com/pydata/xarray/pull/9407
- copy the data of the
DatetimeIndex
in theDataset.chunk
-by-frequency tests by @keewis in https://github.com/pydata/xarray/pull/9419 - Don't return IndexVariable with .dt accessor by @dcherian in https://github.com/pydata/xarray/pull/9415
- GroupBy(multiple strings) by @dcherian in https://github.com/pydata/xarray/pull/9414
- Avoid deep-copy when constructing groupby codes by @dcherian in https://github.com/pydata/xarray/pull/9429
- Always include at least one category in random test data by @shoyer in https://github.com/pydata/xarray/pull/9436
- Bump minimum versions for dependencies by @dcherian in https://github.com/pydata/xarray/pull/9434
- Shallow copy parent and children in DataTree constructor by @TomNicholas in https://github.com/pydata/xarray/pull/9297
- Support additional dtypes in
resample
by @oliverhiggs in https://github.com/pydata/xarray/pull/9413 - Disallow passing a DataArray as data into the DataTree constructor by @shoyer in https://github.com/pydata/xarray/pull/9444
- DataTree should not be "Generic" by @shoyer in https://github.com/pydata/xarray/pull/9445
- Fix typos across the code, doc and comments by @Armavica in https://github.com/pydata/xarray/pull/9443
- Make the first argument in DataTree.from_dict positional only by @shoyer in https://github.com/pydata/xarray/pull/9446
- Add ASV for datatree.from_dict by @Illviljan in https://github.com/pydata/xarray/pull/9459
- Implement
DataTree.__delitem__
by @TomNicholas in https://github.com/pydata/xarray/pull/9453 - Fix inheritance in DataTree.copy() by @shoyer in https://github.com/pydata/xarray/pull/9457
- Remove parent argument from DataTree.init by @TomNicholas in https://github.com/pydata/xarray/pull/9465
- Add days_in_year and decimal_year to dt accessor by @aulemahal in https://github.com/pydata/xarray/pull/9105
- Repo checker by @Armavica in https://github.com/pydata/xarray/pull/9450
- Update DataTree repr to indicate inheritance by @shoyer in https://github.com/pydata/xarray/pull/9470
- Rename DataTree's "ds" and "data" to "dataset" by @shoyer in https://github.com/pydata/xarray/pull/9476
- Fix
DataTree.coords.__setitem__
by addingDataTreeCoordinates
class by @TomNicholas in https://github.com/pydata/xarray/pull/9451 - Release notes for v2024.09.0 by @owenlittlejohns in https://github.com/pydata/xarray/pull/9480
New Contributors
- @TimothyCera-NOAA made their first contribution in https://github.com/pydata/xarray/pull/9304
- @Anu-Ra-g made their first contribution in https://github.com/pydata/xarray/pull/9163
- @domdent made their first contribution in https://github.com/pydata/xarray/pull/9318
- @diogoteles08 made their first contribution in https://github.com/pydata/xarray/pull/9331
- @Tao-VanJS made their first contribution in https://github.com/pydata/xarray/pull/9357
- @JackKelly made their first contribution in https://github.com/pydata/xarray/pull/9367
- @tsanona made their first contribution in https://github.com/pydata/xarray/pull/9353
- @hollymandel made their first contribution in https://github.com/pydata/xarray/pull/9394
- @Mikejmnez made their first contribution in https://github.com/pydata/xarray/pull/9391
- @andrew-s28 made their first contribution in https://github.com/pydata/xarray/pull/9393
- @philipc2 made their first contribution in https://github.com/pydata/xarray/pull/9406
- @srijan55 made their first contribution in https://github.com/pydata/xarray/pull/9412
- @oliverhiggs made their first contribution in https://github.com/pydata/xarray/pull/9413
- @Armavica made their first contribution in https://github.com/pydata/xarray/pull/9443
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 whats-new section by @keewis in https://github.com/pydata/xarray/pull/9115
- Move Sphinx directives out of
See also
by @max-sixty in https://github.com/pydata/xarray/pull/8466 - Add test for rechunking to a size string by @dcherian in https://github.com/pydata/xarray/pull/9117
- Update docstring in api.py for open_mfdataset(), clarifying "chunks" argument by @arthur-e in https://github.com/pydata/xarray/pull/9121
- Grouper refactor by @dcherian in https://github.com/pydata/xarray/pull/9122
- adjust repr tests to account for different platforms (#9127) by @mgorny in https://github.com/pydata/xarray/pull/9128
- Support duplicate dimensions in
.chunk
by @mraspaud in https://github.com/pydata/xarray/pull/9099 - Update zendoo badge link by @max-sixty in https://github.com/pydata/xarray/pull/9133
- Split out distributed writes in zarr docs by @max-sixty in https://github.com/pydata/xarray/pull/9132
- Improve
to_zarr
docs by @max-sixty in https://github.com/pydata/xarray/pull/9139 - groupby: remove some internal use of IndexVariable by @dcherian in https://github.com/pydata/xarray/pull/9123
- Improve zarr chunks docs by @max-sixty in https://github.com/pydata/xarray/pull/9140
- Include numbagg in type checks by @max-sixty in https://github.com/pydata/xarray/pull/9159
- Remove mypy exclusions for a couple more libraries by @max-sixty in https://github.com/pydata/xarray/pull/9160
- Add test for #9155 by @max-sixty in https://github.com/pydata/xarray/pull/9161
- Docs: Add figure for navigating help resources by @JessicaS11 in https://github.com/pydata/xarray/pull/9147
- switch to datetime unit
"D"
by @keewis in https://github.com/pydata/xarray/pull/9170 - Slightly improve DataTree repr by @shoyer in https://github.com/pydata/xarray/pull/9064
- Fix example code formatting for CachingFileManager by @djhoese in https://github.com/pydata/xarray/pull/9178
- Change np.core.defchararray to np.char (#9165) by @pont-us in https://github.com/pydata/xarray/pull/9166
- temporarily pin
numpy<2
by @keewis in https://github.com/pydata/xarray/pull/9181 - temporarily remove
pydap
from CI by @keewis in https://github.com/pydata/xarray/pull/9183 - also pin
numpy
in the all-but-dask CI by @keewis in https://github.com/pydata/xarray/pull/9184 - promote floating-point numeric datetimes to 64-bit before decoding by @keewis in https://github.com/pydata/xarray/pull/9182
"source"
encoding for datasets opened fromfsspec
objects by @keewis in https://github.com/pydata/xarray/pull/8923- properly diff objects with arrays as attributes on variables by @keewis in https://github.com/pydata/xarray/pull/9169
- Allow str in static typing of reindex, ffill etc. by @headtr1ck in https://github.com/pydata/xarray/pull/9194
- Fix dark-theme in
html[data-theme=dark]
-tags by @prisae in https://github.com/pydata/xarray/pull/9200 - Add open_datatree benchmark by @aladinor in https://github.com/pydata/xarray/pull/9158
- use a
composite
strategy to generate the dataframe with a tz-aware datetime column by @keewis in https://github.com/pydata/xarray/pull/9174 - Hierarchical coordinates in DataTree by @shoyer in https://github.com/pydata/xarray/pull/9063
- avoid converting custom indexes to pandas indexes when formatting coordinate diffs by @keewis in https://github.com/pydata/xarray/pull/9157
- Fix reductions for
np.complex_
dtypes with numbagg by @max-sixty in https://github.com/pydata/xarray/pull/9210 - Consolidate some numbagg tests by @max-sixty in https://github.com/pydata/xarray/pull/9211
- Use numpy 2.0-compat
np.complex64
dtype in test by @max-sixty in https://github.com/pydata/xarray/pull/9217 - Fix two bugs in DataTree.update() by @shoyer in https://github.com/pydata/xarray/pull/9214
- Only use necessary dims when creating temporary dataarray by @Illviljan in https://github.com/pydata/xarray/pull/9206
- Cleanup test_coding_times.py by @Illviljan in https://github.com/pydata/xarray/pull/9223
- Use reshape and ravel from duck_array_ops in coding/times.py by @Illviljan in https://github.com/pydata/xarray/pull/9225
- Use duckarray assertions in test_coding_times by @Illviljan in https://github.com/pydata/xarray/pull/9226
- Fix time indexing regression in
convert_calendar
by @hmaarrfk in https://github.com/pydata/xarray/pull/9192 numpy
2 compatibility in thenetcdf4
andh5netcdf
backends by @keewis in https://github.com/pydata/xarray/pull/9136numpy
2 compatibility in the iris code paths by @keewis in https://github.com/pydata/xarray/pull/9156- switch the documentation to run with
numpy>=2
by @keewis in https://github.com/pydata/xarray/pull/9177 - exclude the bots from the release notes by @keewis in https://github.com/pydata/xarray/pull/9235
- Add a
.drop_attrs
method by @max-sixty in https://github.com/pydata/xarray/pull/8258 - Allow mypy to run in vscode by @max-sixty in https://github.com/pydata/xarray/pull/9239
- Fix typing for test_plot.py by @Illviljan in https://github.com/pydata/xarray/pull/9234
- Added a space to the documentation by @ChrisCleaner in https://github.com/pydata/xarray/pull/9247
- Per-variable specification of boolean parameters in open_dataset by @Ostheer in https://github.com/pydata/xarray/pull/9218
- Enable pandas type checking by @headtr1ck in https://github.com/pydata/xarray/pull/9213
- fix typing of fallback isdtype method by @headtr1ck in https://github.com/pydata/xarray/pull/9250
- Fix mypy on main by @max-sixty in https://github.com/pydata/xarray/pull/9252
- Grouper, Resampler as public api by @dcherian in https://github.com/pydata/xarray/pull/8840
- Update dropna docstring by @TomNicholas in https://github.com/pydata/xarray/pull/9257
- Delete
base
andloffset
parameters to resample by @dcherian in https://github.com/pydata/xarray/pull/9233 - groupby, resample: Deprecate some positional args by @dcherian in https://github.com/pydata/xarray/pull/9236
- Add
encode_cf_datetime
benchmark by @spencerkclark in https://github.com/pydata/xarray/pull/9262 - Update signature for _arrayfunction.array by @Illviljan in https://github.com/pydata/xarray/pull/9237
- Fix copybutton for multi line examples in double digit ipython cells by @mosc9575 in https://github.com/pydata/xarray/pull/9264
- add backend intro and how-to diagram by @JessicaS11 in https://github.com/pydata/xarray/pull/9175
- Restore ability to specify _FillValue as Python native integers by @djhoese in https://github.com/pydata/xarray/pull/9258
- Adding
open_datatree
backend-specific keyword arguments by @aladinor in https://github.com/pydata/xarray/pull/9199 - Change .groupby fastpath to work for monotonic increasing and decreasing by @JoelJaeschke in https://github.com/pydata/xarray/pull/7427
- Fully deprecate squeeze kwarg to groupby by @dcherian in https://github.com/pydata/xarray/pull/9280
- Support rechunking to a frequency. by @dcherian in https://github.com/pydata/xarray/pull/9109
- automate extracting the contributors by @keewis in https://github.com/pydata/xarray/pull/9288
- Allow importing from xarray.groupers by @dcherian in https://github.com/pydata/xarray/pull/9289
- release notes for 2024.07.0 by @keewis in https://github.com/pydata/xarray/pull/9287
New Contributors
- @arthur-e made their first contribution in https://github.com/pydata/xarray/pull/9121
- @pont-us made their first contribution in https://github.com/pydata/xarray/pull/9166
- @prisae made their first contribution in https://github.com/pydata/xarray/pull/9200
- @ChrisCleaner made their first contribution in https://github.com/pydata/xarray/pull/9247
- @Ostheer made their first contribution in https://github.com/pydata/xarray/pull/9218
- @mosc9575 made their first contribution in https://github.com/pydata/xarray/pull/9264
- @JoelJaeschke made their first contribution in https://github.com/pydata/xarray/pull/7427
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
- attempt to get colour output in CI by @keewis in https://github.com/pydata/xarray/pull/9031
- [skip-ci] min_deps_check: show age of required pkg on error by @mathause in https://github.com/pydata/xarray/pull/9025
- TEST: Fix numbagg or bottlekneck skip by @hmaarrfk in https://github.com/pydata/xarray/pull/9034
- Use ME in test_plot instead of M by @hmaarrfk in https://github.com/pydata/xarray/pull/9035
- Bump codecov/codecov-action from 4.3.1 to 4.4.0 in the actions group by @dependabot in https://github.com/pydata/xarray/pull/9036
- (fix): equality check against singleton
PandasExtensionArray
by @ilan-gold in https://github.com/pydata/xarray/pull/9032 - array api-related upstream-dev failures by @keewis in https://github.com/pydata/xarray/pull/8854
- Bump codecov/codecov-action from 4.4.0 to 4.4.1 in the actions group by @dependabot in https://github.com/pydata/xarray/pull/9047
- User-guide - pandas : Add alternative to xarray.Dataset.from_dataframe by @loco-philippe in https://github.com/pydata/xarray/pull/9020
- pin nightly
zarr
to v2 by @keewis in https://github.com/pydata/xarray/pull/9050 - Clarify matmul does xarray.dot by @mthramann in https://github.com/pydata/xarray/pull/9060
- Run tests on changes to root dotfiles by @max-sixty in https://github.com/pydata/xarray/pull/9062
- Speed up netCDF4, h5netcdf backends by @dcherian in https://github.com/pydata/xarray/pull/9067
- Remove empty code cell in examples/multidimensional-coords.ipynb by @kmuehlbauer in https://github.com/pydata/xarray/pull/9071
- citation / orcid by @keewis in https://github.com/pydata/xarray/pull/9082
- Always run code tests by @dcherian in https://github.com/pydata/xarray/pull/9083
- fixes for the
pint
tests by @keewis in https://github.com/pydata/xarray/pull/8983 - [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/pydata/xarray/pull/9061
- Address latest pandas-related upstream test failures by @spencerkclark in https://github.com/pydata/xarray/pull/9081
- Add scottyhq to CITATION.cff by @scottyhq in https://github.com/pydata/xarray/pull/9089
- Fix Typo in Bfill benchmark by @Ockenfuss in https://github.com/pydata/xarray/pull/9087
- add link to CF conventions on packed data in doc/user-guide/io.rst by @kmuehlbauer in https://github.com/pydata/xarray/pull/9045
- add order for polynomial interpolation, fixes #8762 by @nkarasiak in https://github.com/pydata/xarray/pull/9079
- Fix upcasting with python builtin numbers and numpy 2 by @djhoese in https://github.com/pydata/xarray/pull/8946
- Add Eni to CITATION.cff by @eni-awowale in https://github.com/pydata/xarray/pull/9095
- add Jessica to citation by @JessicaS11 in https://github.com/pydata/xarray/pull/9096
- (fix): don't handle time-dtypes as extension arrays in
from_dataframe
by @ilan-gold in https://github.com/pydata/xarray/pull/9042 - Micro optimizations to improve indexing by @hmaarrfk in https://github.com/pydata/xarray/pull/9002
- DAS-2067 - Migrate datatree io.py and common.py by @owenlittlejohns in https://github.com/pydata/xarray/pull/9011
- open_datatree performance improvement on NetCDF, H5, and Zarr files by @aladinor in https://github.com/pydata/xarray/pull/9014
- [skip-ci] Fix skip-ci for hypothesis by @dcherian in https://github.com/pydata/xarray/pull/9102
- Adds Matt Savoie to CITATION.cff by @flamingbear in https://github.com/pydata/xarray/pull/9103
- skip the
pandas
datetime roundtrip test withpandas=3.0
by @keewis in https://github.com/pydata/xarray/pull/9104 - Add user survey announcement to docs by @jhamman in https://github.com/pydata/xarray/pull/9101
- add remaining core-dev citations by @keewis in https://github.com/pydata/xarray/pull/9110
- Undo custom padding-top. by @dcherian in https://github.com/pydata/xarray/pull/9107
- [skip-ci] Try fixing hypothesis CI trigger by @dcherian in https://github.com/pydata/xarray/pull/9112
- release notes for 2024.06.0 by @keewis in https://github.com/pydata/xarray/pull/9092
- release v2024.06.0 by @keewis in https://github.com/pydata/xarray/pull/9113
New Contributors
- @loco-philippe made their first contribution in https://github.com/pydata/xarray/pull/9020
- @mthramann made their first contribution in https://github.com/pydata/xarray/pull/9060
- @nkarasiak made their first contribution in https://github.com/pydata/xarray/pull/9079
- @aladinor made their first contribution in https://github.com/pydata/xarray/pull/9014
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
- Update reference to 'Weighted quantile estimators' by @AndreyAkinshin in https://github.com/pydata/xarray/pull/8898
- New empty whatsnew entry by @TomNicholas in https://github.com/pydata/xarray/pull/8899
- Bump the actions group with 1 update by @dependabot in https://github.com/pydata/xarray/pull/8896
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/pydata/xarray/pull/8900
- Update docstring for compute and persist by @saschahofmann in https://github.com/pydata/xarray/pull/8903
- Stateful tests with Dataset by @dcherian in https://github.com/pydata/xarray/pull/8658
- Trigger hypothesis stateful tests nightly by @dcherian in https://github.com/pydata/xarray/pull/8907
- Don't access data when creating DataArray from Variable. by @dcherian in https://github.com/pydata/xarray/pull/8754
- Add typing to test_plot.py by @Illviljan in https://github.com/pydata/xarray/pull/8889
- Update hypothesis action to always save the cache by @dcherian in https://github.com/pydata/xarray/pull/8913
- Bump codecov/codecov-action from 4.1.1 to 4.2.0 in the actions group by @dependabot in https://github.com/pydata/xarray/pull/8918
- Add typing to some functions in indexing.py by @Illviljan in https://github.com/pydata/xarray/pull/8922
- Enhance the ugly error in constructor when no data passed by @aimtsou in https://github.com/pydata/xarray/pull/8920
- Migrate iterators.py for datatree. by @owenlittlejohns in https://github.com/pydata/xarray/pull/8879
- MAINT: use sphinxext-rediraffe conda install by @raybellwaves in https://github.com/pydata/xarray/pull/8936
- use
pd.to_timedelta
instead ofTimedeltaIndex
by @keewis in https://github.com/pydata/xarray/pull/8938 - adapt more tests to the copy-on-write behavior of pandas by @keewis in https://github.com/pydata/xarray/pull/8940
- Correct save_mfdataset docstring by @TomNicholas in https://github.com/pydata/xarray/pull/8934
- Bump codecov/codecov-action from 4.2.0 to 4.3.0 in the actions group by @dependabot in https://github.com/pydata/xarray/pull/8943
- Convert 360_day calendars by choosing random dates to drop or add by @aulemahal in https://github.com/pydata/xarray/pull/8603
- Add mypy to dev dependencies by @max-sixty in https://github.com/pydata/xarray/pull/8947
- Migrate datatree mapping.py by @owenlittlejohns in https://github.com/pydata/xarray/pull/8948
- (feat): Support for
pandas
ExtensionArray
by @ilan-gold in https://github.com/pydata/xarray/pull/8723 - Migrate formatting_html.py into xarray core by @eni-awowale in https://github.com/pydata/xarray/pull/8930
- use
nan
instead ofNaN
by @keewis in https://github.com/pydata/xarray/pull/8961 - stop pruning datatree_ directory from distribution by @flamingbear in https://github.com/pydata/xarray/pull/8953
- Delete pynio backend. by @dcherian in https://github.com/pydata/xarray/pull/8971
- Migrate datatreee assertions/extensions/formatting by @owenlittlejohns in https://github.com/pydata/xarray/pull/8967
- Bump dependencies incl
pandas>=2
by @dcherian in https://github.com/pydata/xarray/pull/8968 - Option to not auto-create index during expand_dims by @TomNicholas in https://github.com/pydata/xarray/pull/8960
- Raise errors on new warnings from within xarray by @max-sixty in https://github.com/pydata/xarray/pull/8974
- more engine environment tricks in preparation for
numpy>=2
by @keewis in https://github.com/pydata/xarray/pull/8978 - CI: python 3.12 by default. by @dcherian in https://github.com/pydata/xarray/pull/8969
- Switch all methods to
dim
by @max-sixty in https://github.com/pydata/xarray/pull/8982 - Docstring and documentation improvement for the Dataset class by @noahbenson in https://github.com/pydata/xarray/pull/8973
- Add notes on when to add ignores to warnings by @max-sixty in https://github.com/pydata/xarray/pull/8987
- Remove
.drop
warning allow by @max-sixty in https://github.com/pydata/xarray/pull/8988 - Skip flaky
test_open_mfdataset_manyfiles
test by @max-sixty in https://github.com/pydata/xarray/pull/8989 - clean up the upstream-dev setup script by @keewis in https://github.com/pydata/xarray/pull/8986
- avoid a couple of warnings in
polyfit
by @keewis in https://github.com/pydata/xarray/pull/8939 - Migration of datatree/ops.py -> datatree_ops.py by @flamingbear in https://github.com/pydata/xarray/pull/8976
- Mark
test_use_cftime_false_standard_calendar_in_range
as an expected failure by @spencerkclark in https://github.com/pydata/xarray/pull/8996 - call
np.cross
with 3D vectors only by @keewis in https://github.com/pydata/xarray/pull/8993 - Fix syntax error in test related to cupy by @hmaarrfk in https://github.com/pydata/xarray/pull/9000
- Add argument check_dims to assert_allclose to allow transposed inputs (#5733) by @ignamv in https://github.com/pydata/xarray/pull/8991
- Faster fastpath by @hmaarrfk in https://github.com/pydata/xarray/pull/9001
- Speed up localize by @Illviljan in https://github.com/pydata/xarray/pull/8536
- Bump codecov/codecov-action from 4.3.0 to 4.3.1 in the actions group by @dependabot in https://github.com/pydata/xarray/pull/9004
- Port negative frequency fix for
pandas.date_range
tocftime_range
by @spencerkclark in https://github.com/pydata/xarray/pull/8999 - Fix for ruff 0.4.3 by @max-sixty in https://github.com/pydata/xarray/pull/9007
- Trigger CI only if code files are modified. by @dcherian in https://github.com/pydata/xarray/pull/9006
- Zarr: Optimize
region="auto"
detection by @dcherian in https://github.com/pydata/xarray/pull/8997 - Add a benchmark to monitor performance for large dataset indexing by @hmaarrfk in https://github.com/pydata/xarray/pull/9012
- Avoid extra read from disk when creating Pandas Index. by @dcherian in https://github.com/pydata/xarray/pull/8893
- Fix benchmark CI by @dcherian in https://github.com/pydata/xarray/pull/9013
- Avoid auto creation of indexes in concat by @TomNicholas in https://github.com/pydata/xarray/pull/8872
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/pydata/xarray/pull/9005
- Zarr: Optimize appending by @dcherian in https://github.com/pydata/xarray/pull/8998
- Add whatsnew entry for #8974 by @max-sixty in https://github.com/pydata/xarray/pull/9022
- Release summary for v2024.05.0 by @TomNicholas in https://github.com/pydata/xarray/pull/9021
New Contributors
- @AndreyAkinshin made their first contribution in https://github.com/pydata/xarray/pull/8898
- @aimtsou made their first contribution in https://github.com/pydata/xarray/pull/8920
- @ilan-gold made their first contribution in https://github.com/pydata/xarray/pull/8723
- @eni-awowale made their first contribution in https://github.com/pydata/xarray/pull/8930
- @noahbenson made their first contribution in https://github.com/pydata/xarray/pull/8973
- @ignamv made their first contribution in https://github.com/pydata/xarray/pull/8991
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 whats-new section by @keewis in https://github.com/pydata/xarray/pull/8767
- [skip-ci] NamedArray: Add lazy indexing array refactoring plan by @dcherian in https://github.com/pydata/xarray/pull/8775
- refactor
indexing.py
: introduce.oindex
for Explicitly Indexed Arrays by @andersy005 in https://github.com/pydata/xarray/pull/8750 - Fixing issue #8770: Improved frequency parameter logic to set it to 'D' only if periods, start, or end are None. by @rjavierch in https://github.com/pydata/xarray/pull/8774
- Bump the actions group with 2 updates by @dependabot in https://github.com/pydata/xarray/pull/8785
- introduce
.vindex
property for Explicitly Indexed Arrays by @andersy005 in https://github.com/pydata/xarray/pull/8780 - Migrate treenode module. by @flamingbear in https://github.com/pydata/xarray/pull/8757
- Fix non-nanosecond casting behavior for
expand_dims
by @spencerkclark in https://github.com/pydata/xarray/pull/8782 - fix: remove Coordinate from all in xarray/init.py by @hassec in https://github.com/pydata/xarray/pull/8791
- tokenize() should ignore difference between None and {} attrs by @crusaderky in https://github.com/pydata/xarray/pull/8797
- Bump the actions group with 2 updates by @dependabot in https://github.com/pydata/xarray/pull/8804
- Grouper object design doc by @dcherian in https://github.com/pydata/xarray/pull/8510
- Refactor Grouper objects by @dcherian in https://github.com/pydata/xarray/pull/8776
- DOC: link to zarr.convenience.consolidate_metadata by @raybellwaves in https://github.com/pydata/xarray/pull/8816
- Update documentation for clarity by @staadecker in https://github.com/pydata/xarray/pull/8817
- Bump the actions group with 1 update by @dependabot in https://github.com/pydata/xarray/pull/8818
- try to get the
upstream-dev
CI to complete again by @keewis in https://github.com/pydata/xarray/pull/8823 - Do not attempt to broadcast when global option
arithmetic_broadcast=False
by @etienneschalk in https://github.com/pydata/xarray/pull/8784 - Make list_chunkmanagers more resilient to broken entrypoints by @hmaarrfk in https://github.com/pydata/xarray/pull/8736
- Add
dask-expr
to environment-3.12.yml by @dcherian in https://github.com/pydata/xarray/pull/8827 - [skip-ci] Add dask-expr dependency to doc.yml by @andersy005 in https://github.com/pydata/xarray/pull/8835
- Add dask-expr for windows envs by @dcherian in https://github.com/pydata/xarray/pull/8837
- [skip-ci] Fix upstream-dev env by @dcherian in https://github.com/pydata/xarray/pull/8839
- Return a dataclass from Grouper.factorize by @dcherian in https://github.com/pydata/xarray/pull/8777
- Expand use of
.oindex
and.vindex
by @andersy005 in https://github.com/pydata/xarray/pull/8790 - correctly encode/decode _FillValues/missing_values/dtypes for packed data by @kmuehlbauer in https://github.com/pydata/xarray/pull/8713
- Support pandas copy-on-write behaviour by @dcherian in https://github.com/pydata/xarray/pull/8846
- Implement setitem syntax for
.oindex
and.vindex
properties by @andersy005 in https://github.com/pydata/xarray/pull/8845 - FIX: do not cast _FillValue/missing_value in CFMaskCoder if _Unsigned is provided by @kmuehlbauer in https://github.com/pydata/xarray/pull/8852
- FIX: adapt handling of copy keyword argument in scipy backend for numpy >= 2.0dev by @kmuehlbauer in https://github.com/pydata/xarray/pull/8851
- pandas 3 MultiIndex fixes by @dcherian in https://github.com/pydata/xarray/pull/8847
- increase typing annotations coverage in
xarray/core/indexing.py
by @andersy005 in https://github.com/pydata/xarray/pull/8857 - upstream-dev CI: Fix interp and cumtrapz by @dcherian in https://github.com/pydata/xarray/pull/8861
- numpy 2.0 copy-keyword and trapz vs trapezoid by @kmuehlbauer in https://github.com/pydata/xarray/pull/8865
- Handle .oindex and .vindex for the PandasMultiIndexingAdapter and PandasIndexingAdapter by @andersy005 in https://github.com/pydata/xarray/pull/8869
- Update docs on view / copies by @ks905383 in https://github.com/pydata/xarray/pull/8744
- Opt out of auto creating index variables by @TomNicholas in https://github.com/pydata/xarray/pull/8711
- groupby: Dispatch quantile to flox. by @dcherian in https://github.com/pydata/xarray/pull/8720
- warn and return bytes undecoded in case of UnicodeDecodeError in h5netcdf-backend by @kmuehlbauer in https://github.com/pydata/xarray/pull/8874
- Migrate datatree.py module into xarray.core. by @owenlittlejohns in https://github.com/pydata/xarray/pull/8789
- Don't allow overwriting indexes with region writes by @dcherian in https://github.com/pydata/xarray/pull/8877
- Allow multidimensional variable with same name as dim when constructing dataset via coords by @TomNicholas in https://github.com/pydata/xarray/pull/8886
- Optimize writes to existing Zarr stores. by @dcherian in https://github.com/pydata/xarray/pull/8875
- Add dt.date to plottable types by @saschahofmann in https://github.com/pydata/xarray/pull/8873
- Check for aligned chunks when writing to existing variables by @max-sixty in https://github.com/pydata/xarray/pull/8459
- Avoid in-place multiplication of a large value to an array with small integer dtype by @Illviljan in https://github.com/pydata/xarray/pull/8867
- Add typing to test_groupby.py by @Illviljan in https://github.com/pydata/xarray/pull/8890
- 2024.03.0: Add whats-new by @dcherian in https://github.com/pydata/xarray/pull/8891
New Contributors
- @rjavierch made their first contribution in https://github.com/pydata/xarray/pull/8774
- @hassec made their first contribution in https://github.com/pydata/xarray/pull/8791
- @staadecker made their first contribution in https://github.com/pydata/xarray/pull/8817
- @ks905383 made their first contribution in https://github.com/pydata/xarray/pull/8744
- @owenlittlejohns made their first contribution in https://github.com/pydata/xarray/pull/8789
- @saschahofmann made their first contribution in https://github.com/pydata/xarray/pull/8873
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
- Re-enable mypy checks for parse_dims unit tests by @crusaderky in https://github.com/pydata/xarray/pull/8618
- import from the new location of
normalize_axis_index
if possible by @keewis in https://github.com/pydata/xarray/pull/8483 - Update min deps in docs by @jhamman in https://github.com/pydata/xarray/pull/8622
- Fix GH212, PP308 by @tqa236 in https://github.com/pydata/xarray/pull/8621
- Partially fix doctests by @max-sixty in https://github.com/pydata/xarray/pull/8631
- Fix building doc following depreciation in Pandas 2.2.0 by @nameloCmaS in https://github.com/pydata/xarray/pull/8633
- Workaround broken test from pyarrow by @max-sixty in https://github.com/pydata/xarray/pull/8634
- xfail pyarrow test by @max-sixty in https://github.com/pydata/xarray/pull/8635
- Don't show stdlib paths for
user_level_warnings
by @max-sixty in https://github.com/pydata/xarray/pull/8625 - xfail another dask/pyarrow test by @max-sixty in https://github.com/pydata/xarray/pull/8636
- xfail a cftime test by @max-sixty in https://github.com/pydata/xarray/pull/8637
- Silence deprecation warning from
.dims
in tests by @max-sixty in https://github.com/pydata/xarray/pull/8639 - Use
T_DataArray
inWeighted
by @max-sixty in https://github.com/pydata/xarray/pull/8630 - rename "Y" freq string to "YE" (pandas parity) by @mathause in https://github.com/pydata/xarray/pull/8629
- Pandas 2.2.0 test fixes by @nameloCmaS in https://github.com/pydata/xarray/pull/8638
- xfail zarr test on Windows by @max-sixty in https://github.com/pydata/xarray/pull/8643
- Use ddof in
numbagg>=0.7.0
for aggregations by @max-sixty in https://github.com/pydata/xarray/pull/8624 - infer_freq: return 'YE' (#8629 follow-up) by @mathause in https://github.com/pydata/xarray/pull/8642
- Pin sphinx-book-theme to 1.0.1 to try to deal with #8619 by @TomNicholas in https://github.com/pydata/xarray/pull/8632
- Fixed typo in custom backend registration documentation by @HertugHelms in https://github.com/pydata/xarray/pull/8645
- implement
isnull
usingfull_like
instead ofzeros_like
by @keewis in https://github.com/pydata/xarray/pull/7395
New Contributors
- @nameloCmaS made their first contribution in https://github.com/pydata/xarray/pull/8633
- @HertugHelms made their first contribution in https://github.com/pydata/xarray/pull/8645
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
- [skip-ci] dev whats-new by @dcherian in https://github.com/pydata/xarray/pull/8467
- Consolidate
_get_alpha
func by @max-sixty in https://github.com/pydata/xarray/pull/8465 - Fix
map_blocks
docs' formatting by @max-sixty in https://github.com/pydata/xarray/pull/8464 - Use concise date format when plotting by @Illviljan in https://github.com/pydata/xarray/pull/8449
- Fix mypy tests by @max-sixty in https://github.com/pydata/xarray/pull/8476
- Allow
rank
to run on dask arrays by @max-sixty in https://github.com/pydata/xarray/pull/8475 - Add whatsnew for #8475 by @max-sixty in https://github.com/pydata/xarray/pull/8478
- Improve "variable not found" error message by @max-sixty in https://github.com/pydata/xarray/pull/8474
- Fix bug for categorical pandas index with categories with EA dtype by @phofl in https://github.com/pydata/xarray/pull/8481
- Use numbagg for
ffill
by default by @max-sixty in https://github.com/pydata/xarray/pull/8389 - Refine rolling_exp error messages by @max-sixty in https://github.com/pydata/xarray/pull/8485
- Fix Zarr region transpose by @max-sixty in https://github.com/pydata/xarray/pull/8484
- Reduce redundancy between namedarray and variable tests by @maxrjones in https://github.com/pydata/xarray/pull/8405
- Start renaming
dims
todim
by @max-sixty in https://github.com/pydata/xarray/pull/8487 - Raise an informative error message when object array has mixed types by @andersy005 in https://github.com/pydata/xarray/pull/4700
- Update resample time offset FutureWarning and docs by @douglatornell in https://github.com/pydata/xarray/pull/8479
- Fix minor typo in io.rst by @maresb in https://github.com/pydata/xarray/pull/8492
- Warn on repeated dimension names during construction by @TomNicholas in https://github.com/pydata/xarray/pull/8491
- Minor to_zarr optimizations by @dcherian in https://github.com/pydata/xarray/pull/8489
- Properly closes zarr groups in zarr store by @CarlAndersson in https://github.com/pydata/xarray/pull/8425
- Avoid duplicate Zarr array read by @dcherian in https://github.com/pydata/xarray/pull/8472
- Add mode='a-': Do not overwrite coordinates when appending to Zarr with
append_dim
by @rabernat in https://github.com/pydata/xarray/pull/8428 - Add expand_dims by @Illviljan in https://github.com/pydata/xarray/pull/8407
- Update to mypy1.7 by @headtr1ck in https://github.com/pydata/xarray/pull/8501
- change type of curvefit's p0 and bounds to mapping by @headtr1ck in https://github.com/pydata/xarray/pull/8502
- Fully deprecate
.drop
by @max-sixty in https://github.com/pydata/xarray/pull/8497 - Fix docstrings for
combine_by_coords
by @gtrevisan in https://github.com/pydata/xarray/pull/8471 - roll out the new/refreshed Xarray logo by @andersy005 in https://github.com/pydata/xarray/pull/8505
- Add extra overload for to_netcdf by @jenshnielsen in https://github.com/pydata/xarray/pull/8268
- Allow callables to
.drop_vars
by @max-sixty in https://github.com/pydata/xarray/pull/8511 - [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/pydata/xarray/pull/8517
- Fix type of
.assign_coords
by @max-sixty in https://github.com/pydata/xarray/pull/8495 - [skip-ci] fix RTD docs build by @andersy005 in https://github.com/pydata/xarray/pull/8519
- Bump pypa/gh-action-pypi-publish from 1.8.10 to 1.8.11 by @dependabot in https://github.com/pydata/xarray/pull/8514
- Use numbagg for
rolling
methods by @max-sixty in https://github.com/pydata/xarray/pull/8493 - Hypothesis strategy for generating Variable objects by @TomNicholas in https://github.com/pydata/xarray/pull/8404
- Remove PR labeler bot by @TomNicholas in https://github.com/pydata/xarray/pull/8525
- test and fix empty xindexes repr by @mathause in https://github.com/pydata/xarray/pull/8521
- Deprecate ds.dims returning dict by @TomNicholas in https://github.com/pydata/xarray/pull/8500
- Add
eval
method to Dataset by @max-sixty in https://github.com/pydata/xarray/pull/7163 - explicitly skip using
__array_namespace__
fornumpy.ndarray
by @keewis in https://github.com/pydata/xarray/pull/8526 - Whats-new for 2023.12.0 by @dcherian in https://github.com/pydata/xarray/pull/8532
New Contributors
- @CarlAndersson made their first contribution in https://github.com/pydata/xarray/pull/8425
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
- [skip-ci] dev whats-new by @dcherian in https://github.com/pydata/xarray/pull/8349
- [skip-ci] Add benchmarks for Dataset binary ops, chunk by @dcherian in https://github.com/pydata/xarray/pull/8351
- Add better ASV test cases for open_dataset by @Illviljan in https://github.com/pydata/xarray/pull/8352
- Reduce dask tokenization time by @martindurant in https://github.com/pydata/xarray/pull/8339
- Deprecate tuples of chunks? by @max-sixty in https://github.com/pydata/xarray/pull/8341
- Remove unnecessary for loop when using get_axis_num by @Illviljan in https://github.com/pydata/xarray/pull/8356
- Use namedarray repr in _array_api docstrings by @Illviljan in https://github.com/pydata/xarray/pull/8355
- NamedArray.ndim can only be int by @Illviljan in https://github.com/pydata/xarray/pull/8362
- docs: add searchable word "asterisk" by @templiert in https://github.com/pydata/xarray/pull/8363
- add
.imag
and.real
properties toNamedArray
by @andersy005 in https://github.com/pydata/xarray/pull/8365 - fix
NamedArray.imag
andNamedArray.real
typing info by @andersy005 in https://github.com/pydata/xarray/pull/8369 - Add chunkedduckarray to _typing by @Illviljan in https://github.com/pydata/xarray/pull/8376
- Do not intercept left/right keys in HTML docs by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/8379
- Docs page on interoperability by @TomNicholas in https://github.com/pydata/xarray/pull/7992
- Fix typos found by codespell by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/8375
- Use
opt_einsum
by default if installed. by @dcherian in https://github.com/pydata/xarray/pull/8373 - Allow Variable type as dim argument to concat by @maresb in https://github.com/pydata/xarray/pull/8384
- Remove duplicated navigation_with_keys in docs config by @Illviljan in https://github.com/pydata/xarray/pull/8390
- Add duckarray test for np.array_api by @Illviljan in https://github.com/pydata/xarray/pull/8391
- Fix sparse typing by @Illviljan in https://github.com/pydata/xarray/pull/8387
- Correct typing for _sparsearray by @Illviljan in https://github.com/pydata/xarray/pull/8395
- Port fix from pandas-dev/pandas#55283 to cftime resample by @spencerkclark in https://github.com/pydata/xarray/pull/8393
- Fix for Dataset.to_zarr with both
consolidated
andwrite_empty_chunks
by @Metamess in https://github.com/pydata/xarray/pull/8326 - Test masked array by @Illviljan in https://github.com/pydata/xarray/pull/8396
- Better attr diff for
testing.assert_identical
by @dcherian in https://github.com/pydata/xarray/pull/8400 - Add cross-links to API docstring from tutorial and user-guide by @amanbagrecha in https://github.com/pydata/xarray/pull/8311
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/pydata/xarray/pull/8418
- Fix for date offset strings with resample loffset by @kafitzgerald in https://github.com/pydata/xarray/pull/8422
- Declare Dataset, DataArray, Variable, GroupBy unhashable by @maresb in https://github.com/pydata/xarray/pull/8392
- Add missing DataArray.dt.total_seconds() method by @maresb in https://github.com/pydata/xarray/pull/8435
- Rename
to_array
toto_dataarray
by @max-sixty in https://github.com/pydata/xarray/pull/8438 - Remove keep_attrs from resample signature by @dcherian in https://github.com/pydata/xarray/pull/8444
- Pin pint to >=0.22 by @dcherian in https://github.com/pydata/xarray/pull/8445
- Remove PseudoNetCDF by @dcherian in https://github.com/pydata/xarray/pull/8446
- remove
cdms2
by @keewis in https://github.com/pydata/xarray/pull/8441 - Automatic region detection and transpose for
to_zarr()
by @slevang in https://github.com/pydata/xarray/pull/8434 - Raise exception in to_dataset if resulting variable is also the name of a coordinate by @mgunyho in https://github.com/pydata/xarray/pull/8433
- Added driver parameter for h5netcdf by @zequihg50 in https://github.com/pydata/xarray/pull/8360
- Deprecate certain cftime frequency strings following pandas by @spencerkclark in https://github.com/pydata/xarray/pull/8415
- [skip-ci] Small updates to IO docs. by @dcherian in https://github.com/pydata/xarray/pull/8452
- Fix typos found by codespell by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/8457
- Pin mypy < 1.7 by @dcherian in https://github.com/pydata/xarray/pull/8458
- preserve vlen string dtypes, allow vlen string fill_values by @kmuehlbauer in https://github.com/pydata/xarray/pull/7869
- migrate the other CI to python 3.11 by @keewis in https://github.com/pydata/xarray/pull/8416
- 2023.11.0 Whats-new by @dcherian in https://github.com/pydata/xarray/pull/8461
New Contributors
- @maresb made their first contribution in https://github.com/pydata/xarray/pull/8384
- @Metamess made their first contribution in https://github.com/pydata/xarray/pull/8326
- @amanbagrecha made their first contribution in https://github.com/pydata/xarray/pull/8311
- @kafitzgerald made their first contribution in https://github.com/pydata/xarray/pull/8422
- @zequihg50 made their first contribution in https://github.com/pydata/xarray/pull/8360
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
- [skip-ci] dev whats-new by @kmuehlbauer in https://github.com/pydata/xarray/pull/8232
- initial refactor for NamedArray by @andersy005 in https://github.com/pydata/xarray/pull/8075
- Bind T_DuckArray to NamedArray by @Illviljan in https://github.com/pydata/xarray/pull/8240
- Fix & normalize typing for chunks by @max-sixty in https://github.com/pydata/xarray/pull/8247
- Add type hints to maybe_promote in dtypes.py by @Illviljan in https://github.com/pydata/xarray/pull/8243
- Refine
chunks=None
handling by @max-sixty in https://github.com/pydata/xarray/pull/8249 - Add modules to
check-untyped
by @max-sixty in https://github.com/pydata/xarray/pull/8242 - update pytest config and un-xfail some tests by @mathause in https://github.com/pydata/xarray/pull/8246
- Accept
lambda
forother
param by @max-sixty in https://github.com/pydata/xarray/pull/8256 - [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/pydata/xarray/pull/8262
- Update type annotation for center argument of dataaray_plot methods by @eendebakpt in https://github.com/pydata/xarray/pull/8261
- Use strict type hinting for namedarray by @Illviljan in https://github.com/pydata/xarray/pull/8241
- Add xarray-regrid to ecosystem.rst by @BSchilperoort in https://github.com/pydata/xarray/pull/8270
- copy the
dtypes
module to thenamedarray
package. by @andersy005 in https://github.com/pydata/xarray/pull/8250 - Mandate kwargs on
to_zarr
by @max-sixty in https://github.com/pydata/xarray/pull/8257 - Don't raise rename warning if it is a no operation by @Hoxbro in https://github.com/pydata/xarray/pull/8266
- Use duck array ops in more places by @tomwhite in https://github.com/pydata/xarray/pull/8267
- make more args kw only (except 'dim') by @mathause in https://github.com/pydata/xarray/pull/6403
- Allow a function in
.sortby
method by @max-sixty in https://github.com/pydata/xarray/pull/8273 - Fix datetime encoding precision loss regression for units requiring floating point values by @spencerkclark in https://github.com/pydata/xarray/pull/8272
- Remove if condition to trigger mypy by @Illviljan in https://github.com/pydata/xarray/pull/8280
- Improved typing of align & broadcast by @headtr1ck in https://github.com/pydata/xarray/pull/8234
- Add pyright type checker by @Illviljan in https://github.com/pydata/xarray/pull/8279
- Ask bug reporters to confirm they're using a recent version of xarray by @max-sixty in https://github.com/pydata/xarray/pull/8283
- Fix
GroupBy
import by @max-sixty in https://github.com/pydata/xarray/pull/8286 - Enable
.rolling_exp
to work on dask arrays by @max-sixty in https://github.com/pydata/xarray/pull/8284 - Rename
reset_encoding
todrop_encoding
by @max-sixty in https://github.com/pydata/xarray/pull/8287 - mypy 1.6.0 passing by @max-sixty in https://github.com/pydata/xarray/pull/8296
- xfail flaky test by @max-sixty in https://github.com/pydata/xarray/pull/8299
- Remove real, imag, astype methods from NamedArray by @Illviljan in https://github.com/pydata/xarray/pull/8295
- Avoid redundant metadata reads in
ZarrArrayWrapper
by @olimcc in https://github.com/pydata/xarray/pull/8297 - Update labeler.yml to add NamedArray by @dcherian in https://github.com/pydata/xarray/pull/8305
- Add
min_weight
param torolling_exp
functions by @max-sixty in https://github.com/pydata/xarray/pull/8285 - Handle numpy missing the array api function astype by @Illviljan in https://github.com/pydata/xarray/pull/8315
- Reverse type checks for better type inheritance by @Illviljan in https://github.com/pydata/xarray/pull/8313
- Fix typing issues in tests by @Illviljan in https://github.com/pydata/xarray/pull/8312
- Remove a couple of trailing commas in tests by @max-sixty in https://github.com/pydata/xarray/pull/8321
- Remove redundant check in IndexVariable by @Illviljan in https://github.com/pydata/xarray/pull/8320
- Move Variable aggregations to NamedArray by @dcherian in https://github.com/pydata/xarray/pull/8304
- Refine curvefit doctest by @max-sixty in https://github.com/pydata/xarray/pull/8328
- Use shape and dtype as typevars in NamedArray by @Illviljan in https://github.com/pydata/xarray/pull/8294
- Enable numbagg for reductions by @dcherian in https://github.com/pydata/xarray/pull/8316
- Remove np.asarray in formatting.py by @dcherian in https://github.com/pydata/xarray/pull/8100
- fix regression in time-like check when decoding masked data by @kmuehlbauer in https://github.com/pydata/xarray/pull/8277
- Add docs to
reindex_like
re broadcasting by @max-sixty in https://github.com/pydata/xarray/pull/8327 - Add
corr
,cov
,std
&var
to.rolling_exp
by @max-sixty in https://github.com/pydata/xarray/pull/8307 - Request to adjust pyright config by @max-sixty in https://github.com/pydata/xarray/pull/8329
- Docs: Add syntax for registering backends in
pyproject.toml
by @ZedThree in https://github.com/pydata/xarray/pull/8331 - internal: Improve version handling for numbagg by @max-sixty in https://github.com/pydata/xarray/pull/8325
- Whats-new: 2023.10.0 by @dcherian in https://github.com/pydata/xarray/pull/8334
New Contributors
- @eendebakpt made their first contribution in https://github.com/pydata/xarray/pull/8261
- @BSchilperoort made their first contribution in https://github.com/pydata/xarray/pull/8270
- @Hoxbro made their first contribution in https://github.com/pydata/xarray/pull/8266
- @olimcc made their first contribution in https://github.com/pydata/xarray/pull/8297
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
- [skip-ci] dev whats-new by @dcherian in https://github.com/pydata/xarray/pull/8098
- Refactor update coordinates to better handle multi-coordinate indexes by @benbovy in https://github.com/pydata/xarray/pull/8094
- Better error message when trying to set an index from a scalar coordinate by @benbovy in https://github.com/pydata/xarray/pull/8109
- Fix merge with compat=minimal (coord names) by @benbovy in https://github.com/pydata/xarray/pull/8104
- Fix Codecov by @headtr1ck in https://github.com/pydata/xarray/pull/7142
- Better default behavior of the Coordinates constructor by @benbovy in https://github.com/pydata/xarray/pull/8107
- Document drop_variables in open_mfdataset by @jerabaul29 in https://github.com/pydata/xarray/pull/8083
- adapted the docstring of xarray.DataArray.differentiate by @afisc in https://github.com/pydata/xarray/pull/8127
- Add
Coordinates.assign()
method by @benbovy in https://github.com/pydata/xarray/pull/8102 - Fix pandas'
interpolate(fill_value=)
error by @max-sixty in https://github.com/pydata/xarray/pull/8139 - Fix doctests: pandas 2.1 MultiIndex repr with nan by @benbovy in https://github.com/pydata/xarray/pull/8141
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/pydata/xarray/pull/8145
- Cut middle version from CI by @max-sixty in https://github.com/pydata/xarray/pull/8156
- Dirty workaround for mypy 1.5 error by @benbovy in https://github.com/pydata/xarray/pull/8142
- tests: Update US/Eastern timezone to America/New_York by @LocutusOfBorg in https://github.com/pydata/xarray/pull/8153
- Docs page on internal design by @TomNicholas in https://github.com/pydata/xarray/pull/7991
- Fix tokenize with empty attrs by @malmans2 in https://github.com/pydata/xarray/pull/8101
- Consistently report all dimensions in error messages if invalid dimensions are given by @mgunyho in https://github.com/pydata/xarray/pull/8079
- Fix typos by @kianmeng in https://github.com/pydata/xarray/pull/8163
- to_stacked_array: better error msg & refactor by @mathause in https://github.com/pydata/xarray/pull/8130
- fix miscellaneous
numpy=2.0
errors by @keewis in https://github.com/pydata/xarray/pull/8117 - Bump actions/checkout from 3 to 4 by @dependabot in https://github.com/pydata/xarray/pull/8169
- Don't try to sort hashable, map to string by @Illviljan in https://github.com/pydata/xarray/pull/8172
- Implement preferred_chunks for netcdf 4 backends by @mraspaud in https://github.com/pydata/xarray/pull/7948
- Fix assignment with .loc by @dranjan in https://github.com/pydata/xarray/pull/8067
- improve typing of DataArray and Dataset reductions by @rhkleijn in https://github.com/pydata/xarray/pull/6746
- FIX: handle NaT values in dt-accessor by @kmuehlbauer in https://github.com/pydata/xarray/pull/8084
- Fix
PeriodIndex
deprecation in xarray tests by @max-sixty in https://github.com/pydata/xarray/pull/8182 - Display data returned in
apply_ufunc
error message by @max-sixty in https://github.com/pydata/xarray/pull/8179 - Set dev version above released version by @max-sixty in https://github.com/pydata/xarray/pull/8181
- Remove
setup.cfg
in favor ofpyproject.toml
by @max-sixty in https://github.com/pydata/xarray/pull/8183 - Fix comment alignment in
pyproject.toml
by @max-sixty in https://github.com/pydata/xarray/pull/8185 - fix the failing docs by @keewis in https://github.com/pydata/xarray/pull/8188
- Fix pytest markers by @max-sixty in https://github.com/pydata/xarray/pull/8191
- Fix several warnings in the tests by @headtr1ck in https://github.com/pydata/xarray/pull/8184
- FIX: use "krogh" as interpolator method-string instead of "krog" by @kmuehlbauer in https://github.com/pydata/xarray/pull/8187
- Update contourf call check for mpl 3.8 by @ksunden in https://github.com/pydata/xarray/pull/8186
- Fix static typing with Matplotlib 3.8 by @headtr1ck in https://github.com/pydata/xarray/pull/8030
- Exclude dimensions used in faceting from squeeze by @wkrasnicki in https://github.com/pydata/xarray/pull/8174
- Remove
requirements.txt
by @max-sixty in https://github.com/pydata/xarray/pull/8196 - Preserve nanosecond resolution when encoding/decoding times by @kmuehlbauer in https://github.com/pydata/xarray/pull/7827
- Allow
apply_ufunc
to ignore missing core dims by @max-sixty in https://github.com/pydata/xarray/pull/8138 - Adjust ufunc error message by @max-sixty in https://github.com/pydata/xarray/pull/8192
- Add some more mypy checks by @max-sixty in https://github.com/pydata/xarray/pull/8193
- Fix sortby link in reshaping.rst by @gtrevisan in https://github.com/pydata/xarray/pull/8202
- remove invalid statement from doc/user-guide/io.rst by @kmuehlbauer in https://github.com/pydata/xarray/pull/8194
- Move
.rolling_exp
functions fromreduce
toapply_ufunc
by @max-sixty in https://github.com/pydata/xarray/pull/8114 - Add T_DuckArray type hint to Variable.data by @Illviljan in https://github.com/pydata/xarray/pull/8203
- Attempt to reproduce #7079 in CI by @jhamman in https://github.com/pydata/xarray/pull/7488
- Add comments on when to use which
TypeVar
by @max-sixty in https://github.com/pydata/xarray/pull/8212 - Start a list of modules which require typing by @max-sixty in https://github.com/pydata/xarray/pull/8198
- Make documentation of DataArray.where clearer by @Riulinchen in https://github.com/pydata/xarray/pull/7955
- Removed
.isel
forDatasetRolling.construct
consistent rolling behavior by @p4perf4ce in https://github.com/pydata/xarray/pull/7578 - Skip flaky test by @max-sixty in https://github.com/pydata/xarray/pull/8219
- Convert
indexes.py
to useSelf
for typing by @max-sixty in https://github.com/pydata/xarray/pull/8217 - Use
Self
rather than concrete types, removecast
s by @max-sixty in https://github.com/pydata/xarray/pull/8216 - Allow creating DataArrays with nD coordinate variables by @dcherian in https://github.com/pydata/xarray/pull/8126
- Remove an import fallback by @max-sixty in https://github.com/pydata/xarray/pull/8228
- Add a
Literal
typing by @max-sixty in https://github.com/pydata/xarray/pull/8227 - Add typing to functions related to data_vars by @Illviljan in https://github.com/pydata/xarray/pull/8226
- override
units
for datetime64/timedelta64 variables to preserve integer dtype by @kmuehlbauer in https://github.com/pydata/xarray/pull/8201 - test_interpolate_pd_compat with range of fill_value's by @kmuehlbauer in https://github.com/pydata/xarray/pull/8189
- Rewrite typed_ops by @headtr1ck in https://github.com/pydata/xarray/pull/8204
- adapt to NEP 51 by @keewis in https://github.com/pydata/xarray/pull/8064
- decode variable with mismatched coordinate attribute by @kmuehlbauer in https://github.com/pydata/xarray/pull/8195
- Release 2023.09.0 by @kmuehlbauer in https://github.com/pydata/xarray/pull/8229
New Contributors
- @jerabaul29 made their first contribution in https://github.com/pydata/xarray/pull/8083
- @afisc made their first contribution in https://github.com/pydata/xarray/pull/8127
- @LocutusOfBorg made their first contribution in https://github.com/pydata/xarray/pull/8153
- @kianmeng made their first contribution in https://github.com/pydata/xarray/pull/8163
- @dranjan made their first contribution in https://github.com/pydata/xarray/pull/8067
- @wkrasnicki made their first contribution in https://github.com/pydata/xarray/pull/8174
- @gtrevisan made their first contribution in https://github.com/pydata/xarray/pull/8202
- @Riulinchen made their first contribution in https://github.com/pydata/xarray/pull/7955
- @p4perf4ce made their first contribution in https://github.com/pydata/xarray/pull/7578
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
- Use variable name in all exceptions raised in
as_variable
by @ZedThree in https://github.com/pydata/xarray/pull/7995 - Add documentation on custom indexes by @benbovy in https://github.com/pydata/xarray/pull/6975
- Allow opening datasets with nD dimenson coordinate variables. by @dcherian in https://github.com/pydata/xarray/pull/7989
- Update copyright year in README by @dcherian in https://github.com/pydata/xarray/pull/8007
- join together duplicate entries in the text
repr
by @keewis in https://github.com/pydata/xarray/pull/7225 - Core team member guide by @TomNicholas in https://github.com/pydata/xarray/pull/7999
- Expose "Coordinates" as part of Xarray's public API by @benbovy in https://github.com/pydata/xarray/pull/7368
- improved docstring of to_netcdf (issue #7127) by @vallirep in https://github.com/pydata/xarray/pull/7947
- Update interpolate_na in dataset.py by @ilgast in https://github.com/pydata/xarray/pull/7974
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/pydata/xarray/pull/8014
- Add HDF5 Section to read/write docs page by @rwegener2 in https://github.com/pydata/xarray/pull/8012
- Add examples to docstrings by @harshitha1201 in https://github.com/pydata/xarray/pull/7937
- (chore) min versions bump by @jhamman in https://github.com/pydata/xarray/pull/8022
- Automatically chunk
other
in GroupBy binary ops. by @dcherian in https://github.com/pydata/xarray/pull/7684 - change cumproduct to cumprod by @quantsnus in https://github.com/pydata/xarray/pull/8031
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/pydata/xarray/pull/8032
- Reduce pre-commit update frequency to monthly from weekly. by @dcherian in https://github.com/pydata/xarray/pull/8033
- sort when encoding coordinates for deterministic outputs by @itcarroll in https://github.com/pydata/xarray/pull/8034
- Zarr : Allow setting
write_empty_chunks
by @RKuttruff in https://github.com/pydata/xarray/pull/8016 - [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/pydata/xarray/pull/8052
- Count documentation by @Articoking in https://github.com/pydata/xarray/pull/8057
- Bump pypa/gh-action-pypi-publish from 1.8.8 to 1.8.10 by @dependabot in https://github.com/pydata/xarray/pull/8068
- add design document for "named-array" by @andersy005 in https://github.com/pydata/xarray/pull/8073
- unpin
numpy
by @keewis in https://github.com/pydata/xarray/pull/8061 - Extending the glossary by @harshitha1201 in https://github.com/pydata/xarray/pull/7732
- Add 2023.08.0 whats-new by @dcherian in https://github.com/pydata/xarray/pull/8081
New Contributors
- @ZedThree made their first contribution in https://github.com/pydata/xarray/pull/7995
- @vallirep made their first contribution in https://github.com/pydata/xarray/pull/7947
- @ilgast made their first contribution in https://github.com/pydata/xarray/pull/7974
- @rwegener2 made their first contribution in https://github.com/pydata/xarray/pull/8012
- @quantsnus made their first contribution in https://github.com/pydata/xarray/pull/8031
- @RKuttruff made their first contribution in https://github.com/pydata/xarray/pull/8016
- @Articoking made their first contribution in https://github.com/pydata/xarray/pull/8057
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
- Allow cubed arrays to be passed to flox groupby by @TomNicholas in https://github.com/pydata/xarray/pull/7941
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/pydata/xarray/pull/7944
- Duck array documentation improvements by @TomNicholas in https://github.com/pydata/xarray/pull/7911
- Bump pypa/gh-action-pypi-publish from 1.8.6 to 1.8.7 by @dependabot in https://github.com/pydata/xarray/pull/7956
- Docstring examples by @harshitha1201 in https://github.com/pydata/xarray/pull/7881
- Update minimum version of typing extensions in pre-commit by @TomNicholas in https://github.com/pydata/xarray/pull/7960
- manually unshallow the repository on RTD by @keewis in https://github.com/pydata/xarray/pull/7961
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/pydata/xarray/pull/7959
- Chunked array docs by @TomNicholas in https://github.com/pydata/xarray/pull/7951
- ensure no forward slashes in names for HDF5-based backends by @kmuehlbauer in https://github.com/pydata/xarray/pull/7953
- Move absolute path finder from open_mfdataset to own function by @Illviljan in https://github.com/pydata/xarray/pull/7968
- Use another repository for upstream testing by @Illviljan in https://github.com/pydata/xarray/pull/7970
- Skip broken tests on Python 3.11 and Windows by @Illviljan in https://github.com/pydata/xarray/pull/7972
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/pydata/xarray/pull/7973
- Examples added to docstrings by @harshitha1201 in https://github.com/pydata/xarray/pull/7936
- Fix typo in zarr.py by @johmathe in https://github.com/pydata/xarray/pull/7983
- Improve explanation in example "Working with Multidimensional Coordinates" by @yvonnefroehlich in https://github.com/pydata/xarray/pull/7984
- Release summary for v2023.07.0 by @TomNicholas in https://github.com/pydata/xarray/pull/7979
- Add new what's new section by @Illviljan in https://github.com/pydata/xarray/pull/7986
- Remove hue_style from plot1d docstring by @Illviljan in https://github.com/pydata/xarray/pull/7925
- Update whats-new.rst for new release by @TomNicholas in https://github.com/pydata/xarray/pull/7993
New Contributors
- @johmathe made their first contribution in https://github.com/pydata/xarray/pull/7983
- @yvonnefroehlich made their first contribution in https://github.com/pydata/xarray/pull/7984
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
- Array API fixes for astype by @TomNicholas in https://github.com/pydata/xarray/pull/7847
- Add type hints to test_dtypes by @Illviljan in https://github.com/pydata/xarray/pull/7858
- Bump codecov/codecov-action from 3.1.3 to 3.1.4 by @dependabot in https://github.com/pydata/xarray/pull/7859
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/pydata/xarray/pull/7864
- Upload nightly wheels to scientific-python-nightly-wheels by @martinfleis in https://github.com/pydata/xarray/pull/7865
- adapt the
pint
+dask
test to the newest version ofpint
by @keewis in https://github.com/pydata/xarray/pull/7855 - Avoid explicit loop when updating OrderedSet by @Illviljan in https://github.com/pydata/xarray/pull/7857
- Improve to_dask_dataframe performance by @Illviljan in https://github.com/pydata/xarray/pull/7844
- Changed duck typing exception to: (ImportError, AttributeError) by @vhaasteren in https://github.com/pydata/xarray/pull/7874
- defer to
numpy
for the expected result by @keewis in https://github.com/pydata/xarray/pull/7875 - add
numba
to the py3.11 environment by @keewis in https://github.com/pydata/xarray/pull/7867 - deprecate the
cdms2
conversion methods by @keewis in https://github.com/pydata/xarray/pull/7876 - [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/pydata/xarray/pull/7882
- Implement multidimensional initial guess and bounds for
curvefit
by @mgunyho in https://github.com/pydata/xarray/pull/7821 - move to
setup-micromamba
by @keewis in https://github.com/pydata/xarray/pull/7878 - Improve concat performance by @Illviljan in https://github.com/pydata/xarray/pull/7824
- retire the TestPyPI workflow by @keewis in https://github.com/pydata/xarray/pull/7889
- Fix .groupby(multi index level) by @dcherian in https://github.com/pydata/xarray/pull/7830
- don't use
CacheFileManager.__del__
on interpreter shutdown by @keewis in https://github.com/pydata/xarray/pull/7880 - fix polyfit changing the original object by @malmans2 in https://github.com/pydata/xarray/pull/7900
- Fix flaky doctest for curvefit by @mgunyho in https://github.com/pydata/xarray/pull/7893
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/pydata/xarray/pull/7912
- Ensure dtype of reindex result matches dtype of the original DataArray by @andersy005 in https://github.com/pydata/xarray/pull/7917
- Add errors option to curvefit by @mgunyho in https://github.com/pydata/xarray/pull/7891
- CF encoding should preserve vlen dtype for empty arrays by @tomwhite in https://github.com/pydata/xarray/pull/7862
- use trusted publishers instead of a API token by @keewis in https://github.com/pydata/xarray/pull/7899
- Add cfgrib,ipywidgets to doc env by @dcherian in https://github.com/pydata/xarray/pull/7888
- Update calendar for developers meeting by @shoyer in https://github.com/pydata/xarray/pull/7933
- Fix regression with grouper object on an IndexVariable by @mwtoews in https://github.com/pydata/xarray/pull/7920
- Release summary for v2023.06.0 by @TomNicholas in https://github.com/pydata/xarray/pull/7934
- Fix check for chunk_store in zarr backend by @juntyr in https://github.com/pydata/xarray/pull/7923
- fixing rolling_window issue with cupy by @negin513 in https://github.com/pydata/xarray/pull/7938
New Contributors
- @martinfleis made their first contribution in https://github.com/pydata/xarray/pull/7865
- @vhaasteren made their first contribution in https://github.com/pydata/xarray/pull/7874
- @juntyr made their first contribution in https://github.com/pydata/xarray/pull/7923
- @negin513 made their first contribution in https://github.com/pydata/xarray/pull/7938
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
- Docstrings examples for string methods by @remigathoni in https://github.com/pydata/xarray/pull/7669
- Fix groupby_bins when labels are specified by @dcherian in https://github.com/pydata/xarray/pull/7769
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
- Fix binning by unsorted array by @dcherian in https://github.com/pydata/xarray/pull/7762
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
- @harshitha1201 made their first contribution in https://github.com/pydata/xarray/pull/7638
- @veenstrajelmer made their first contribution in https://github.com/pydata/xarray/pull/7553
- @Chinemere made their first contribution in https://github.com/pydata/xarray/pull/7677
- @nishtha981 made their first contribution in https://github.com/pydata/xarray/pull/7623
- @Kwonil-Kim made their first contribution in https://github.com/pydata/xarray/pull/7746
- @mccloskey made their first contribution in https://github.com/pydata/xarray/pull/7747
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
- @tomvothecoder made their first contribution in https://github.com/pydata/xarray/pull/7579
- @agoodm made their first contribution in https://github.com/pydata/xarray/pull/7494
- @Ravenin7 made their first contribution in https://github.com/pydata/xarray/pull/7615
- @Ockenfuss made their first contribution in https://github.com/pydata/xarray/pull/7598
- @remigathoni made their first contribution in https://github.com/pydata/xarray/pull/7625
- @phofl made their first contribution in https://github.com/pydata/xarray/pull/7642
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
andorigin
arguments in :py:meth:DataArray.resample
and :py:meth:Dataset.resample
(:issue:7266
, :pull:7284
). BySpencer Clark <https://github.com/spencerkclark>
_. - Add experimental support for Zarr's in-progress V3 specification. (:pull:
6475
).
ByGregory Lee <https://github.com/grlee77>
_ andJoe 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
).
ByJoe Hamman <https://github.com/jhamman>
_.
Bug fixes
- Fix handling of coordinate attributes in :py:func:
where
. (:issue:7220
, :pull:7229
)
BySam Levang <https://github.com/slevang>
_. - Import
nc_time_axis
when needed (:issue:7275
, :pull:7276
).
ByMichael Niklas <https://github.com/headtr1ck>
_. - Fix static typing of :py:meth:
xr.polyval
(:issue:7312
, :pull:7315
).
ByMichael 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
).
ByDavid Hoese <https://github.com/djhoese>
_ andWei Ji Leong <https://github.com/weiji14>
_. - Fix :py:meth:
Dataset.assign_coords
resetting all dimension coordinates to default (pandas) index (:issue:7346
, :pull:7347
).
ByBenoî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
)
ByTom 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.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.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.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 - 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.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.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 - 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 ingroupby.multidim
andexamples.multidim
. By Ryan Abernathey. - DataArray and Dataset method
where
now supports adrop=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 ofDataset
and/orDataArray
variables. Seemerge
for more details. By Stephan Hoyer. - DataArray and Dataset method
resample
now supports thekeep_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
andloc
methods, which now behave more closely to pandas and which also accept dictionaries for indexing based on given level names and labels (seemulti-level indexing
). By Benoit Bovy. - New (experimental) decorators
xarray.register_dataset_accessor
andxarray.register_dataarray_accessor
for registering custom xarray extensions without subclassing. They are described in the new documentation page oninternals
. 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 adtype
attribute to boolean variables in netCDF files. By Joe Hamman. - 2D plotting methods now have two new keywords (
cbar_ax
andcbar_kwargs
), allowing more control on the colorbar (#872). By Fabien Maussion. - New Dataset method
filter_by_attrs
, akin tonetCDF4.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 thekeep_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 withndim
>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 forisel_points
/sel_points
when apandas.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.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 theplot()
method. See Faceting for more details and examples. sel()
andreindex()
now support the tolerance argument for controlling nearest-neighbor selection (GH629). This feature requires pandas v0.17 or newer.- New
encoding
argument into_netcdf()
for writing netCDF files with compression, as described in the new documentation section on Writing encoded data. - Add
real
andimag
attributes toDatase
t andDataArray
(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 todatetime64[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 totimedelta64[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 globalcoordinates
attribute. -
Preliminary support for converting
xray.DataArray
objects to and from CDATcdms2
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
anddropna
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)
wheren
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__
andDataset.__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: useDataset.vars
instead.Dataset.select_vars
deprecated: index aDataset
with a list of
variable names instead.DataArray.select_vars
andDataArray.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
andDataset.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
