// Example functions to control the merit function // generation for the OSLO Spot Size/Wavefront operands set // // GGG - 6-23-06 - Intial Revision // Function to add ccl names to OSLO // Can also be done via Optimizations Spreadsheet cmd add_ccls() { opt_fieldwgt(set,"user_fwgt"); opt_pupilwgt(set,"user_pwgt"); opt_colorwgt(set,"user_cwgt"); } // Function to remove ccl names to OSLO // Can also be done via Optimizations Spreadsheet cmd del_ccls() { opt_fieldwgt(set,""); opt_pupilwgt(set,""); opt_colorwgt(set,""); } // Calculate a field weight given H Squared double user_fwgt(double hsqr) { return 1.0; } // Calculate a pupil weight at relative pupil radial position Rho double user_pwgt(double rho) { return 1.0; } // Calculate a weight at the chromatic coordinate omega // by converting omega to wavelength lambda // This is for the visible using Buchdahl // otherwise the omega = lambda double user_cwgt(double lambda) { return (lambda * 2); }