opticks.contrast_model.optics_mtf
Optics-level MTF models (ideal diffraction, aberration transfer factor, field-dependent Seidel model, PSF-to-MTF conversion).
Mirrors the pattern of detector_mtf.py — houses the backend
functions that MTF_Model_1D classmethods in mtf.py delegate to.
Classes
|
Third-order (Seidel) wave-aberration model with field dependence. |
- class FieldAberrationModel(w040, w131_edge, w222_edge, w220_edge, reference_wavelength)[source]
Third-order (Seidel) wave-aberration model with field dependence.
Stores the four MTF-affecting Seidel coefficients evaluated at the edge of the field (H = 1) as astropy length Quantities (nm, µm, …). Distortion (W_311) is omitted because it does not affect the MTF.
The field parameter h is the normalised radial distance from the optical axis: 0 at centre, 1 at the edge of the field.
- Parameters:
w040 (
Quantity[``”length”``]) – Spherical aberration (field-independent peak coefficient)w131_edge (
Quantity[``”length”``]) – Coma peak coefficient at H = 1w222_edge (
Quantity[``”length”``]) – Astigmatism peak coefficient at H = 1w220_edge (
Quantity[``”length”``]) – Field curvature / Petzval peak coefficient at H = 1reference_wavelength (
Quantity[``”length”``]) – Wavelength used for “in-waves” conversions
- classmethod from_quantity(w040, w131_edge, w222_edge, w220_edge, reference_wavelength)[source]
Create from peak coefficients expressed as physical lengths.
- Return type:
- Parameters:
w040 (
Quantity[``”length”``]) – Spherical aberration (e.g. 27.5 nm)w131_edge (
Quantity[``”length”``]) – Coma at H = 1w222_edge (
Quantity[``”length”``]) – Astigmatism at H = 1w220_edge (
Quantity[``”length”``]) – Field curvature at H = 1reference_wavelength (
Quantity[``”length”``]) – Reference wavelength forw_rms_waves
- Returns:
- classmethod from_waves(w040, w131_edge, w222_edge, w220_edge, reference_wavelength)[source]
Create from peak coefficients expressed in waves.
- Return type:
- Parameters:
- Returns:
- to_zernikes(h_x, h_y, n_terms=15)[source]
ANSI-ordered Zernike coefficient vector at field point (h_x, h_y).
The mapping follows Mahajan (Ch. 7) and Wyant & Creath. Tilt balance for coma is omitted (tilt only shifts the PSF centroid and does not affect MTF).
- Return type:
- Parameters:
- Returns:
Quantity– Zernike coefficient array (in nm), ANSI-ordered