From 6db4a0b74a54f468557d58e456842c3914d28c18 Mon Sep 17 00:00:00 2001 From: TomNicholas Date: Sun, 6 Oct 2024 12:32:37 -0400 Subject: [PATCH] keep indexes in lat lon selection to dodge #9475 --- doc/user-guide/hierarchical-data.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/user-guide/hierarchical-data.rst b/doc/user-guide/hierarchical-data.rst index a1f0f578381..5f11e1e762e 100644 --- a/doc/user-guide/hierarchical-data.rst +++ b/doc/user-guide/hierarchical-data.rst @@ -788,12 +788,10 @@ We can also still perform all the same operations on the whole tree: .. ipython:: python :okexcept: - dt.sel(lat=75, lon=300) + dt.sel(lat=[75], lon=[300]) dt.std(dim="time") -(TODO: The first one repeats coordinates in the result due to https://github.com/pydata/xarray/issues/9475) - (TODO: The second one fails due to https://github.com/pydata/xarray/issues/8949) .. _overriding-inherited-coordinates: