xarray.core.indexing.explicit_indexing_adapter#
- xarray.core.indexing.explicit_indexing_adapter(key, shape, indexing_support, raw_indexing_method)[source]#
Support explicit indexing by delegating to a raw indexing method.
Outer and/or vectorized indexers are supported by indexing a second time with a NumPy array.
- Parameters
key (
ExplicitIndexer
) – Explicit indexing object.shape (
Tuple[int
,]
) – Shape of the indexed array.indexing_support (
IndexingSupport enum
) – Form of indexing supported by raw_indexing_method.raw_indexing_method (
callable()
) – Function (like ndarray.__getitem__) that when called with indexing key in the form of a tuple returns an indexed array.
- Returns
Indexing result
,in the form
ofa duck numpy-array.