scippneutron.source_position#

scippneutron.source_position(da)#

Extract the position of the neutron source from a data array or dataset.

Parameters:

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

Returns:

Variable – The source position.