measure_channel_shifts#

esis.optics.measure_channel_shifts(linears, frames, sky, wavelengths, anchor=1, num_tile=6, mask_windows=True, axis=('sky_x', 'sky_y'), fraction_valid=0.95)[source]#

Measure every channel’s tile shifts against the anchor on the sky.

Each channel’s frame is read onto the sky grid through its linearized system at every wavelength, inside the window that wavelength illuminates, and cross-correlated tile by tile with the anchor’s. This is the measurement step of align_channels(), on its own so that the same numbers can be taken frame by frame through a flight.

Parameters:
Returns:

  • For every channel but the anchor, one ShiftField per line, in

  • sky-grid samples; and the anchor’s detector pixels per sky sample along

  • each axis of the sky at each line, which converts them to pixels.

Return type:

tuple[dict[int, list[ShiftField]], list[float]]