ess.reduce.live.roi.apply_selection#

ess.reduce.live.roi.apply_selection(data, *, selection, norm=1.0)[source]#

Apply selection to data.

Parameters:
  • data (TypeVar(T, DataArray, Variable)) – Data to filter.

  • selection (Variable) – Variable with indices to select.

  • norm (float, default: 1.0) – Normalization factor to apply to the selected data. This is used for cases where indices may be selected multiple times.

Returns:

tuple[TypeVar(T, DataArray, Variable), Variable] – Filtered data and scale factor.