./math/py-xarray, N-D labeled arrays and datasets in Python

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2025.1.1, Package name: py312-xarray-2025.1.1, Maintainer: jihbed.research

xarray (formerly xray) is an open source project and Python package
that aims to bring the labeled data power of pandas to the physical
sciences, by providing N-dimensional variants of the core pandas data
structures.


Required to run:
[devel/py-setuptools] [math/py-numpy] [math/py-pandas] [lang/python37]

Required to build:
[devel/py-pip] [pkgtools/cwrappers] [devel/py-setuptools_scm]

Master sites:

Filesize: 3180.701 KB

Version history: (Expand)


CVS history: (Expand)


   2025-01-12 15:34:47 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-xarray: updated to 2025.1.1

v2025.01.1 (Jan 9, 2025)

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 \ 
<https://github.com/pydata/xarray/pull/9618>`_!

New Features

- Split out :py:class:`coders.CFDatetimeCoder` as public API in ``xr.coders``, \ 
make ``decode_times`` keyword argument
  consume :py:class:`coders.CFDatetimeCoder` (:pull:`9901`).

Deprecations

- Time decoding related kwarg ``use_cftime`` is deprecated. Use keyword argument
  ``decode_times=CFDatetimeCoder(use_cftime=True)`` in \ 
:py:func:`~xarray.open_dataset`, :py:func:`~xarray.open_dataarray`, \ 
:py:func:`~xarray.open_datatree`, :py:func:`~xarray.open_groups`, \ 
:py:func:`~xarray.open_zarr` and :py:func:`~xarray.decode_cf` instead \ 
(:pull:`9901`).
   2025-01-06 11:55:38 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-xarray: updated to 2025.1.0

v.2025.01.0 (Jan 3, 2025)

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.

New Features

- Improve the error message raised when using chunked-array methods if no chunk \ 
manager is available or if the requested chunk manager is missing (:pull:`9676`)
- Better support wrapping additional array types (e.g. ``cupy`` or ``jax``) by \ 
calling generalized
  duck array operations throughout more xarray methods. (:issue:`7848`, \ 
:pull:`9798`).
- Better performance for reading Zarr arrays in the ``ZarrStore`` class by \ 
caching the state of Zarr
  storage and avoiding redundant IO operations. By default, ``ZarrStore`` stores \ 
a snapshot of names and metadata of the in-scope Zarr arrays; this cache
  is then used when iterating over those Zarr arrays, which avoids IO operations \ 
and thereby reduces
  latency. (:issue:`9853`, :pull:`9861`).
- Add ``unit`` - keyword argument to :py:func:`date_range` and ``microsecond`` \ 
parsing to
  iso8601-parser (:pull:`9885`).

Breaking changes

- Methods including ``dropna``, ``rank``, ``idxmax``, ``idxmin`` require
  non-dimension arguments to be passed as keyword arguments. The previous
  behavior, which allowed ``.idxmax('foo', 'all')`` was too easily confused with
  ``'all'`` being a dimension. The updated equivalent is ``.idxmax('foo',
  how='all')``. The previous behavior was deprecated in v2023.10.0.

Deprecations

- Finalize deprecation of ``closed`` parameters of :py:func:`cftime_range` and
  :py:func:`date_range` (:pull:`9882`).

Performance

- Better preservation of chunksizes in :py:meth:`Dataset.idxmin` and \ 
:py:meth:`Dataset.idxmax` (:issue:`9425`, :pull:`9800`).
- Much better implementation of vectorized interpolation for dask arrays \ 
(:pull:`9881`).

Bug fixes

- Fix type annotations for ``get_axis_num``. (:issue:`9822`, :pull:`9827`).
- Fix unintended load on datasets when calling :py:meth:`DataArray.plot.scatter` \ 
(:pull:`9818`).
- Fix interpolation when non-numeric coordinate variables are present \ 
(:issue:`8099`, :issue:`9839`).

Internal Changes

- Move non-CF related ``ensure_dtype_not_object`` from conventions to backends \ 
(:pull:`9828`).
- Move handling of scalar datetimes into ``_possibly_convert_objects``
  within ``as_compatible_data``. This is consistent with how lists of these objects
  will be converted (:pull:`9900`).
- Move ISO-8601 parser from coding.cftimeindex to coding.times to make it \ 
available there (prevents circular import), add capability to parse negative \ 
and/or five-digit years (:pull:`9899`).
- Refactor of time coding to prepare for relaxing nanosecond restriction \ 
(:pull:`9906`).
   2024-12-27 00:20:43 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-xarray: updated to 2024.11.0

v.2024.11.0 (Nov 22, 2024)
--------------------------

This release brings better support for wrapping JAX arrays and Astropy Quantity \ 
objects, :py:meth:`DataTree.persist`, algorithmic improvements
to many methods with dask (:py:meth:`Dataset.polyfit`, :py:meth:`Dataset.ffill`, \ 
:py:meth:`Dataset.bfill`, rolling reductions), and bug fixes.
Thanks to the 22 contributors to this release:
Benoit Bovy, Deepak Cherian, Dimitri Papadopoulos Orfanos, Holly Mandel, James \ 
Bourbeau, Joe Hamman, Justus Magin, Kai Mühlbauer, Lukas Trippe, Mathias \ 
Hauser, Maximilian Roos, Michael Niklas, Pascal Bourgault, Patrick Hoefler, Sam \ 
Levang, Sarah Charlotte Johnson, Scott Huberty, Stephan Hoyer, Tom Nicholas, \ 
Virgile Andreani, joseph nowak and tvo

New Features
~~~~~~~~~~~~
- Added :py:meth:`DataTree.persist` method (:issue:`9675`, :pull:`9682`).
  By `Sam Levang <https://github.com/slevang>`_.
- Added ``write_inherited_coords`` option to :py:meth:`DataTree.to_netcdf`
  and :py:meth:`DataTree.to_zarr` (:pull:`9677`).
  By `Stephan Hoyer <https://github.com/shoyer>`_.
- Support lazy grouping by dask arrays, and allow specifying ordered groups with \ 
``UniqueGrouper(labels=["a", "b", "c"])``
  (:issue:`2852`, :issue:`757`).
  By `Deepak Cherian <https://github.com/dcherian>`_.
- Add new ``automatic_rechunk`` kwarg to :py:meth:`DataArrayRolling.construct` and
  :py:meth:`DatasetRolling.construct`. This is only useful on ``dask>=2024.11.0``
  (:issue:`9550`). By `Deepak Cherian <https://github.com/dcherian>`_.
- Optimize ffill, bfill with dask when limit is specified
  (:pull:`9771`).
  By `Joseph Nowak <https://github.com/josephnowak>`_, and
  `Patrick Hoefler <https://github.com/phofl>`_.
- Allow wrapping ``np.ndarray`` subclasses, e.g. ``astropy.units.Quantity`` \ 
(:issue:`9704`, :pull:`9760`).
  By `Sam Levang <https://github.com/slevang>`_ and `Tien Vo \ 
<https://github.com/tien-vo>`_.
- Optimize :py:meth:`DataArray.polyfit` and :py:meth:`Dataset.polyfit` with \ 
dask, when used with
  arrays with more than two dimensions.
  (:issue:`5629`). By `Deepak Cherian <https://github.com/dcherian>`_.
- Support for directly opening remote files as string paths (for example, \ 
``s3://bucket/data.nc``)
  with ``fsspec`` when using the ``h5netcdf`` engine (:issue:`9723`, :pull:`9797`).
  By `James Bourbeau <https://github.com/jrbourbeau>`_.
- Re-implement the :py:mod:`ufuncs` module, which now dynamically dispatches to the
  underlying array's backend. Provides better support for certain wrapped array types
  like ``jax.numpy.ndarray``. (:issue:`7848`, :pull:`9776`).
  By `Sam Levang <https://github.com/slevang>`_.
- Speed up loading of large zarr stores using dask arrays. (:issue:`8902`)
  By `Deepak Cherian <https://github.com/dcherian>`_.

Breaking Changes
~~~~~~~~~~~~~~~~
- The minimum versions of some dependencies were changed
   2024-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862)
Log message:
py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
   2024-10-14 08:46:10 by Thomas Klausner | Files touched by this commit (325)
Log message:
*: clean-up after python38 removal
   2024-09-14 10:34:23 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-xarray: updated to 2024.9.0

v2024.09.0 (Sept 11, 2024)

This release drops support for Python 3.9, and adds support for grouping by \ 
:ref:`multiple arrays <groupby.multiple>`, while providing numerous \ 
performance improvements and bug fixes.
   2024-08-03 09:23:54 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-xarray: updated to 2024.7.0

v2024.07.0 (Jul 30, 2024)

This release extends the API for groupby operations with various `grouper
objects <groupby.groupers_>`, and includes improvements to the documentation
and numerous bugfixes.
   2024-06-14 22:11:58 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-xarray: updated to 2024.6.0

v2024.06.0 (Jun 13, 2024)
-------------------------
This release brings various performance optimizations and compatibility with the \ 
upcoming numpy 2.0 release.

Performance
~~~~~~~~~~~
- Small optimization to the netCDF4 and h5netcdf backends (:issue:`9058`, \ 
:pull:`9067`).
- Small optimizations to help reduce indexing speed of datasets (:pull:`9002`).
- Performance improvement in `open_datatree` method for Zarr, netCDF4 and \ 
h5netcdf backends (:issue:`8994`, :pull:`9014`).

Bug fixes
~~~~~~~~~
- Preserve conversion of timezone-aware pandas Datetime arrays to numpy object arrays
  (:issue:`9026`, :pull:`9042`).
- :py:meth:`DataArrayResample.interpolate` and \ 
:py:meth:`DatasetResample.interpolate` method now
  support arbitrary kwargs such as ``order`` for polynomial interpolation \ 
(:issue:`8762`).

Documentation
~~~~~~~~~~~~~
- Add link to CF Conventions on packed data and sentence on type determination \ 
in the I/O user guide (:issue:`9041`, :pull:`9045`).

Internal Changes
~~~~~~~~~~~~~~~~
- Migrates remainder of ``io.py`` to ``xarray/core/datatree_io.py`` and
  ``TreeAttrAccessMixin`` into ``xarray/core/common.py`` (:pull:`9011`).
- Compatibility with numpy 2 (:issue:`8844`, :pull:`8854`, :pull:`8946`).