DEFAULTMERIT

Generates a default merit function.

Syntax:

DEFAULTMERIT type, data, reference, method, rings, arms, grid, delete, axial, lateral, start, xweight, oweight, pup_obsc

Discussion:

This keyword generates a default merit function in the Merit Function Editor. Any existing default merit function will be deleted. For details see "Modifying the merit function". The values are as follows:

type: use 0 for RMS, 1, for PTV.

data: use 0 for wavefront, 1 for spot radius, 2 for spot x, 3 for spot y, 4 for spot x + y. reference: use 0 for centroid, 1 for chief, 2 for unreferenced.

method: use 1 for Gaussian quadrature, 2 for rectangular array.

rings: the number of annular rings (Gaussian quadrature only).

arms: the number of radial arms (Gaussian quadrature only). The number of arms must be even and no less than 6.

grid: the size of the grid. Use an integer, such as 8, for an 8 x 8 grid. n must be even and no less than 4. delete: use 0 to not delete vignetted rays, 1 to delete vignetted rays.

axial: use -1 for automatic, which will use symmetry only if the system is axial symmetric. Use 1 to assume axial symmetry, 0 to not assume axial symmetry.

lateral: use 1 to ignore lateral color, 0 otherwise.

start: use -1 for automatic, which will add the default merit function after any existing DMFS operand. Otherwise use the operand number at which to add the default merit function. Any existing operands above the specified operand number will be retained.

xweight, oweight: the x direction weigh and overall weight for the merit function. Only the data "spot x + y" uses the xweight value.

pup_obsc: the pupil obscuration ratio.

Next: