Indexes#
See also
See the Xarray gallery on custom indexes for more examples.
Creating indexes#
|
Return a fixed frequency CFTimeIndex. |
|
Return a fixed frequency datetime index. |
|
Generate a datetime array with the same frequency, start and end as another one, but in a different calendar. |
|
Create a new RangeIndex from given start, stop and step values. |
|
Create a new RangeIndex from given start / stop values and number of values. |
Built-in Indexes#
Default, pandas-backed indexes built-in to Xarray:
|
Wrap a pandas.Index as an xarray compatible index. |
|
Wrap a pandas.MultiIndex as an xarray compatible index. |
More complex indexes built-in to Xarray:
|
Custom Index for working with CF calendars and dates |
|
Xarray index implementing a simple bounded 1-dimension interval with evenly spaced, monotonic floating-point values. |
|
Xarray index for irregular, n-dimensional data. |
|
Helper class for creating Xarray indexes based on coordinate transforms. |
Building custom indexes#
These classes are building blocks for more complex Indexes:
|
Abstract coordinate transform with dimension & coordinate names. |
|
Helper class for creating Xarray indexes based on coordinate transforms. |
|
Xarray index for irregular, n-dimensional data. |
|
Lightweight adapter abstract class for plugging in 3rd-party structures like |
The Index base class for building custom indexes:
|
Base class inherited by all xarray-compatible indexes. |
|
Create a new index object from one or more coordinate variables. |
|
Create a new index by concatenating one or more indexes of the same type. |
|
Create a new index by stacking coordinate variables into a single new dimension. |
Unstack a (multi-)index into multiple (single) indexes. |
|
|
Maybe create new coordinate variables from this index. |
|
Define whether or not an index coordinate variable should be added to a new DataArray. |
Cast this xarray index to a pandas.Index object or raise a |
|
|
Maybe returns a new index from the current index itself indexed by positional indexers. |
|
Query the index with arbitrary coordinate label indexers. |
|
Return a new index from the combination of this index with another index of the same type. |
|
Query the index with another index of the same type. |
|
Compare this index with another index of the same type. |
|
Roll this index by an offset along one or more dimensions. |
|
Maybe update the index with new coordinate and dimension names. |
|
Return a (deep) copy of this index. |
The following are useful when building custom Indexes
|
Index query results. |