Skip to main content

Can I judge that the ray coordinates of EXIT PUPIL from the Ray Tracing command in Zemax have all three information: Lens DistorStion, Ralative Illumination, and PSF?

Hi @kivahan75,

The RAYTRACE command is meant to trace a single ray through the current system. From that command, you can extract information about intercept coordinates and direction cosines, using RAYX, RAYY, RAYZ, RAYL, RAYM, RAYN, etc.

In order to extract information like PSF, Distortion, or Relative Illumination from your system, you can simply call the relevant merit function operands:

PSF - CEHX, CEHY, STRH, etc.
Distortion - DISC, DISG, etc.
Relative Illumination - RELI

I hope this helps with your ZPL macro!

Best,
Ethan


Reply