6.9. tracer.presets Submodule

6.9.1. tracer.presets.geometry

optrace.tracer.presets.geometry.arizona_eye(adaptation=0.0, pupil=5.7, r_det=8, pos=None)

Arizona Eye Model from Schwiegerling J. Field Guide to Visual and Ophthalmic Optics. SPIE Publications: 2004. Includes Eye adaption and chromatic behaviour. Matches different on- and off-axis aberrations of the eye. See the source above for more info.

Parameters:
  • adaptation (float) – adaptation value (optical power), defaults to 0dpt

  • pupil (float) – pupil diameter in mm, default tos 5.7mm

  • r_det (float) – radial size of detector (retina), defaults to 8mm

  • pos (list) – position of the Group

Returns:

Group containing all the elements

Return type:

Group

optrace.tracer.presets.geometry.ideal_camera(cam_pos, z_g, b=10, r=6, r_det=6)

Create an ideally imaging camera, consisting of a lens and a detector area. Returns a Group of both elements.

Parameters:
  • cam_pos (ndarray) – position of camera

  • z_g (float) – position of object

  • b (float) – image distance (distance between lens and detector)

  • r (float) – radius of the camera lens

  • r_det (float) – radius of the detector area

Returns:

Group object with Lens and Detector

Return type:

Group

optrace.tracer.presets.geometry.legrand_eye(pupil=5.7, r_det=8.0, pos=None)

LeGrand full theoretical eye, a paraxial schematic eye model, taken from Schwiegerling J. Field Guide to Visual and Ophthalmic Optics. SPIE Publications: 2004.

Properties: Infinity adapted eye. Eye approximation by spherical surfaces. Only useful for first order optical properties of the eye.

Parameters:
  • pupil (float) – pupil diameter in mm, defaults to 5.7mm

  • r_det (float) – radial detector (=retina) size, defaults to 8mm

  • pos (list) – position of the Group

Returns:

Group containing all elements

Return type:

Group

6.9.2. tracer.presets.image

optrace.tracer.presets.image.ETDRS_chart(s=None, extent=None)

ETDRS Chart standard. Source: https://commons.wikimedia.org/wiki/File:ETDRS_Chart_2.svg

Parameters:
  • s (ndarray | list) – image side lengths list in mm (x length, y length)

  • extent (list | ndarray) – image extent in the form [xs, xe, ys, ye]

Returns:

GrayscaleImage object

Return type:

GrayscaleImage

optrace.tracer.presets.image.ETDRS_chart_inverted(s=None, extent=None)

ETDRS Chart inverted. Edited version of: https://commons.wikimedia.org/wiki/File:ETDRS_Chart_2.svg

Parameters:
  • s (ndarray | list) – image side lengths list in mm (x length, y length)

  • extent (list | ndarray) – image extent in the form [xs, xe, ys, ye]

Returns:

GrayscaleImage object

Return type:

RGBImage

optrace.tracer.presets.image.cell(s=None, extent=None)

Stable Diffusion image from https://lexica.art/prompt/960d8351-f474-4cc0-b84b-4e9521754064

Parameters:
  • s (ndarray | list) – image side lengths list in mm (x length, y length)

  • extent (list | ndarray) – image extent in the form [xs, xe, ys, ye]

  • kwargs – additional keyword arguments for the creation of the RGBImage object

Returns:

RGBImage object

Return type:

RGBImage

optrace.tracer.presets.image.color_checker(s=None, extent=None)

Color checker chart. Source: https://commons.wikimedia.org/wiki/File:X-rite_color_checker,_SahiFa_Braunschweig,_AP3Q0026_edit.jpg

Parameters:
  • s (ndarray | list) – image side lengths list in mm (x length, y length)

  • extent (list | ndarray) – image extent in the form [xs, xe, ys, ye]

Returns:

RGBImage object

Return type:

RGBImage

optrace.tracer.presets.image.documents(s=None, extent=None)

Photo of a keyboard and documents on a desk. Source: https://www.pexels.com/photo/documents-on-wooden-surface-95916/

Parameters:
  • s (ndarray | list) – image side lengths list in mm (x length, y length)

  • extent (list | ndarray) – image extent in the form [xs, xe, ys, ye]

Returns:

RGBImage object

Return type:

RGBImage

optrace.tracer.presets.image.eye_test_vintage(s=None, extent=None)

Photo of a vintage eye test chart. Source: https://www.publicdomainpictures.net/en/view-image.php?image=284944&picture=eye-test-chart-vintage

Parameters:
  • s (ndarray | list) – image side lengths list in mm (x length, y length)

  • extent (list | ndarray) – image extent in the form [xs, xe, ys, ye]

Returns:

RGBImage object

Return type:

RGBImage

optrace.tracer.presets.image.fruits(s=None, extent=None)

Photo of fruits on a tray. Source: https://www.pexels.com/photo/sliced-fruits-on-tray-1132047/

Parameters:
  • s (ndarray | list) – image side lengths list in mm (x length, y length)

  • extent (list | ndarray) – image extent in the form [xs, xe, ys, ye]

Returns:

RGBImage object

Return type:

RGBImage

optrace.tracer.presets.image.grid(s=None, extent=None)

White grid on black background with 10x10 cells. Useful for distortion characterization. Source: Own creation.

Parameters:
  • s (ndarray | list) – image side lengths list in mm (x length, y length)

  • extent (list | ndarray) – image extent in the form [xs, xe, ys, ye]

Returns:

GrayscaleImage object

Return type:

GrayscaleImage

optrace.tracer.presets.image.group_photo(s=None, extent=None)

Photo of a group of people in front of a blackboard. Source: https://www.pexels.com/photo/photo-of-people-standing-near-blackboard-3184393/

Parameters:
  • s (ndarray | list) – image side lengths list in mm (x length, y length)

  • extent (list | ndarray) – image extent in the form [xs, xe, ys, ye]

Returns:

RGBImage object

Return type:

RGBImage

optrace.tracer.presets.image.hong_kong(s=None, extent=None)

Photo of a Hong Kong street at night. Source: https://www.pexels.com/photo/cars-on-street-during-night-time-3158562/

Parameters:
  • s (ndarray | list) – image side lengths list in mm (x length, y length)

  • extent (list | ndarray) – image extent in the form [xs, xe, ys, ye]

Returns:

RGBImage object

Return type:

RGBImage

optrace.tracer.presets.image.interior(s=None, extent=None)

Green sofa in an interior room. Source: https://www.pexels.com/photo/green-2-seat-sofa-1918291/

Parameters:
  • s (ndarray | list) – image side lengths list in mm (x length, y length)

  • extent (list | ndarray) – image extent in the form [xs, xe, ys, ye]

Returns:

RGBImage object

Return type:

RGBImage

optrace.tracer.presets.image.landscape(s=None, extent=None)

Landscape image of a mountain and water scene. Source: https://www.pexels.com/photo/green-island-in-the-middle-of-the-lake-during-daytime-724963/

Parameters:
  • s (ndarray | list) – image side lengths list in mm (x length, y length)

  • extent (list | ndarray) – image extent in the form [xs, xe, ys, ye]

Returns:

RGBImage object

Return type:

RGBImage

optrace.tracer.presets.image.siemens_star(s=None, extent=None)

Siemens Star Image. Source: Own creation.

Parameters:
  • s (ndarray | list) – image side lengths list in mm (x length, y length)

  • extent (list | ndarray) – image extent in the form [xs, xe, ys, ye]

Returns:

GrayscaleImage object

Return type:

GrayscaleImage

optrace.tracer.presets.image.tv_testcard1(s=None, extent=None)

TV test card 1. Source: https://commons.wikimedia.org/wiki/File:TestScreen_square_more_colors.svg

Parameters:
  • s (ndarray | list) – image side lengths list in mm (x length, y length)

  • extent (list | ndarray) – image extent in the form [xs, xe, ys, ye]

Returns:

RGBImage object

Return type:

RGBImage

optrace.tracer.presets.image.tv_testcard2(s=None, extent=None)

TV test card 2. Source: https://commons.wikimedia.org/wiki/File:Bulgarian_colour_testcard.png

Parameters:
  • s (ndarray | list) – image side lengths list in mm (x length, y length)

  • extent (list | ndarray) – image extent in the form [xs, xe, ys, ye]

Returns:

RGBImage object

Return type:

RGBImage

optrace.tracer.presets.image.all_presets: list

list with all Image presets

optrace.tracer.presets.image.scenes: list

photography-like images for viewing natural scenes

optrace.tracer.presets.image.test_images: list

test images for color, resolution or distortion

6.9.3. tracer.presets.light_spectrum

optrace.tracer.presets.light_spectrum.FDC: LightSpectrum

Spectral Lines F, D, C

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.F_eC_: LightSpectrum

Spectral Lines F’, e, C’

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.FdC: LightSpectrum

Spectral Lines F, d, C

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.FeC: LightSpectrum

Spectral Lines F, e, C

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.a: LightSpectrum

Standard Illuminant A. Typical, domestic, tungsten-filament lighting. Color temperature of 2856K.

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.all_presets: list

all light spectrum presets in one list

optrace.tracer.presets.light_spectrum.c: LightSpectrum

Standard Illuminant C. Obsolete, average / north sky daylight. Color temperature of 6774K.

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.d50: LightSpectrum

Standard Illuminant D50. Horizon light. Color temperature of 5003K.

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.d55: LightSpectrum

Standard Illuminant D55. Mid-morning/mid-afternoon daylight. Color temperature of 5503K.

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.d65: LightSpectrum

Standard Illuminant D65. Noon daylight. Color temperature of 6504K

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.d75: LightSpectrum

Standard Illuminant D75. North sky daylight. Color temperature of 7504K.

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.e: LightSpectrum

Standard Illuminant E. Equal energy radiator with a color temperature of 5455K.

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.f11: LightSpectrum

Standard Illuminant F11. Narrowband triband fluorescent lamp in R, G, B regions. Color temperature of 4000K.

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.f2: LightSpectrum

Standard Illuminant F2. Fluorescent lamp with two semi-broadband emissions. Color temperature of 4230K.

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.f7: LightSpectrum

Standard Illuminant F7. Broadband fluorescent lamp with multiple phosphors. Color temperature of 6500K.

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.led_b1: LightSpectrum

Standard Illuminant LED-B1. Blue excited phosphor type LED with a color temperature of 2733K.

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.led_b2: LightSpectrum

Standard Illuminant LED-B2. Blue excited phosphor type LED with a color temperature of 2998K.

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.led_b3: LightSpectrum

Standard Illuminant LED-B3. Blue excited phosphor type LED with a color temperature of 4103K.

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.led_b4: LightSpectrum

Standard Illuminant LED-B4. Blue excited phosphor type LED with a color temperature of 5109K.

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.led_b5: LightSpectrum

Standard Illuminant LED-B5. Blue excited phosphor type LED with a color temperature of 6598K.

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.led_bh1: LightSpectrum

Standard Illuminant LED-BH1. Hybrid type white LED with added red. Color temperature of 2851K.

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.led_rgb1: LightSpectrum

Standard Illuminant LED-RGB1. Tri-led RGB source with a color temperature of 2840K.

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.led_v1: LightSpectrum

Standard Illuminant LED-V1. Violet enhanced blue excited phosphor LED with a color temperature of 2724K.

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.led_v2: LightSpectrum

Standard Illuminant LED-V2. Violet enhanced blue excited phosphor LED with a color temperature of 4070K.

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.lines: list

all lines spectrum presets in one list

optrace.tracer.presets.light_spectrum.rgb_lines: LightSpectrum

Spectral Lines 450, 550, 650nm with a power ratio producing neutral D65 white

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.srgb: list

sRGB channel and white presets in one list

optrace.tracer.presets.light_spectrum.srgb_b: LightSpectrum

Exemplary sRGB B Primary Spectrum

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.srgb_b_power_factor

Power ratios for white mixing from sRGB primaries

optrace.tracer.presets.light_spectrum.srgb_g: LightSpectrum

Exemplary sRGB G Primary Spectrum

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.srgb_g_power_factor

Power ratios for white mixing from sRGB primaries

optrace.tracer.presets.light_spectrum.srgb_r: LightSpectrum

Exemplary sRGB R Primary Spectrum

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.srgb_r_power_factor

Power ratios for white mixing from sRGB primaries

optrace.tracer.presets.light_spectrum.srgb_w: LightSpectrum

Exemplary sRGB White Spectrum

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.light_spectrum.standard: list

standard illuminant presets in one list

optrace.tracer.presets.light_spectrum.standard_f: list

standard illuminants for fluorescent lamp light

optrace.tracer.presets.light_spectrum.standard_led: list

standard illuminants for LED light

optrace.tracer.presets.light_spectrum.standard_natural: list

natural standard illuminants. Includes illuminant A and E as well as daylight illuminants

6.9.4. tracer.presets.psf

optrace.tracer.presets.psf.airy(r=1.0)

Airy disk kernel, where d is the diameter of the zeroth order.

Parameters:

r (float) – resolution limit in µm (half the core airy disk diameter) in µm

Returns:

image object

Return type:

GrayscaleImage

optrace.tracer.presets.psf.circle(d=1.0)

Two dimensional circle kernel with diameter d.

Parameters:

d (float) – circle diameter in µm

Returns:

image object

Return type:

GrayscaleImage

optrace.tracer.presets.psf.gaussian(sig=0.5)

Two dimensional gaussian kernel. d describes the diameter in µm of the function that approximately matches the zeroth order of an airy disk.

Parameters:

sig (float) – gaussian sigma in µm

Returns:

image object

Return type:

GrayscaleImage

optrace.tracer.presets.psf.glare(sig1=0.5, sig2=3.0, a=0.15)

Glare kernel. This glare consists of two gaussian kernels. See gaussian() for details on the diameter. Factor a describes the relative amplitude of the larger kernel to the smaller one.

Parameters:
  • sig1 (float) – sigma in µm of first gaussian, the focus

  • sig2 (float) – sigma in µm of second gaussian, the glare

  • a (float) – relative brightness of the second one compared to the first one

Returns:

image object

Return type:

GrayscaleImage

optrace.tracer.presets.psf.halo(sig1=0.5, sig2=0.25, r=4.0, a=0.3)

Halo kernel. It consists of a central 2D gaussian and an outer gaussian ring.

Parameters:
  • sig1 (float) – sigma of gaussian focus in µm

  • sig2 (float) – sigma of radial ring in µm

  • r (float) – radial position of ring center in µm

  • a (float) – relative brightness of ring compared to focus

Returns:

image object

Return type:

GrayscaleImage

6.9.5. tracer.presets.refraction_index

optrace.tracer.presets.refraction_index.BAF10: RefractionIndex

N_BAF10 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=BAF10&page=SCHOTT

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.BAK1: RefractionIndex

N-BAK1 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=BAK1&page=SCHOTT

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.BASF64: RefractionIndex

N-BASF64 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-BaSF&page=N-BASF64

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.BK7: RefractionIndex

N-BK7 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=BK7&page=SCHOTT

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.BaF2: RefractionIndex

BaF2 (Barium fluoride), see https://refractiveindex.info/?shelf=main&book=BaF2&page=Malitson

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.COC: RefractionIndex

Topas COC 5013 at 25°C, see G. Khanarian, Hoechst Celanese - “Optical properties of cyclic olefin copolymers”, Table 1

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.COP: RefractionIndex

Zeonex E48R, see https://refractiveindex.info/?shelf=other&book=ZeonexE48R&page=Sultanova

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.CR39: RefractionIndex

CR-39, PADC, Poly(allyl diglycol carbonate), see Conrady equation coefficients from ZEMAX model for CR39, thread https://community.zemax.com/got-a-question-7/cr-39-eyeglass-lenses-677 attached file ophthalmic.zip, line 50 in ophthalmic.agf

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.CaF2: RefractionIndex

CaF2 (Calcium fluoride), see https://refractiveindex.info/?shelf=main&book=CaF2&page=Malitson

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.F2: RefractionIndex

N-F2 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-F&page=F2

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.FK51A: RefractionIndex

N-FK51A (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=FK51A&page=SCHOTT

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.Finalite: RefractionIndex

Sola Finalite from https://eyewiki.org/Lens_Material_Properties

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.K5: RefractionIndex

N-K5 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-K&page=N-K5

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.LAF2: RefractionIndex

N-LAF2 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-LaF&page=N-LAF2

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.LAK22: RefractionIndex

N-LAK22 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-LaK&page=N-LAK22

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.LAK8: RefractionIndex

N-LAK8 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-LaK&page=N-LAK8

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.LASF44: RefractionIndex

N-LASF44 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-LaSF&page=N-LASF44

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.LASF9: RefractionIndex

N-LASF9 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=LASF9&page=SCHOTT

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.LF5: RefractionIndex

N-LF5 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-LF&page=LF5

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.MR7: RefractionIndex

MR-7 from https://eyewiki.org/Lens_Material_Properties

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.MgF2: RefractionIndex

MgF2 (Magnesium fluoride), see https://refractiveindex.info/?shelf=main&book=MgF2&page=Dodge-o

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.Ormex: RefractionIndex

Essilor Ormex from https://eyewiki.org/Lens_Material_Properties

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.PC: RefractionIndex

Polycarbonate, see # https://refractiveindex.info/?shelf=organic&book=polycarbonate&page=Sultanova

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.PDSM: RefractionIndex

Polydimethylsiloxane, see https://refractiveindex.info/?shelf=organic&book=polydimethylsiloxane&page=Schneider-RTV615

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.PEI: RefractionIndex

Polyetherimide, see https://refractiveindex.info/?shelf=organic&book=polyetherimide&page=Zhang

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.PET: RefractionIndex

Polyethylene terephthalate, see https://refractiveindex.info/?shelf=organic&book=polyethylene_terephthalate&page=Zhang linearly extrapolated from 400nm to 380nm

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.PMMA: RefractionIndex

Poly(methyl methacrylate), see https://refractiveindex.info/?shelf=organic&book=poly%28methyl_methacrylate%29&page=Szczurowski

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.PS: RefractionIndex

Polystyren, see https://refractiveindex.info/?shelf=3d&book=plastics&page=ps

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.PVC: RefractionIndex

PVC, see https://refractiveindex.info/?shelf=organic&book=polyvinil_chloride&page=Zhang linearly extrapolated for 380 and 390nm

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.SF10: RefractionIndex

N-SF10 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SF10&page=SCHOTT

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.SF11: RefractionIndex

N-SF11 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SF11&page=SCHOTT

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.SF5: RefractionIndex

N-SF5 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SF5&page=SCHOTT

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.SF6: RefractionIndex

N-SF6 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-SF&page=SF6

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.SF66: RefractionIndex

N-SF66 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-SF&page=N-SF66

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.SK14: RefractionIndex

N-SK14 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-SK&page=N-SK14

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.SSK8: RefractionIndex

N-SSK8 (SCHOTT), see https://refractiveindex.info/?shelf=glass&book=SCHOTT-SSK&page=N-SSK8

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.Spectralite: RefractionIndex

Sola Spectralite from https://eyewiki.org/Lens_Material_Properties

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.air: RefractionIndex

Air at 550nm, 15°C, 1013.25hPa, neglecting dispersion, see https://refractiveindex.info/?shelf=other&book=air&page=Ciddor

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.all_presets: list

all refraction index presets in one list

optrace.tracer.presets.refraction_index.diamond: RefractionIndex

Diamond, see https://refractiveindex.info/?shelf=main&book=C&page=Peter

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.ethanol: RefractionIndex

C2H5OH (Ethanol), see https://refractiveindex.info/?shelf=organic&book=ethanol&page=Sani-formula

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.fused_silica: RefractionIndex

Fused silica (fused quartz), see https://refractiveindex.info/?shelf=glass&book=fused_silica&page=Malitson

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.glasses: list

glass refraction index presets

optrace.tracer.presets.refraction_index.ice: RefractionIndex

Water Ice at -7°C, see https://refractiveindex.info/?shelf=3d&book=crystals&page=ice (from table in full database record) but interpolated so it starts at 380nm

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.misc: list

misc refraction index presets

optrace.tracer.presets.refraction_index.plastics: list

plastics refraction index presets

optrace.tracer.presets.refraction_index.soda_lime: RefractionIndex

Clear soda lime silica window glass

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.vacuum: RefractionIndex

Vacuum

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.refraction_index.water: RefractionIndex

Water at 20.0°C, see https://refractiveindex.info/?shelf=main&book=H2O&page=Daimon-20.0C

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

6.9.6. tracer.presets.spectral_lines

all lines specified with name, element, color

optrace.tracer.presets.spectral_lines.A_: float

Name: A’, Element: K, Color: IR-A

optrace.tracer.presets.spectral_lines.C: float

Name: C, Element: H, Color: red

optrace.tracer.presets.spectral_lines.C_: float

Name: C’, Element: Cd, Color: red

optrace.tracer.presets.spectral_lines.D: float

Name: D, Element: Na, Color: yellow

optrace.tracer.presets.spectral_lines.F: float

Name: F, Element: H, Color: blue

optrace.tracer.presets.spectral_lines.FDC: list

FDC line combination

optrace.tracer.presets.spectral_lines.F_: float

Name: F’, Element: Cd, Color: blue

optrace.tracer.presets.spectral_lines.F_eC_: list

F’eC’ line combination

optrace.tracer.presets.spectral_lines.FdC: list

FdC line combination

optrace.tracer.presets.spectral_lines.FeC: list

FeC line combination

optrace.tracer.presets.spectral_lines.all_line_combinations: list

all line combination presets in one list

optrace.tracer.presets.spectral_lines.all_lines: list

all line presets in one list. Order by value.

optrace.tracer.presets.spectral_lines.d: float

Name: d, Element: He, Color: yellow

optrace.tracer.presets.spectral_lines.e: float

Name: e, Element: Hg, Color: green

optrace.tracer.presets.spectral_lines.g: float

Name: g, Element: Hg, Color: blue

optrace.tracer.presets.spectral_lines.h: float

Name: h, Element: Hg, Color: violet

optrace.tracer.presets.spectral_lines.r: float

Name: r, Element: He, Color: red

optrace.tracer.presets.spectral_lines.rgb: list

dominant wavelengths of sRGB primaries, with order b, g, r. With image render mode ‘Absolute’ we get the primaries.

6.9.7. tracer.presets.spectrum

optrace.tracer.presets.spectrum.all_presets: list

all spectrum presets in one list

optrace.tracer.presets.spectrum.x: Spectrum

CIE 1931 2° colorimetric standard observer x curve

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.spectrum.xyz_observers: list

x, y, z observer curve spectrum presets in one list

optrace.tracer.presets.spectrum.y: Spectrum

CIE 1931 2° colorimetric standard observer y curve

Parameters:

wl (list | ndarray | float)

Return type:

ndarray

optrace.tracer.presets.spectrum.z: Spectrum

CIE 1931 2° colorimetric standard observer z curve

Parameters:

wl (list | ndarray | float)

Return type:

ndarray