scippneutron.L1#

scippneutron.L1(da)#

Extract the length of the primary flight path from a data array or dataset.

This is the distance between neutron source and sample.

Parameters:

da (Union[DataArray, Dataset]) – Get or compute the primary flight path length from coords and attrs of this.

Returns:

Variable – The length of the primary flight path.