scippneutron.scattered_beam#

scippneutron.scattered_beam(da)#

Extract the scattered beam vector from a data array or dataset.

This is the direction and length of the secondary flight path, i.e. from sample to detector.

Parameters:

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

Returns:

Variable – The scattered beam.