ess.sans.normalization.solid_angle_of_rectangular_pixels(data, pixel_width, pixel_height)#

Solid angle computed from rectangular pixels with a ‘width’ and a ‘height’.

Note that this is an approximation which is only valid for small angles between the line of sight and the rectangle normal.

  • data (DataArray) – The DataArray that contains the positions for the detector pixels and the sample.

  • pixel_width (Variable) – The width of the rectangular pixels.

  • pixel_height (Variable) – The height of the rectangular pixels.


DataArray – The solid angle of the detector pixels, as viewed from the sample position. Any masks that have a dimension common to the dimensions of the position coordinate are retained to the output.