shift_modes#
- esis.optics.shift_modes(fields, scale, num_sky)[source]#
Decompose a channel’s tile shifts into optical modes and what is left.
After the median shift, a translation, is removed, a field of tile shifts can still carry structure: shifts growing radially from the centre are a magnification error, a curl is a rotation, a stretch along one axis against the other is an anisotropy, and the rest is either higher-order distortion or the noise of the tiles. The linear part is fit by least squares; each mode is reported as the shift it produces at the edge of the field, so that the modes and the noise are in the same pixels. Whether what remains is structure or noise is told by the correlation of neighbouring tiles’ residuals, which noise does not have.
- Parameters:
fields (list[ShiftField]) – The tile shifts of one channel, one per line, see
measure_channel_shifts().scale (float | ndarray) – The anchor’s detector pixels per sky sample, along each axis of the sky if it has two values.
num_sky (int) – The number of samples along each axis of the sky grid, whose half width is the field’s edge.
- Returns:
A dictionary in detector pixels (
translation, the length of the)median shift;
magnification,rotation,anisotropyandshear, the shift each mode makes at the field’s edge;scatter,the rms of the tiles about the median;
residual, the rms after thelinear modes; and
correlation, the correlation of the residuals ofneighbouring tiles, dimensionless, which is near zero for noise.
- Return type: