rayoptics.raytr.opticalspec module
Container class for optical usage information
- class OpticalSpecs(opt_model, specsheet=None, **kwargs)[source]
Bases:
object
Container class for optical usage information
Contains optical usage information to specify the aperture, field of view, spectrum and focal position. These can be accessed via the mapping interface:
self[‘wvls’]: instance of
WvlSpec
self[‘pupil’]: instance of
PupilSpec
self[‘fov’]: instance of
FieldSpec
self[‘focus’]: instance of
FocusRange
It also maintains a repository of paraxial data.
- do_aiming
if True, iterate chief rays to stop center, else entrance pupil
- do_aiming_default = True
- property spectral_region
- property pupil
- property field_of_view
- property defocus
- class WvlSpec(wlwts=[('d', 1.0)], ref_wl=0, do_init=True, **kwargs)[source]
Bases:
object
Class defining a spectral region
A spectral region is a list of wavelengths (in nm) and corresponding weights. The central wavelength of the spectral region is central_wvl. The index into the wavelength list for central_wvl is reference_wvl.
- property central_wvl
- class PupilSpec(parent, key=('object', 'pupil'), value=1.0)[source]
Bases:
object
Aperture specification
- key
‘aperture’, ‘object’|’image’, ‘pupil’|’NA’|’f/#’
- value
size of the pupil
- pupil_rays
list of relative pupil coordinates for pupil limiting rays
- ray_labels
list of string labels for pupil_rays
- default_pupil_rays = [[0.0, 0.0], [1.0, 0.0], [-1.0, 0.0], [0.0, 1.0], [0.0, -1.0]]
- default_ray_labels = ['00', '+X', '-X', '+Y', '-Y']
- class FieldSpec(parent, key=('object', 'angle'), value=0.0, flds=[0.0], is_relative=False, do_init=True, **kwargs)[source]
Bases:
object
Field of view specification
- key
‘field’, ‘object’|’image’, ‘height’|’angle’
- value
maximum field, per the key
- fields
list of Field instances
- is_relative
if True, fields are relative to max field
- class Field(x=0.0, y=0.0, wt=1.0)[source]
Bases:
object
a single field point, largely a data container
- x
x field component
- y
y field component
- vux
+x vignetting factor
- vuy
+y vignetting factor
- vlx
-x vignetting factor
- vly
-y vignetting factor
- wt
field weight
- aim_pt
x, y chief ray coords on the paraxial entrance pupil plane
- chief_ray
ray package for the ray from the field point throught the center of the aperture stop, traced in the central wavelength
- ref_sphere
a tuple containing (image_pt, ref_dir, ref_sphere_radius)