measure_shifts#
- esis.optics.measure_shifts(images, num_tile, anchor, fraction_valid=0.95)[source]#
Measure the tile-by-tile shift of every channel against the anchor.
- Parameters:
images (list[ndarray]) – The sky-plane image of each channel, as returned by
sample_on_sky().num_tile (int) – The number of tiles along each axis of the sky grid.
anchor (int) – The index of the channel the others are measured against.
fraction_valid (float) – The fraction of a tile which must be on the detector in both channels for its shift to be measured. Partially valid tiles are padded with zeros, whose edges the correlation mistakes for structure, so the threshold is deliberately strict.
- Returns:
For every channel but the anchor, a list of ``(i, j, dx, dy)`` (the)
sky-grid index of the tile center and the measured shift in sky-grid
pixels.
- Return type: