Hi Simon,
The APOI(px, py) will return the intensity of the ray based on the System Explorer > Aperture > Apodization Factor setting, so if you have this set to Uniform (the Apodization Factor itself is hidden) or you have it set to Gaussian with an Apodization Factor set to 0, it will always return 1.0. This calculation is done without a ray trace and is simply defined by the equations in the Apodization Type of the Help File.
To get the intensity of a ray in sequential mode (either in the ZPL or API), you will need to perform a polarization ray trace. In the ZPL, this is done with the POLTRACE keyword. The following ZPL code will report the on-axis field, mid-pupil ray intensity:
PRINT "us_filt1.dll with G=2.0"
PRINT "APOI value : ", APOI(0, 0.707)
POLTRACE 0, 0, 0, 0.707, PWAV(), 1, NSUR()
PRINT "POLTRACE value : ", VEC1(1)
Hi Michael,
thank you very much. This was helpful.
Is this correct, that the transmission defined in the UDS is referring to the intensity and the aperture apodization applies an amplitude apodization?
Thanks!