ess.reflectometry.binning

This module is focused on enabling different binning for reflectometry data.

ess.reflectometry.binning.q_bin(data, bins)

Return data that has been binned in the q-bins passed.

Parameters
  • data (Union[ess.reflectometry.ReflData.data, ess.amor.AmorData.data, ess.amor.AmorReference.data]) – reflectometry data to be binned

  • bins (scipp._scipp.core.Variable) – q-bin edges

Returns

Data array binned into qz with resolution

Return type

scipp._scipp.core.DataArray

Raises

NotFoundError is qz or tof coordinate cannot be found

ess.reflectometry.binning.two_dimensional_bin(data, bins)

Perform some arbitrary two-dimensional binning.

Parameters
  • data (Union[ess.reflectometry.ReflData.data, ess.amor.AmorData.data, ess.amor.AmorReference.data]) – reflectometry data to be binned

  • bins (Tuple[scipp._scipp.core.Variable]) – Bin edges

Returns

Data array binned into given bin edges

Return type

scipp._scipp.core.DataArray