scippneutron.conversion.beamline.L1#

scippneutron.conversion.beamline.L1(*, incident_beam)#

Compute the length of the incident beam.

The result is the primary beam length

\[L_1 = | \mathtt{incident\_beam} |\]
Parameters:

incident_beam (Union[Variable, DataArray, Dataset, DataGroup]) – Beam from source to sample. Expects dtype=vector3.

Returns:

Union[Variable, DataArray, Dataset, DataGroup]\(L_1\)

See also

scippneutron.conversions.beamline.straight_incident_beam