The grating mis-alignment is parameterized with a set of Gaussian
functions, whose parameters are stored in the CCF. The corresponding
probability density is according to

The parameters , , are stored in the CCF.
is the number of parameters available in the CCF. is the chromatic
magnification that scales the width of the grating mis-alignment
distribution as a function of angle of incidence and diffraction
angle. It is defined as

and is an input argument.

Additionally to the chromatic magnification, the alignment distribution is homogeniously scaled by a factor , which is stored in the CCF.

The average center of all Gaussians is calculated by

The function returns the probability distribution which
calculated from by integration per channel

The distribution will be calculated such that the peak is at the center of the bins.