scippneutron.incident_beam#

scippneutron.incident_beam(da)[source]#

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 (DataArray | Dataset) – Get or compute the incident beam from coords and attrs of this.

Returns:

Variable – The incident beam.