scippneutron.two_theta#

scippneutron.two_theta(da)#

Extract the scattering angle from a data array or dataset.

The angle is defined as in Bragg’s law. See the beamline documentation for a full definition.

Parameters:

da (Union[DataArray, Dataset]) – Get or compute the scattering angle from coords and attrs of this.

Returns:

Variable – Twice the scattering angle.