scippneutron.incident_beam#

scippneutron.incident_beam(da)#

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

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

Parameters:

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

Returns:

Variable – The incident beam.