diff --git a/doc/api.rst b/doc/api.rst index f4a6dc6677d..b46d807e8d4 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -1616,6 +1616,7 @@ These classes are building blocks for more complex Indexes: indexes.CoordinateTransform indexes.CoordinateTransformIndex indexes.NDPointIndex + indexes.TreeAdapter The Index base class for building custom indexes: diff --git a/doc/whats-new.rst b/doc/whats-new.rst index f97f12ffc9f..b00215ad74e 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -7,22 +7,25 @@ What's New .. _whats-new.2025.07.1: -v2025.07.1 (unreleased) ------------------------ +v2025.07.1 (July 09, 2025) +-------------------------- + +This release brings a lot of improvements to flexible indexes functionality, including new classes +to ease building of new indexes with custom coordinate transforms (:py:class:`indexes.CoordinateTransformIndex`) +and tree-like index structures (:py:class:`indexes.NDPointIndex`). +See a `new gallery `_ showing off the possibilities enabled by flexible indexes. + +Thanks to the 7 contributors to this release: +Benoit Bovy, Deepak Cherian, Dhruva Kumar Kaushal, Dimitri Papadopoulos Orfanos, Illviljan, Justus Magin and Tom Nicholas New Features ~~~~~~~~~~~~ +- New :py:class:`xarray.indexes.NDPointIndex`, which by default uses :py:class:`scipy.spatial.KDTree` under the hood for + the selection of irregular, n-dimensional data (:pull:`10478`). + By `Benoit Bovy `_. - Allow skipping the creation of default indexes when opening datasets (:pull:`8051`). By `Benoit Bovy `_ and `Justus Magin `_. -Breaking changes -~~~~~~~~~~~~~~~~ - - -Deprecations -~~~~~~~~~~~~ - - Bug fixes ~~~~~~~~~ @@ -35,7 +38,7 @@ Bug fixes Documentation ~~~~~~~~~~~~~ - +- A `new gallery `_ showing off the possibilities enabled by flexible indexes. Internal Changes ~~~~~~~~~~~~~~~~ @@ -63,9 +66,6 @@ New Features - Expose :py:class:`~xarray.indexes.RangeIndex`, and :py:class:`~xarray.indexes.CoordinateTransformIndex` as public api under the ``xarray.indexes`` namespace. By `Deepak Cherian `_. -- New :py:class:`xarray.indexes.NDPointIndex`, which by default uses :py:class:`scipy.spatial.KDTree` under the hood for - the selection of irregular, n-dimensional data (:pull:`10478`). - By `Benoit Bovy `_. - Support zarr-python's new ``.supports_consolidated_metadata`` store property (:pull:`10457``). by `Tom Nicholas `_. - Better error messages when encoding data to be written to disk fails (:pull:`10464`). diff --git a/xarray/indexes/__init__.py b/xarray/indexes/__init__.py index 2cba69607f3..20aa5a75929 100644 --- a/xarray/indexes/__init__.py +++ b/xarray/indexes/__init__.py @@ -10,7 +10,7 @@ PandasIndex, PandasMultiIndex, ) -from xarray.indexes.nd_point_index import NDPointIndex +from xarray.indexes.nd_point_index import NDPointIndex, TreeAdapter from xarray.indexes.range_index import RangeIndex __all__ = [ @@ -21,4 +21,5 @@ "PandasIndex", "PandasMultiIndex", "RangeIndex", + "TreeAdapter", ] pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy