Recent Releases of xarray
xarray -
This release actually reverts a breaking change to Xarray's preferred netCDF backend.
Climate Change - Climate Data Standards
- Python
Published by shoyer 6 months ago
xarray -
This release reverts a breaking change to Xarray's preferred netCDF backend.
Climate Change - Climate Data Standards
- Python
Published by shoyer 6 months ago
xarray - v2025.09.1
This release contains improvements to netCDF IO and the DataTree.from_dict() constructor, as well as a variety of bug fixes. In particular, the default netCDF backend has switched from netCDF4 to h5netcdf, which is typically faster.
Thanks to the 17 contributors to this release: Claude, Deepak Cherian, Dimitri Papadopoulos Orfanos, Dylan H. Morris, Emmanuel Mathot, Ian Hunt-Isaak, Joren Hammudoglu, Julia Signell, Justus Magin, Maximilian Roos, Nick Hodgskin, Spencer Clark, Stephan Hoyer, Tom Nicholas, gronniger, joseph nowak and pierre-manchon
Climate Change - Climate Data Standards
- Python
Published by shoyer 6 months ago
xarray - v2025.09.0
This release brings a number of small improvements and fixes, especially related to writing DataTree objects and netCDF files to disk.
Thanks to the 13 contributors to this release: Benoit Bovy, DHRUVA KUMAR KAUSHAL, Deepak Cherian, Dhruva Kumar Kaushal, Giacomo Caria, Ian Hunt-Isaak, Illviljan, Justus Magin, Kai Mühlbauer, Ruth Comer, Spencer Clark, Stephan Hoyer and Tom Nicholas
New Features
Support rechunking by SeasonResampler for seasonal data analysis (GH10425, PR10519). By Dhruva Kumar Kaushal.
Add convenience methods to Coordinates (PR10318) By Justus Magin.
Added load_datatree() for loading DataTree objects into memory from disk. It has the same relationship to open_datatree(), as load_dataset() has to open_dataset(). By Stephan Hoyer.
compute=False is now supported by DataTree.to_netcdf() and DataTree.to_zarr(). By Stephan Hoyer.
open_dataset will now correctly infer a path ending in .zarr/ as zarr By Ian Hunt-Isaak.
Breaking changes
Following pandas 3.0 (pandas-dev/pandas#61985), Day is no longer considered a Tick-like frequency. Therefore non-None values of offset and non-"start_day" values of origin will have no effect when resampling to a daily frequency for objects indexed by a xarray.CFTimeIndex. As in pandas-dev/pandas#62101 warnings will be emitted if non default values are provided in this context (GH10640, PR10650). By Spencer Clark.
The default backend engine used by Dataset.to_netcdf() and DataTree.to_netcdf() is now chosen consistently with open_dataset() and open_datatree(), using whichever netCDF libraries are available and valid, and preferring netCDF4 to h5netcdf to scipy (GH10654). This will change the default backend in some edge cases (e.g., from scipy to netCDF4 when writing to a file-like object or bytes). To override these new defaults, set engine explicitly. By Stephan Hoyer.
The return value of Dataset.to_netcdf() without path is now a memoryview object instead of bytes (PR10656). This removes an unnecessary memory copy and ensures consistency when using either engine="scipy" or engine="h5netcdf". If you need a bytes object, simply wrap the return value of to_netcdf() with bytes(). By Stephan Hoyer.
Bug fixes
Fix contour plots not normalizing the colors correctly when using for example logarithmic norms. (GH10551, PR10565) By Jimmy Westling.
Fix distribution of auto_complex keyword argument for open_datatree (GH10631, PR10632). By Kai Mühlbauer.
Warn instead of raise in case of misconfiguration of unlimited_dims originating from dataset.encoding, to prevent breaking users workflows (GH10647, PR10648). By Kai Mühlbauer.
DataTree.to_netcdf() and DataTree.to_zarr() now avoid redundant computation of Dask arrays with cross-group dependencies (GH10637). By Stephan Hoyer.
DataTree.to_netcdf() had h5netcdf hard-coded as default (GH10654). By Stephan Hoyer.
Internal Changes
Run TestNetCDF4Data as TestNetCDF4DataTree through open_datatree (PR10632). By Kai Mühlbauer.
Climate Change - Climate Data Standards
- Python
Published by shoyer 7 months ago
xarray - v2025.08.0
This release brings the ability to load xarray objects asynchronously, write netCDF as bytes, fixes a number of bugs, and starts an important deprecation cycle for changing the default values of keyword arguments for various xarray combining functions.
Thanks to the 24 contributors to this release:
Alfonso Ladino, Brigitta Sipőcz, Claude, Deepak Cherian, Dimitri Papadopoulos Orfanos, Eric Jansen, Ian Hunt-Isaak, Ilan Gold, Illviljan, Julia Signell, Justus Magin, Kai Mühlbauer, Mathias Hauser, Matthew, Michael Niklas, Miguel Jimenez, Nick Hodgskin, Pratiman, Scott Staniewicz, Spencer Clark, Stephan Hoyer, Tom Nicholas, Yang Yang and jemmajeffree
What's Changed
- Add dev whats-new by @dcherian in https://github.com/pydata/xarray/pull/10522
- Improve warning message and tests for timedelta decoding by @shoyer in https://github.com/pydata/xarray/pull/10508
- Remove test skip by @VeckoTheGecko in https://github.com/pydata/xarray/pull/10523
- Pydap flaky tests by @Mikejmnez in https://github.com/pydata/xarray/pull/10525
- drop_vars: use emit_user_level_warning by @mathause in https://github.com/pydata/xarray/pull/10528
- Fix labeler for
topic-documentationby @VeckoTheGecko in https://github.com/pydata/xarray/pull/10524 - CI: update actions location by @bsipocz in https://github.com/pydata/xarray/pull/10529
- Call
super().__init__()inst.SearchStrategysubclasses by @spencerkclark in https://github.com/pydata/xarray/pull/10543 - Fix kerchunk error in docs build by @dcherian in https://github.com/pydata/xarray/pull/10545
- Fix convert calendar with different dimension name by @ej81 in https://github.com/pydata/xarray/pull/10544
- Restructure API documentation into organized sections by @dcherian in https://github.com/pydata/xarray/pull/10540
- Unnecessary literal by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10552
- Fix
DatetimeAccessor.strftimeerrors due to upstream changes by @spencerkclark in https://github.com/pydata/xarray/pull/10550 - Fix transpose of BoolTypeArray, NativeEndiannessArray by @dcherian in https://github.com/pydata/xarray/pull/10546
- Pythagorean calculation with sub-optimal numerics by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10575
- interp - Prefer broadcast over reindex when possible by @Illviljan in https://github.com/pydata/xarray/pull/10554
- Update documentation to copy tags when forking, so versioning is reasonable by @jemmajeffree in https://github.com/pydata/xarray/pull/10576
- install
pyarrowfrom its official repo by @keewis in https://github.com/pydata/xarray/pull/10577 - fix: Filter out
StringDTypeeven when the backing array is notNumpyExtensionArrayby @ilan-gold in https://github.com/pydata/xarray/pull/10559 - fix: pd.Series in pandas>=3 does not preserve object dtype metadata by @ilan-gold in https://github.com/pydata/xarray/pull/10564
- Fix
_get_default_engine_netcdfto check forh5netcdfby @scottstanie in https://github.com/pydata/xarray/pull/10557 pre-commithook maintenance:typosby @keewis in https://github.com/pydata/xarray/pull/10586- bump the build metadata by @keewis in https://github.com/pydata/xarray/pull/10592
- New defaults for
concat,merge,combine_*by @jsignell in https://github.com/pydata/xarray/pull/10062 - Fix doctests by ignoring warning from netcdf by @jsignell in https://github.com/pydata/xarray/pull/10599
- Fix typo found by codespell by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10601
- change the type of
ogp_custom_meta_tagstotupleby @keewis in https://github.com/pydata/xarray/pull/10603 - Fix docstring in find_independent_seasons by @Illviljan in https://github.com/pydata/xarray/pull/10615
- Make warning message clearer when assigning to
PandasMultiIndexby @jsignell in https://github.com/pydata/xarray/pull/10610 - Update pre-commit hooks by @pre-commit-ci[bot] in https://github.com/pydata/xarray/pull/10604
- Support for DataTree.to_netcdf to write to a file-like object or bytes by @mjwillson in https://github.com/pydata/xarray/pull/10571
- add kwarg to handle invalid files in open_mfdataset by @pratiman-91 in https://github.com/pydata/xarray/pull/9955
- Bump actions/download-artifact from 4 to 5 in the actions group by @dependabot[bot] in https://github.com/pydata/xarray/pull/10621
- Sanitize unlimited_dims when writing
to_netcdfby @kmuehlbauer in https://github.com/pydata/xarray/pull/10608 - slicing a slice with an array without expanding the slice by @keewis in https://github.com/pydata/xarray/pull/10580
- Skip call to
.tolist()when creating pd.Index by @y4n9squared in https://github.com/pydata/xarray/pull/10619 - fix: Empty
RangeIndexDisplay by @ianhi in https://github.com/pydata/xarray/pull/10594 - clarify lazy behaviour and eager loading chunks=None in open_*-functions by @kmuehlbauer in https://github.com/pydata/xarray/pull/10627
- Avoid refining parent dimensions in NetCDF files by @shoyer in https://github.com/pydata/xarray/pull/10623
- Add DataTree.prune() method … by @aladinor in https://github.com/pydata/xarray/pull/10598
- Add asynchronous load method by @TomNicholas in https://github.com/pydata/xarray/pull/10327
- Fix
ds.mergeto prevent altering original object depending on join value by @jsignell in https://github.com/pydata/xarray/pull/10596 - release notes for v2025.08.0 by @TomNicholas in https://github.com/pydata/xarray/pull/10641
New Contributors
- @bsipocz made their first contribution in https://github.com/pydata/xarray/pull/10529
- @jemmajeffree made their first contribution in https://github.com/pydata/xarray/pull/10576
- @mjwillson made their first contribution in https://github.com/pydata/xarray/pull/10571
- @pratiman-91 made their first contribution in https://github.com/pydata/xarray/pull/9955
- @y4n9squared made their first contribution in https://github.com/pydata/xarray/pull/10619
Full Changelog: https://github.com/pydata/xarray/compare/v2025.07.1...v2025.08.0
Climate Change - Climate Data Standards
- Python
Published by TomNicholas 7 months ago
xarray - v2025.07.1
What's Changed
- New whatsnew section by @TomNicholas in https://github.com/pydata/xarray/pull/10496
- Update HOW_TO_RELEASE.md to reflect inability to push to main by @TomNicholas in https://github.com/pydata/xarray/pull/10497
- Enforce ruff/flake8-simplify rules (SIM) by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10480
- Unnecessary generator by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10506
- Use
iswhen comparing type of two objects by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10504 - More f-strings, less format() by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10505
- Unnecessary lambda expression by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10502
- Clean-up indexing adapter classes by @benbovy in https://github.com/pydata/xarray/pull/10355
- Add NDPointIndex (KDTree) by @benbovy in https://github.com/pydata/xarray/pull/10478
- Use a set comprehension by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10509
- Update pre-commit ruff legacy alias by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10511
- DOC: add Pandas(Multi)Index to API reference by @benbovy in https://github.com/pydata/xarray/pull/10515
- Allow setting (or skipping) new indexes in open_dataset by @benbovy in https://github.com/pydata/xarray/pull/8051
- Raise if
Index.create_variablesreturns more variables than passed in throughset_xindexby @dhruvak001 in https://github.com/pydata/xarray/pull/10503 - Expression not assigned by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10507
- Update Custom Indexes section in api.rst by @dcherian in https://github.com/pydata/xarray/pull/10517
- Updates for Zarr 3 Dtypes by @ianhi in https://github.com/pydata/xarray/pull/10456
- Add release notes for v2025.07.1 by @dcherian in https://github.com/pydata/xarray/pull/10520
Full Changelog: https://github.com/pydata/xarray/compare/v2025.07.0...v2025.07.1
Climate Change - Climate Data Standards
- Python
Published by dcherian 9 months ago
xarray - v2025.07.0
This release extends xarray's support for custom index classes, restores support for reading netCDF3 files with SciPy, updates minimum dependencies, and fixes a number of bugs.
Thanks to the 17 contributors to this release:
Bas Nijholt, Benoit Bovy, Deepak Cherian, Dhruva Kumar Kaushal, Dimitri Papadopoulos Orfanos, Ian Hunt-Isaak, Kai Mühlbauer, Mathias Hauser, Maximilian Roos, Miguel Jimenez, Nick Hodgskin, Scott Henderson, Shuhao Cao, Spencer Clark, Stephan Hoyer, Tom Nicholas and Zsolt Cserna
What's Changed
- new whats-new section by @mathause in https://github.com/pydata/xarray/pull/10420
- Fix Pydap tests for numpy 2.3.0 changes (scalar string to unicode) by @kmuehlbauer in https://github.com/pydata/xarray/pull/10421
- Fixed color.shape != grid.shape in streamplot when nx != ny by @scaomath in https://github.com/pydata/xarray/pull/10411
- Fix
Index._repr_inline_()signature by @benbovy in https://github.com/pydata/xarray/pull/10415 - Clean up backend indexing some more by @dcherian in https://github.com/pydata/xarray/pull/10376
- Check and fix chararray string dimension names by @kmuehlbauer in https://github.com/pydata/xarray/pull/10395
- Fix reindex on Dataset from MultiIndex DataFrame with RuntimeError by @csernazs in https://github.com/pydata/xarray/pull/10381
- Apply new ruff rules by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10428
- BUG: Fix display with nested NumPy arrays by @basnijholt in https://github.com/pydata/xarray/pull/10222
- DOC: Add cf_xarray to ecosystem page by @VeckoTheGecko in https://github.com/pydata/xarray/pull/10443
- Expose top-level xarray.indexes in init by @dcherian in https://github.com/pydata/xarray/pull/10435
- fix assert_equal for DataTree by @mathause in https://github.com/pydata/xarray/pull/10440
- Use a set comprehension by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10453
- Redundant list comprehension can be replaced using generator by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10454
- Simplify chained comparison between the operands by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10447
- Unassigned string statement by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10452
- Iterate the dictionary directly instead of calling
.keys()by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10451 - Unnecessary tuple/list literal by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10450
- Unreachable code by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10449
- Appending to dictionary immediately following its definition by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10448
- Exceptions are overlapping by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10446
- Enforce ruff/Pylint Warnings (PLW) by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10458
- Update pre-commit hook pre-commit by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10461
- Enforce ruff/Pylint Refactor rules (PLR) by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10459
- Enforce ruff/Pylint Convention rules (PLC) by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10460
- Switch to using the NumFOCUS Code of Conduct by @shoyer in https://github.com/pydata/xarray/pull/10432
- More Pylint issues by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10463
- More f-strings, less format() by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10474
- Enforce ruff/flake8-2020 rules (YTT) by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10467
- assert_equal: ensure check_dim_order=False works for DataTree by @mathause in https://github.com/pydata/xarray/pull/10442
- Keyword argument passed twice by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10473
- Branches of the
ifstatement have similar implementation by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10475 - Enforce ruff/flake8-simplify rules (SIM) by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10462
- Apply assorted ruff preview rules by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10465
- Revert "Enforce ruff/flake8-simplify rules (SIM)" by @max-sixty in https://github.com/pydata/xarray/pull/10476
- Fix RangeIndex slicing by @benbovy in https://github.com/pydata/xarray/pull/10471
- Update error message regex for latest Zarr by @dcherian in https://github.com/pydata/xarray/pull/10485
- update dependencies; drop python 3.10 by @dhruvak001 in https://github.com/pydata/xarray/pull/10438
- Fix critical
np.timedelta64encoding bugs by @spencerkclark in https://github.com/pydata/xarray/pull/10469 - Prevent pydap (dap4) to change string arrays to unicode type (testing). Fixed upstream by @Mikejmnez in https://github.com/pydata/xarray/pull/10482
- Downgrade zarr requests performance expectations for zarr 3.0.9 by @TomNicholas in https://github.com/pydata/xarray/pull/10491
- Use add_note() to annotate exceptions when encoding fails by @shoyer in https://github.com/pydata/xarray/pull/10464
- Check if zarr store supports consolidated metadata by @TomNicholas in https://github.com/pydata/xarray/pull/10457
- Fix Zarr 'number of requests' test by @ianhi in https://github.com/pydata/xarray/pull/10492
- Rename toplevel header from Contribute to Development by @scottyhq in https://github.com/pydata/xarray/pull/10472
- Release workflows: always check that the built dist is valid. by @dcherian in https://github.com/pydata/xarray/pull/10408
- Fix bug with
ci/release_contributors.pyscript by @TomNicholas in https://github.com/pydata/xarray/pull/10494 - Release notes for v2025.07.0 by @TomNicholas in https://github.com/pydata/xarray/pull/10495
New Contributors
- @scaomath made their first contribution in https://github.com/pydata/xarray/pull/10411
- @csernazs made their first contribution in https://github.com/pydata/xarray/pull/10381
- @basnijholt made their first contribution in https://github.com/pydata/xarray/pull/10222
- @dhruvak001 made their first contribution in https://github.com/pydata/xarray/pull/10438
Full Changelog: https://github.com/pydata/xarray/compare/v2025.06.1...v2025.07.0
Climate Change - Climate Data Standards
- Python
Published by TomNicholas 9 months ago
xarray - v2025.06.1
This is quick bugfix release to remove an unintended dependency on typing_extensions. Apologies for the trouble.
What's Changed
- Guard typing_extension import by @sjperkins in https://github.com/pydata/xarray/pull/10413
- (fix): disallow
NumpyExtensionArrayby @ilan-gold in https://github.com/pydata/xarray/pull/10334 - (fix):
ndimaccessible asnp.ndimonPandasExtensionArrayby @ilan-gold in https://github.com/pydata/xarray/pull/10414 - Up-to-date instructions for reading & writing to Zarr with Xarray by @alxmrs in https://github.com/pydata/xarray/pull/10410
- Release 2025.06.1 by @dcherian in https://github.com/pydata/xarray/pull/10416
New Contributors
- @alxmrs made their first contribution in https://github.com/pydata/xarray/pull/10410
Full Changelog: https://github.com/pydata/xarray/compare/v2025.06.0...v2025.06.1
Climate Change - Climate Data Standards
- Python
Published by dcherian 9 months ago
xarray - v2025.06.0
This release brings HTML reprs to the documentation, fixes to flexible Xarray indexes, performance optimizations, more ergonomic seasonal grouping and resampling
with new SeasonGrouper and SeasonResampler objects, and bugfixes.
Thanks to the 33 contributors to this release:
Andrecho, Antoine Gibek, Benoit Bovy, Brian Michell, Christine P. Chai, David Huard, Davis Bennett, Deepak Cherian, Dimitri Papadopoulos Orfanos, Elliott Sales de Andrade, Erik, Erik Månsson, Giacomo Caria, Ilan Gold, Illviljan, Jesse Rusak, Jonathan Neuhauser, Justus Magin, Kai Mühlbauer, Kimoon Han, Konstantin Ntokas, Mark Harfouche, Michael Niklas, Nick Hodgskin, Niko Sirmpilatze, Pascal Bourgault, Scott Henderson, Simon Perkins, Spencer Clark, Tom Vo, Trevor James Smith, joseph nowak and micguerr-bopen
What's Changed
- Add
xarray-lmfitextension for curve fitting to ecosystem documentation by @kmnhan in https://github.com/pydata/xarray/pull/10262 - Rename Twitter to X by @star1327p in https://github.com/pydata/xarray/pull/10283
- Add public typing.py module by @micguerr-bopen in https://github.com/pydata/xarray/pull/10215
- Adding xarray-eopf to ecosystem.rst by @konstntokas in https://github.com/pydata/xarray/pull/10289
- Add redirect for contributing guide by @scottyhq in https://github.com/pydata/xarray/pull/10282
- Add Index.should_add_coord_to_array by @benbovy in https://github.com/pydata/xarray/pull/10137
- Fix for scalar detection by @huard in https://github.com/pydata/xarray/pull/8821
- DOC: Remove reference to
absolufy-importsfrom contributing guide by @VeckoTheGecko in https://github.com/pydata/xarray/pull/10290 - Do not rely on np.broadcast_to to perform trivial dimension insertion by @hmaarrfk in https://github.com/pydata/xarray/pull/10277
- (fix): remove
PandasExtensionArrayfrom repr by @ilan-gold in https://github.com/pydata/xarray/pull/10291 - Add SeasonGrouper, SeasonResampler by @dcherian in https://github.com/pydata/xarray/pull/9524
- dev whats-new by @dcherian in https://github.com/pydata/xarray/pull/10294
- Add back getattr for ExtensionArrays by @dcherian in https://github.com/pydata/xarray/pull/10278
- (fix): allow upcasting of nans in
as_shared_dtypefor extension arrays by @ilan-gold in https://github.com/pydata/xarray/pull/10292 - Fix BinGrouper when labels is not specified by @dcherian in https://github.com/pydata/xarray/pull/10295
- (fix): numeric
arrowdtype deep copies by @ilan-gold in https://github.com/pydata/xarray/pull/10315 - Fix rolling mean on bool arrays by @gcaria in https://github.com/pydata/xarray/pull/10319
- Alignment of n-dimensional indexes with partially excluded dims by @benbovy in https://github.com/pydata/xarray/pull/10293
- FIX: prevent unnecessary type casts in rolling mean by @kmuehlbauer in https://github.com/pydata/xarray/pull/10341
- Remove
"Y"and"M"fromDatetimeUnitOptionsby @spencerkclark in https://github.com/pydata/xarray/pull/10306 - fix roundtripping zero-size timedelta arrays by @kmuehlbauer in https://github.com/pydata/xarray/pull/10313
- Implement literal
np.timedelta64coding by @spencerkclark in https://github.com/pydata/xarray/pull/10101 - Set
.conjugateas alias of.conj, #10302 by @joneuhauser in https://github.com/pydata/xarray/pull/10303 - Fix setuptools deprecation warnings by @gcaria in https://github.com/pydata/xarray/pull/10300
- The URL in CONTRIBUTING.md was broken and didn't automatically redirect. by @erik-mansson in https://github.com/pydata/xarray/pull/10351
- Disallow standard calendar
np.datetime64encoding prior to reform by @spencerkclark in https://github.com/pydata/xarray/pull/10352 - Docs: User Guide for Complex Numbers by @andrewendlinger in https://github.com/pydata/xarray/pull/10235
- Avoid copying vectorized indexes by @jder in https://github.com/pydata/xarray/pull/10316
- apply_ufunc: don't modify attrs on input variables by @erik-mansson in https://github.com/pydata/xarray/pull/10330
- ruff: default rule set by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10360
- Fix "a array" misspelling by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10365
- Apply assorted ruff/flake8-pytest-style rules (PT) by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10363
- Apply assorted ruff/flake8-simplify rules (SIM) by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10364
- Ignore ruff/Pyflakes rule F401 more precisely by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10369
- Enforce ruff/refurb rules (FURB) by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10367
- Enforce ruff/flake8-implicit-str-concat rules (ISC) by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10368
- (fix): pandas extension array repr for int64[pyarrow] by @ilan-gold in https://github.com/pydata/xarray/pull/10317
- Apply assorted ruff/Pylint rules (PL) / Enforce PLE rules by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10366
- Enforce ruff/flake8-pyi rules (PYI) by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10359
- Implement cftime vectorization as discussed in PR #8322 by @antscloud in https://github.com/pydata/xarray/pull/8324
- Fix doc typo for caption "Interoperability" by @tomvothecoder in https://github.com/pydata/xarray/pull/10374
- use numpy dtype exposed by zarr array instead of metadata.data_type by @d-v-b in https://github.com/pydata/xarray/pull/10348
- Pin Mypy to 1.15 by @kmuehlbauer in https://github.com/pydata/xarray/pull/10378
- Improve html repr in dark mode (Jupyterlab + Xarray docs) by @benbovy in https://github.com/pydata/xarray/pull/10353
- Add missing AbstractWritableDataStore base methods and arguments by @sjperkins in https://github.com/pydata/xarray/pull/10343
- Enforce ruff/flynt rules (FLY) by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10375
- Docs: Add links to getting help mermaid diagram by @scottyhq in https://github.com/pydata/xarray/pull/10324
- Grouper tweaks. by @dcherian in https://github.com/pydata/xarray/pull/10362
- html repr: improve style for dropdown sections by @benbovy in https://github.com/pydata/xarray/pull/10354
- Fix performance regression in interp from #9881 by @dcherian in https://github.com/pydata/xarray/pull/10370
- Avoid unsafe casts from float to unsigned int by @QuLogic in https://github.com/pydata/xarray/pull/9964
- DOC: Update link to Cartopy reference by @star1327p in https://github.com/pydata/xarray/pull/10386
- Update a link in ROMS_ocean_model.ipynb by @star1327p in https://github.com/pydata/xarray/pull/10394
- Automatic Dask-Zarr chunk alignment by @josephnowak in https://github.com/pydata/xarray/pull/10336
- added movement to Xarray related projects by @niksirbi in https://github.com/pydata/xarray/pull/10403
- Update concat for multi-variable indexes. by @dcherian in https://github.com/pydata/xarray/pull/10371
- Switch docs to jupyter-execute sphinx extension for HTML reprs by @scottyhq in https://github.com/pydata/xarray/pull/10383
- Adds chunk key encoding to kwargs passed to zarr by @BrianMichell in https://github.com/pydata/xarray/pull/10274
- Release v2025.06.0 by @dcherian in https://github.com/pydata/xarray/pull/10406
New Contributors
- @kmnhan made their first contribution in https://github.com/pydata/xarray/pull/10262
- @star1327p made their first contribution in https://github.com/pydata/xarray/pull/10283
- @micguerr-bopen made their first contribution in https://github.com/pydata/xarray/pull/10215
- @konstntokas made their first contribution in https://github.com/pydata/xarray/pull/10289
- @joneuhauser made their first contribution in https://github.com/pydata/xarray/pull/10303
- @erik-mansson made their first contribution in https://github.com/pydata/xarray/pull/10351
- @jder made their first contribution in https://github.com/pydata/xarray/pull/10316
- @sjperkins made their first contribution in https://github.com/pydata/xarray/pull/10343
- @niksirbi made their first contribution in https://github.com/pydata/xarray/pull/10403
- @BrianMichell made their first contribution in https://github.com/pydata/xarray/pull/10274
Full Changelog: https://github.com/pydata/xarray/compare/v2025.04.0...v2025.06.0
Climate Change - Climate Data Standards
- Python
Published by dcherian 10 months ago
xarray - v2025.04.0
This release brings bug fixes, better support for extension arrays including returning a
pandas.IntervalArray from groupby_bins, and performance improvements.
Thanks to the 24 contributors to this release:
Alban Farchi, Andrecho, Benoit Bovy, Deepak Cherian, Dimitri Papadopoulos Orfanos, Florian Jetter, Giacomo Caria, Ilan Gold, Illviljan, Joren Hammudoglu, Julia Signell, Kai Muehlbauer, Kai Mühlbauer, Mathias Hauser, Mattia Almansi, Michael Sumner, Miguel Jimenez, Nick Hodgskin (🦎 Vecko), Pascal Bourgault, Philip Chmielowiec, Scott Henderson, Spencer Clark, Stephan Hoyer and Tom Nicholas
What's Changed
- Add new whats-new section by @dcherian in https://github.com/pydata/xarray/pull/10190
- DOC: Remove mention of netcdf pypi package by @VeckoTheGecko in https://github.com/pydata/xarray/pull/10197
- Apply ruff preview rule RUF046 by @DimitriPapadopoulos in https://github.com/pydata/xarray/pull/10199
- Fix sparse dask repr test by @dcherian in https://github.com/pydata/xarray/pull/10200
- add
scipy-stubsas extra[types]dependency by @jorenham in https://github.com/pydata/xarray/pull/10202 - Fix references to core classes in docs by @malmans2 in https://github.com/pydata/xarray/pull/10207
- Fixes dimension order in
xarray.Dataset.to_stacked_arrayby @aFarchi in https://github.com/pydata/xarray/pull/10205 - CI: Automatic PR labelling is back by @VeckoTheGecko in https://github.com/pydata/xarray/pull/10201
- Add datatree repr asv by @Illviljan in https://github.com/pydata/xarray/pull/10214
DatasetView.mapfixkeep_attrsby @mathause in https://github.com/pydata/xarray/pull/10219- Fix broken Sphinx Roles by @philipc2 in https://github.com/pydata/xarray/pull/10225
- Fix doctests by @jsignell in https://github.com/pydata/xarray/pull/10230
- Fix mypy failures on main by @jsignell in https://github.com/pydata/xarray/pull/10232
- Add RangeIndex by @benbovy in https://github.com/pydata/xarray/pull/10076
- opendap / dap4 support for pydap backend by @Mikejmnez in https://github.com/pydata/xarray/pull/10182
- Fix: Docs generation create temporary files that are not cleaned up. by @andrewendlinger in https://github.com/pydata/xarray/pull/10238
- Remove
test_dask_layers_and_dependenciesby @fjetter in https://github.com/pydata/xarray/pull/10242 - Fix mypy, min-versions CI, xfail Zarr tests by @dcherian in https://github.com/pydata/xarray/pull/10255
- Switch documentation to pydata-sphinx-theme by @TomNicholas in https://github.com/pydata/xarray/pull/8708
- Support extension array indexes by @ilan-gold in https://github.com/pydata/xarray/pull/9671
- Update how-to-add-new-backend.rst by @mdsumner in https://github.com/pydata/xarray/pull/10240
- Improve alignment checks by @benbovy in https://github.com/pydata/xarray/pull/10251
- Avoid stacking when grouping by chunked array by @dcherian in https://github.com/pydata/xarray/pull/10254
- BinGrouper: Support setting labels when provided with IntervalIndex by @dcherian in https://github.com/pydata/xarray/pull/10259
- Fix infinite recursion when calling
np.fixby @gcaria in https://github.com/pydata/xarray/pull/10248 - Fix benchmarks runners by @dcherian in https://github.com/pydata/xarray/pull/10265
- Shorten text repr for
DataTreeby @jsignell in https://github.com/pydata/xarray/pull/10139 - Fix reduction by subset of grouper dimensions by @dcherian in https://github.com/pydata/xarray/pull/10258
- BinGrouper: reduce indirection by @dcherian in https://github.com/pydata/xarray/pull/10270
- Fix convert calendar on non-temporal data in datasets by @aulemahal in https://github.com/pydata/xarray/pull/10268
- add return_scalar=False as array_wrap kwarg by @gcaria in https://github.com/pydata/xarray/pull/10264
- GroupBy: Finish eagerly_compute_group deprecation by @dcherian in https://github.com/pydata/xarray/pull/10253
- (fix): remove
_getattr__method forPandasExtensionArrayby @ilan-gold in https://github.com/pydata/xarray/pull/10250 - Release notes for 2025.04.0 by @dcherian in https://github.com/pydata/xarray/pull/10272
New Contributors
- @jorenham made their first contribution in https://github.com/pydata/xarray/pull/10202
- @aFarchi made their first contribution in https://github.com/pydata/xarray/pull/10205
- @mdsumner made their first contribution in https://github.com/pydata/xarray/pull/10240
Full Changelog: https://github.com/pydata/xarray/compare/v2025.03.1...v2025.04.0
Climate Change - Climate Data Standards
- Python
Published by dcherian 11 months ago
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_valueon 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_chunksfor 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 12 months 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
allandanyby @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.pyby @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.13by @keewis in https://github.com/pydata/xarray/pull/9681 - Add
Coordinates.from_xindexmethod (+ 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
pipemethods 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.pyby @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_datatreeby @slevang in https://github.com/pydata/xarray/pull/10100 - Fix false timedelta decoding
SerializationWarningand 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_numpyin time decoding by @dcherian in https://github.com/pydata/xarray/pull/10081 - explicitly cast the dtype of
where's condition parameter toboolby @keewis in https://github.com/pydata/xarray/pull/10087 - Better
uvcompatibility by @max-sixty in https://github.com/pydata/xarray/pull/10124 - Change
python_filesinpyproject.tomlto a list by @max-sixty in https://github.com/pydata/xarray/pull/10127 - Don't skip tests when on a
mypybranch 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
coreintoxarray.computationby @max-sixty in https://github.com/pydata/xarray/pull/10132 - Split
apply_ufuncout ofcomputation.pyby @max-sixty in https://github.com/pydata/xarray/pull/10133 - Refactor concat / combine / merge into
xarray/structureby @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]
DataTreecannot be constructed fromDataArrayby @mathause in https://github.com/pydata/xarray/pull/10142 - Fix
open_datatreewhendecode_cf=Falseby @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 year 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
shardstovalid_encodingsto 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_unitargument toCFTimeIndex.to_datetimeindexby @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
CFTimedeltaCodertodecode_timedeltaby @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_rangeby @spencerkclark in https://github.com/pydata/xarray/pull/10004 - cast
numpyscalars to arrays inNamedArray.from_arrayby @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 about 1 year 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 about 1 year 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_formatforzarr.consolidate_metadataby @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_objectsby @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_ufuncby @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 about 1 year 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
ValueErrorfor 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.persistby @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
!sconversion 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_checkscript 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_overlapfor 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.ndarraysubclasses 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,bfillwith dask whenlimitis 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_kwargsto pipe arguments down tosliding_window_viewby @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.ufuncsby @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
fsspecby @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 over 1 year 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_groupsfor 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_groupswith 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
compaterror checking to disallow "minimal" inconcat()by @VeckoTheGecko in https://github.com/pydata/xarray/pull/9525 - (fix):
ExtensionArray+DataArrayroundtrip 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
numpyscalars to arrays inas_compatible_databy @keewis in https://github.com/pydata/xarray/pull/9403 - Add
.rolling_exponto.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-actionby @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
.cumulativetocumsum&cumproddocstrings 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
squeezekwarg 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
memoargument 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_blocksby @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
chunksinopen_groupsandopen_datatreeby @keewis in https://github.com/pydata/xarray/pull/9660 - implement
daskmethods onDataTreeby @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_datatreeby @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 over 1 year 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_dictto 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-01by @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
aroundandroundby @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.9by @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_optionsby @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
UnsignedIntegerCoderandCFMaskCoderby @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 2compatibility in thepydapbackend 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-buildinstead ofbuildin benchmark workflow by @philipc2 in https://github.com/pydata/xarray/pull/9406 - fix the failing
pre-commit.ciruns 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
DatetimeIndexin 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
resampleby @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 addingDataTreeCoordinatesclass 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 over 1 year 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 alsoby @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
.chunkby @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_zarrdocs 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<2by @keewis in https://github.com/pydata/xarray/pull/9181 - temporarily remove
pydapfrom CI by @keewis in https://github.com/pydata/xarray/pull/9183 - also pin
numpyin 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 fromfsspecobjects 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
compositestrategy 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.complex64dtype 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_calendarby @hmaarrfk in https://github.com/pydata/xarray/pull/9192 numpy2 compatibility in thenetcdf4andh5netcdfbackends by @keewis in https://github.com/pydata/xarray/pull/9136numpy2 compatibility in the iris code paths by @keewis in https://github.com/pydata/xarray/pull/9156- switch the documentation to run with
numpy>=2by @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_attrsmethod 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
baseandloffsetparameters 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_datetimebenchmark 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_datatreebackend-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 over 1 year 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
PandasExtensionArrayby @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
zarrto 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
pinttests 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_dataframeby @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
pandasdatetime roundtrip test withpandas=3.0by @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 almost 2 years 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_timedeltainstead ofTimedeltaIndexby @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
pandasExtensionArrayby @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
naninstead ofNaNby @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>=2by @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>=2by @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
dimby @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
.dropwarning allow by @max-sixty in https://github.com/pydata/xarray/pull/8988 - Skip flaky
test_open_mfdataset_manyfilestest 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
polyfitby @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_rangeas an expected failure by @spencerkclark in https://github.com/pydata/xarray/pull/8996 - call
np.crosswith 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_rangetocftime_rangeby @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 almost 2 years 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.oindexfor 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
.vindexproperty 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_dimsby @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-devCI to complete again by @keewis in https://github.com/pydata/xarray/pull/8823 - Do not attempt to broadcast when global option
arithmetic_broadcast=Falseby @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-exprto 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
.oindexand.vindexby @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
.oindexand.vindexproperties 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.pyby @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 almost 2 years 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 2 years 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_indexif 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_warningsby @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
.dimsin tests by @max-sixty in https://github.com/pydata/xarray/pull/8639 - Use
T_DataArrayinWeightedby @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.0for 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
isnullusingfull_likeinstead ofzeros_likeby @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 about 2 years 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 about 2 years 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_alphafunc by @max-sixty in https://github.com/pydata/xarray/pull/8465 - Fix
map_blocksdocs' 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
rankto 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
ffillby 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
dimstodimby @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_dimby @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
.dropby @max-sixty in https://github.com/pydata/xarray/pull/8497 - Fix docstrings for
combine_by_coordsby @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_varsby @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_coordsby @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
rollingmethods 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
evalmethod to Dataset by @max-sixty in https://github.com/pydata/xarray/pull/7163 - explicitly skip using
__array_namespace__fornumpy.ndarrayby @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 2 years 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
.imagand.realproperties toNamedArrayby @andersy005 in https://github.com/pydata/xarray/pull/8365 - fix
NamedArray.imagandNamedArray.realtyping 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_einsumby 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
consolidatedandwrite_empty_chunksby @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_identicalby @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_arraytoto_dataarrayby @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
cdms2by @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 2 years 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 2 years 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=Nonehandling by @max-sixty in https://github.com/pydata/xarray/pull/8249 - Add modules to
check-untypedby @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
lambdaforotherparam 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
dtypesmodule to thenamedarraypackage. by @andersy005 in https://github.com/pydata/xarray/pull/8250 - Mandate kwargs on
to_zarrby @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
.sortbymethod 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
GroupByimport by @max-sixty in https://github.com/pydata/xarray/pull/8286 - Enable
.rolling_expto work on dask arrays by @max-sixty in https://github.com/pydata/xarray/pull/8284 - Rename
reset_encodingtodrop_encodingby @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
ZarrArrayWrapperby @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_weightparam torolling_expfunctions 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_likere broadcasting by @max-sixty in https://github.com/pydata/xarray/pull/8327 - Add
corr,cov,std&varto.rolling_expby @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.tomlby @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 2 years 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.0errors 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
PeriodIndexdeprecation in xarray tests by @max-sixty in https://github.com/pydata/xarray/pull/8182 - Display data returned in
apply_ufuncerror 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.cfgin favor ofpyproject.tomlby @max-sixty in https://github.com/pydata/xarray/pull/8183 - Fix comment alignment in
pyproject.tomlby @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.txtby @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_ufuncto 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_expfunctions fromreducetoapply_ufuncby @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
TypeVarby @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
.iselforDatasetRolling.constructconsistent 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.pyto useSelffor typing by @max-sixty in https://github.com/pydata/xarray/pull/8217 - Use
Selfrather than concrete types, removecasts 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
Literaltyping 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
unitsfor 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 2 years 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_variableby @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
reprby @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
otherin 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_chunksby @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
numpyby @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 2 years 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 over 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+dasktest to the newest version ofpintby @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
numpyfor the expected result by @keewis in https://github.com/pydata/xarray/pull/7875 - add
numbato the py3.11 environment by @keewis in https://github.com/pydata/xarray/pull/7867 - deprecate the
cdms2conversion 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
curvefitby @mgunyho in https://github.com/pydata/xarray/pull/7821 - move to
setup-micromambaby @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 over 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 3 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 almost 3 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 almost 3 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 almost 3 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 3 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 3 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 about 3 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
offsetandoriginarguments 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_axiswhen 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_coordsresetting 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 3 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 3 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 3 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 3 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 over 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 4 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 4 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 4 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 4 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 4 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 over 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 5 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 5 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 5 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 5 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 5 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 over 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 almost 6 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 almost 8 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 8 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 8 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!).
resamplehas a new groupby-like API like pandas.xarray.apply_ufuncfacilitates 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 8 years ago
xarray - v0.10.0rc2
Climate Change - Climate Data Standards
- Python
Published by shoyer over 8 years ago
xarray - v0.10.0rc1
Climate Change - Climate Data Standards
- Python
Published by shoyer over 8 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 9 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 almost 9 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 almost 9 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 9 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 9 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 9 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.valuesand.datanow always returns an NumPy array-like object, even for 0-dimensional arrays with object dtype (#867). Previously,.valuesreturned 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_binshas also been added to allow users to specify bins for grouping. The new features are described ingroupby.multidimandexamples.multidim. By Ryan Abernathey. - DataArray and Dataset method
wherenow supports adrop=Trueoption that clips coordinate elements that are fully masked. By Phillip J. Wolfram. - New top level
mergefunction allows for combining variables from any number ofDatasetand/orDataArrayvariables. Seemergefor more details. By Stephan Hoyer. - DataArray and Dataset method
resamplenow supports thekeep_attrs=Falseoption that determines whether variable and dataset attributes are retained in the resampled object. By Jeremy McGibbon. - Better multi-index support in DataArray and Dataset
selandlocmethods, 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_accessorandxarray.register_dataarray_accessorfor 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
booldatatype. This feature reads/writes adtypeattribute to boolean variables in netCDF files. By Joe Hamman. - 2D plotting methods now have two new keywords (
cbar_axandcbar_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=Falseoption, 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=Trueoption. 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_timedeltanow accepts arrays withndim>1 (#842). This fixes issue #665. Filipe Fernandes.- Fix a bug where
xarray.ufuncsthat 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
dimargument forisel_points/sel_pointswhen apandas.Indexis passed. By Stephan Hoyer. xarray.plot.contournow plots the correct number of contours (#866). By Fabien Maussion.
Climate Change - Climate Data Standards
- Python
Published by jhamman over 9 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
FacetGridand 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
encodingargument into_netcdf()for writing netCDF files with compression, as described in the new documentation section on Writing encoded data. - Add
realandimagattributes toDataset 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 10 years ago