Solved

# Mapping defocused and PSF deviation across the FOV

• 2 replies
• 34 views

• Monochrome
• 7 replies

Hi,

I need to create two maps (grids) presenting deviation of:

• best, on-axis focus vs its position on the filed ( on-axis focus vs the amount of off-axis defocus)
• on-axis PSF vs off-axis PSF

The closest things I found in Zemax is Grid Distortion. How to get started with this mapping? Where from to extract this information.  I don’t mind long and laborious work :) I will be grateful for any tips.

With regards,

Marzanna Szwaj

icon

Best answer by MichaelH 17 March 2023, 19:25

View original

### 2 replies

Userlevel 5
+2

Hi Marzanna,

• For the best focus, this is a little subjective because you typically need to know what you’re looking for in your field.  I would suggest determining the MTF frequency of your most important feature and then use FFT Through Focus MTF (Analyze > MTF).  This analysis will shift the focal plane & plot the MTF value for the defined frequency.  You can then see for your different fields where the best focal position is
• Grid Distortion will only trace the uniform Chief Ray values centered on the select Field.  The red bracket you show in your image is not comparing on-axis to off-axis positions but rather it’s showing the paraxial Chief Ray (paraxial ray trace) location to the real Chief Ray (real ray trace) location for a given field position:
• If you need PSF centroid locations, I would suggest setting up your Field Data Editor with all the field points you want (you can use the Field Wizard to create a Uniform XY grid) and then use the Merit Function with `CEHX`/`CEHY` operands.  This will calculate the centroid location in X/Y for the Huygens PSF (you cannot use the FFT PSF because FFT is calculated in pupil space while Huygens is calculated at the image plane).  This will give you X/Y values w.r.t. to the local vertex of the image plane.  You can then use `PARX`/`PARY` to get the paraxial Chief Ray location (which would be the red bracket you have shown above) or simply compare each off-axis CEHX/CEHY to the on-axis CEHX/CEHY.

Hi Michael,

Thank you for your advice. I have a feeling that I wasn’t clear in my question - my apology.

So this is my system, 2 galvo mirrors, scan, tube, and paraxial lens.

1. 2 galvo mirrors generate an image plane ( with numbers of coordinates) on scan lens surface using different scan angles
1. due to optical components the path of the rays  some of those coordinates will be shifted on the field plane

I am expected that this shift will increase with the distance from the centre of the image. I need to set a few coordinates points in the form of the map for different scanning angles, and measure the shift between them for example the deviation between points (-2, 2) and (-2’, 2).

Regarding PSF, I cannot check it yet, my Zemax is crushing when I am using this tool.

Regards,

Marzanna