xarray.Dataset.get_index

Dataset.get_index(key)[source]

Get an index for a dimension, with fall-back to a default RangeIndex