Hi Gabriele,
What about any of the encircled energy fraction operands such as DENF, GENF, or XENF?
DENF | Diffraction Encircled Energy (fraction). This operand computes the fraction of diffraction encircled, ensquared, x only, or y only (enslitted) energy at a given distance from the reference point defined by Dist. For focal mode, the distance units are micrometers. For afocal mode, the distance units are afocal mode units. The options and settings are identical to DENC, except Dist, which here is used as the distance at which the fraction of energy is desired. See also DENC, GENC, GENF, and XENC. If the Dist value defined is beyond the point where the encircled energy is very close to 100%, the fraction returned is 1e+10; this is done for optimization efficiency. |
GENF | Geometric Encircled Energy (fraction). This operand computes the fraction of geometric encircled, ensquared, x only, or y only (enslitted) energy at a given distance from the reference point defined by Dist. The options and settings are identical to GENC, except Dist, which here is used as the distance at which the fraction of energy is desired. See also GENC, DENC, DENF, and XENC. |
XENF | Extended source encircled energy (fraction). This operand computes the fraction of extended source geometric encircled, ensquared, x only, or y only (enslitted) energy at a given distance from the reference point. The Type is 1 for encircled, 2 for x only, 3 for y only, and 4 for ensquared. When using Type 2 or 3, the fraction of energy in the PSF is calculated in the h-x, x] or o-y, y] range respectively, centered on the chosen reference point. This is the full slit width given by Dist. For example, if Dist = 20 µm, the fraction of energy is calculated for a slit width of +/- 10µm. Wave is the input wavenumber. The options and settings are identical to XENC, except Dist, which here is used as the distance at which the fraction of energy is desired. See also XENC, GENC, GENF, DENC, and DENF. |
Take care,
David
Hello David,
I had also thought, but I was unsure. Namely what make me unwillin to try them immediately was the fact you cannot insert the surface number directly where yu want to calculate the encircled energy.
I thought there was another operator. ANyway you are right I can use them with a bit of more work on the Merit function.
Thanks a lot
Gabriele
Hi Gabriele,
I understand your problem now. I hadn’t realized the operands don’t have a surface parameter until now.
It is not super obvious, but you could also try to make a user operand that retrieves the fraction of encircled energy from the actual analysis and expose the surface setting, if that makes sense.
Take care,
David
Dear David,
I thought to develop an operand which given the surface output the distance and use it as input for the GENF Operand.
Only difficulty: I have still to acquaint myself in programming but it can be a good start.
Thanks a lot
Gabriele