analysis.lateral_color#
Lateral Color Analysis
This module provides a lateral color (transverse chromatic aberration) analysis for optical systems.
Kramer Harrison, 2026
Classes
|
Lateral color: change of real chief-ray image height with wavelength. |
- class LateralColor(optic: Optic, wavelengths: str | list = 'all', num_points: int = 64)[source]#
Lateral color: change of real chief-ray image height with wavelength.
For each field point
Hyinlinspace(0, 1, num_points)(Hx = 0) the real chief ray is traced at every wavelength. The lateral color of a wavelength is its chief-ray height on the image surface minus that of the primary wavelength,y(λ) - y(primary), in the image surface’s local frame and in lens units (mm). A positive value means that wavelength lands at a larger local y than the primary wavelength, which is farther from the axis when the image height is positive.- Parameters:
- Variables:
optic (Optic) – The optic object being analyzed.
wavelengths (list) – The wavelengths being analyzed.
num_points (int) – The number of field points.
data (dict) –
"Hy", the normalized field coordinates, and"lateral_color", one array per wavelength (same order aswavelengths) holding the lateral color in mm. Chief rays that do not reach the image surface give NaN.