as_built#

esis.flights.f1.optics.as_built(grid=None, axis_channel='channel', num_distribution=0, seed=None)[source]#

Load the as-built optical model, focused and pointed at the sensor.

The measured radii leave the as-built model imaging the O V line about eight pixels from where the design puts it. _as_built_focused() moves each grating along the optic axis until the spots are as small as the design’s, which happens to carry the line most of the way back, since the same error in the radius causes both the defocus and the displacement. It stops a pixel or two short.

The instrument which flew was aligned as well as focused, so this model tips and tilts each grating afterwards, by a few arcseconds about \(y\) and hundredths of an arcsecond about \(x\), until the center of the field of view lands where esis.optics.Sensor.position_image says it should.

The alignment is found for each sensor wherever the tolerance puts it across the optic axis, since the gratings of the instrument which flew were pointed at the sensors where they sat. Along the axis, the focus is found for the sensors where the design puts them, and the tolerance is added afterward, as in _as_built_focused().

This is the model of the instrument that flew, and the one to use. as_built_unfocused() and _as_built_focused() are the steps on the way to it, kept for comparison rather than for use.

Parameters:
  • grid (None | ObjectVectorArray) – sampling of wavelength, field, and pupil positions that will be used to characterize the optical system.

  • axis_channel (str) – The name of the logical axis corresponding to changing camera channel.

  • num_distribution (int) – number of Monte Carlo samples to draw when computing uncertainties

  • seed (None | int) – seed for the random number generator which draws the Monte Carlo samples, or None to draw different samples every time

Return type:

Instrument

Examples

Confirm the O V line lands where the sensor says it should.

import astropy.units as u
import esis

instrument = esis.flights.f1.optics.as_built(num_distribution=0)

error = instrument.position_line(
    esis.flights.f1.spectrum.O_V.wavelength,
) - instrument.camera.sensor.position_image

error.length.to(u.um)
ScalarArray(
    ndarray=[1.55749317e-06, 1.38588984e-06, 2.23186469e-06, 7.45668216e-06] um,
    shape={'channel': 4},
)