ess.reduce.live.roi.select_indices_in_intervals#

ess.reduce.live.roi.select_indices_in_intervals(intervals, indices)[source]#

Return subset of indices that fall within the intervals.

Parameters:
  • intervals (DataGroup[tuple[int, int] | tuple[Variable, Variable]]) – DataGroup with dimension names as keys and tuples of low and high values. This can be used to define a band or a rectangle to selected. When low and high are scipp.Variable, the selection is done using label-based indexing. In this case indices must be a DataArray with corresponding coordinates.

  • indices (Variable | DataArray) – Variable or DataArray with indices to select from. If binned data the selected indices will be returned concatenated into a dense array.

Return type:

Variable