xdas.coordinates.InterpCoordinate.slice_indexer#

InterpCoordinate.slice_indexer(start=None, stop=None, step=None, endpoint=True)#

Return an integer slice corresponding to the label range [start, stop].

Parameters:
  • start (label, optional) – First label to include (inclusive, via "bfill" look-up).

  • stop (label, optional) – Last label to include (inclusive by default, via "ffill" look-up).

  • step (not supported) – Reserved; raises NotImplementedError if provided.

  • endpoint (bool, optional) – If True (default), include stop in the result.

Return type:

slice