Hi John,
Your images are not coming through for me.
For the Optimization Wizard, there were changes implemented about 8 years ago when OpticStudio added the MECA/MECS/MECT operands, including adding the Contrast option to the Image Quality metric and simplifying some of the other image quality metrics. When these changes were made, Zemax updated the ZOS-API by adding a ISEQOptimizationWizard2 but I don’t think they updated the ZPL keyword for DEFAULTMERIT.
Internal to OpticStudio, the DEFAULTMERIT uses enumerated values with integers starting from 0 to signify each option in a drop down for the data option. Since the data option was present before Contrast optimization was introduced, you can select this with the ZPL keyword. However, I believe that the Spatial Frequency field is a new field and therefore was never an option with the original DEFAULTMERIT keyword. The 2 options I can think of to work around this are:
- use the ZOS-API with the ISEQOptimizationWizard2
- after applying the DEFAULTMERIT keyword, loop through all rows in the MFE and update the 5th column with the
SETOPERAND keyword