Reference#

Reduction workflows#

Beam center finder#

beam_center_finder.beam_center(data, ...[, ...])

Find the beam center of a SANS scattering pattern.

beam_center_finder.center_of_mass(data)

Find the center-of-mass of the data counts.

beam_center_finder.cost(xy, *args)

Cost function for determining how close the \(I(Q)\) curves are in all four quadrants.

beam_center_finder.iofq_in_quadrants(xy, ...)

Compute the intensity as a function of Q inside 4 quadrants in Phi.

beam_center_finder.minimize(fun, x0[, args, ...])

Minimize the supplied cost function using Scipy's optimize.minimize.

Conversions#

conversions.sans_elastic([gravity, scatter])

Generate a coordinate transformation graph for SANS elastic scattering.

conversions.sans_monitor()

Generate a coordinate transformation graph for SANS monitor (no scattering).

Normalization#

normalization.solid_angle_of_rectangular_pixels(...)

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

normalization.transmission_fraction(...)

Approximation based on equations in [CalculateTransmission](https://docs.mantidproject.org/v4.0.0/algorithms/CalculateTransmission-v1.html) documentation: (Sample_T_monitor / Direct_T_monitor) * (Direct_I_monitor / Sample_I_monitor)

normalization.iofq_denominator(data, ...[, ...])

Compute the denominator term for the I(Q) normalization.

normalization.normalize(numerator, denominator)

Perform normalization of counts as a function of Q.

Common#

common.gravity_vector()

Return a vector of 3 components, defining the magnitude and direction of the Earth's gravitational field.

common.mask_range(da, mask[, name])

Mask a range on a data array.