optics#

A generalized model of the optical system.

Module Attributes

num_interpolation

The number of nodes used to interpolate the response of each multilayer coating, and of the sensor, over the angle of incidence.

Functions

correlation(a, b[, axis])

Compute the Pearson correlation coefficient of two arrays.

correlation_raytraced(instrument, ...[, ...])

Compute the correlation of a ray-traced image with the observation.

fit_distortion(objective, parameters, bounds)

Fit distortion parameters by a seeded capture and a local polish.

polish(objective, x0, lower, upper[, scale, ...])

Polish a solution with restarted Nelder-Mead simplices.

align_channels(instruments, parameters, ...)

Align the channels to one another in their physical parameters.

measure_edges(frame, footprints[, ...])

Measure where the edges of every window cross the rows and columns of a frame.

measure_edge_steps(frame, footprints[, ...])

Fit an error-function step to every row and column crossing an outline.

measure_polygon_edges(frame, vertices[, ...])

Measure every side of a polygon's image in a frame, whatever its angle.

predict_edges(footprints, edges)

Predict the crossing of every measured edge from the model's outlines.

outline_residual(footprints, edges[, clip])

Compute the root-mean-square distance between the measured and modelled edges.

width_residual(footprints, edges[, clip])

Compute the root-mean-square error of the width of every window.

fit_distortion_outline(merit, edges, window, ...)

Place the windows on the measured edges, then re-polish the sky terms.

sky_grid(position, num[, axis])

Build a regular grid on the sky spanning the given positions.

sample_on_sky(frame, x, y)

Read a frame bilinearly at the given sensor coordinates.

measure_shifts(images, num_tile, anchor[, ...])

Measure the tile-by-tile shift of every channel against the anchor.

window_mask(footprint, shape)

Mark the pixels of a frame that lie inside one window's outline.

measure_channel_shifts(linears, frames, sky, ...)

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

median_shifts(fields, scales)

Reduce tile shifts to one median shift per channel, in detector pixels.

shift_modes(fields, scale, num_sky)

Decompose a channel's tile shifts into optical modes and what is left.

Classes

FrontAperture([translation])

A model of the entrance aperture of the instrument.

CentralObscuration([num_folds, halfwidth, ...])

A model of the central obscuration, also known as the Tuffet.

PrimaryMirror([sag, num_folds, width_clear, ...])

A model of the primary mirror of the instrument.

FieldStop([num_folds, radius_clear, ...])

A model of the field stop of the instrument.

Grating([serial_number, ...])

A model of the diffraction gratings of this instrument.

Filter([material, radius_clear, ...])

A model of the visible-light filters of the instrument.

Sensor([manufacturer, family, ...])

A model of the CCD sensors used to detect light.

Camera([sensor, gain, bits_adc, ...])

A model of the cameras developed by MSFC.

Requirements(resolution_spatial, ...)

The requirements of the ESIS optical system.

Instrument([name, axis_channel, ...])

An object which represents the entire optical system.

DistortionParameters(yaw_grating, ...[, ...])

The degrees of freedom adjusted when fitting an instrument model to images.

LinearMerit(instrument, parameters, scene, ...)

The merit of a set of DistortionParameters for one channel.

Modules

abc

Abstract classes used in this module.

mixins

Mixin classes used in this module.