Set of functions for performing common optical computations. Module descriptions below.
Module Functions
- Diffraction limited spot size calculation.
- Determine F-number from EFL and aperture diameter.
- Calculate half angle from NA (numerical aperture).
- Snells law to compute angle of refraction.
- Irradiance in W/cm2
- Paraxial Optical Computations, which include:
- Object and Image distance calculations given EFL and magnification
- Thin lens image distance
- EFL of two thin lenses
- Thick lens EFL given two surface radii, index and center thickness
- Thin prism deviation
Matrix Functions
- Create an optical ray suitable for matrix propagation.
- General transfer matrix from (A, B, C, D) parameters
- Free space propagation matrix
- Refraction matrix
- Thin lens matrix
- Ray propagation function
Parse the ohara downloaded catalog (csv format), and creates a new cleaned up data frame with glass type and sellmeier coeffs for all glass types. Output in json and binary (pickled)formats.
Also prints out an interactive plot of the glass types. Glass name and index are displayed when hovered over with the cursor.
- Currently uses Ohara file version 20171130
- Todo: Add Schott catalog
Plot Zernike polynomials. Indexing uses the OSA/ANSI single index scheme. Can plot the first 14 modes.
Some example screenshots below: