acceptance#

esis.flights.f1.optics.acceptance(reference, pointing, edges=None, frames=(9, 12, 15, 18, 21, 24), frames_shifts=None, instrument=None, num_scene=401, device=None, num_sky=1600, num_tile=8, fraction_valid=0.8, anchor=1, path=None, directory=None, seed=0)[source]#

Score a reference fit on frames it was not fit to, without an inversion.

Three measurements per frame and channel: the merit against the AIA proxy scene with that frame’s pointing applied; the coalignment, which is the length of the median tile shift of the channel’s sky against the anchor’s at each aligned line (shift_<line>, how far the channel is misregistered as a whole) and the rms scatter of the tiles about that median (scatter_<line>, the distortion still differing between the two), both in detector pixels on the anchor’s scale; and the residual of the reference’s window outlines against the measured edges.

Parameters:
  • reference (DistortionParameters) – The reference parameters of every channel.

  • pointing (QTable) – The per-frame pointing, see fit_distortion_pointing().

  • edges (None | QTable) – The measured window edges, see measure_window_edges().

  • frames (tuple[int, ...]) – The frames to score.

  • frames_shifts (None | tuple[int, ...]) – The frames whose coalignment alone is measured, which needs no proxy scene and so is cheap; None measures every frame of the flight. The rows of frames not in frames carry no merit.

  • instrument (None | Instrument) – The instrument model, see fit_distortion_reference().

  • num_scene (int) – The number of samples along each axis of the resampled scene.

  • device (None | str) – The device the merit runs on.

  • num_sky (int) – The number of samples along each axis of the common sky grid.

  • num_tile (int) – The number of tiles along each axis when measuring shifts.

  • fraction_valid (float) – The fraction of a tile which must lie inside both windows for its shift to count. Looser than the alignment’s, since the octagon’s diagonal sides and the gap between windows cut into many tiles.

  • anchor (int) – The channel the others are compared with.

  • path (None | str | Path) – Where to save the table, if anywhere.

  • directory (None | str | Path) – The directory the log is written to.

  • seed (int) – The seed of the samples every channel is linearized on, see esis.optics.LinearMerit.

Returns:

  • A table with a row per frame and channel (the correlation, and the)

  • median shift against the anchor at each aligned line in pixels; the

  • outline residual per channel is in the metadata.

Return type:

QTable