I modelled a holographic lens as a pure phase object that reimages a point source at (0, 0, -200) into (0, 0, 200) with a numerical aperture ranging from 0.1 to 0.9.
This program shows the spot diagram generated by a point source located at (X, Y, -200). When X and Y are not equal to 0, the field dependent aberrations distort the spot diagram.
The program also shows a zoomed version of the spot diagram with the RMS radius of the raytraced spot.
This program calculates the spot diagram generated by a holographic lens for a point source located in different field positions.