xdas.coordinates.InterpCoordinate.get_indexer#

InterpCoordinate.get_indexer(value, method=None)[source]#

Return the integer index for a label value via inverse interpolation.

Parameters:
  • value (scalar, str (ISO datetime), or array-like) – Label(s) to locate.

  • method (str, optional) – Forwarded to xinterp.inverse (e.g. "ffill", "bfill").

Return type:

int or numpy.ndarray