ess.sans.normalization.solid_angle#
- ess.sans.normalization.solid_angle(data, pixel_shape, transform, sample_position)[source]#
Solid angle for cylindrical pixels.
Note that the approximation is valid when the distance from sample to pixel is much larger than the length or the radius of the pixels.
- Parameters:
data (
EmptyDetector[TypeVar(ScatteringRunType,ess.reduce.nexus.types.BackgroundRun(int),ess.reduce.nexus.types.SampleRun(int))]) – The DataArray that contains the positions of the detector pixels and the position of the sample in the coords.pixel_shape (
DetectorPixelShape[TypeVar(ScatteringRunType,ess.reduce.nexus.types.BackgroundRun(int),ess.reduce.nexus.types.SampleRun(int))]) – Contains the description of the detector pixel shape.transform (
NeXusTransformation[NXdetector,TypeVar(ScatteringRunType,ess.reduce.nexus.types.BackgroundRun(int),ess.reduce.nexus.types.SampleRun(int))]) – Transformation from the local coordinate system of the detector to the coordinate system of the sample.
- Returns:
SolidAngle[TypeVar(ScatteringRunType,ess.reduce.nexus.types.BackgroundRun(int),ess.reduce.nexus.types.SampleRun(int))] – The solid angle of the detector pixels, as viewed from the sample position.