To be used with
nllsqfit_bnd. Derivatives are not provided.
- Make heavy use of global variables
- Add 0th/2nd order fit, with blaze function as weighting (no need to look for a line/max if there's nothing!).
Should we use another function than RMS(dx) in fit to max? And what about a completely diffrent way to fit the arc. E.g. one could go through a peak detection scheme, and use a more-intuitive distance criterion to the peaks, still taking into account the fact that one peak should correspond to a single arc line...
- For the fit to the max, we use RMS(dx) on good points only, because the find_max routine is not very robust. We should use a mean with rejection...
Definition at line 71 of file create_mask.c.
References SnifsOptics::channel, SnifsOptics::filter, find_nearest_max(), glFITARC, glFITCONT, glframe, gllbda, gllbdapup, glmaxset, glnlbda, glnormmax, gloptics, glpixsize, glxppup, glyppup, SnifsOptics::grism, mask_param2optics(), MAXDX, print_mask_param(), RD_frame_interp(), snifs_optics_CCD2MLA(), snifs_optics_MLA2CCD(), unnorm_mask_param(), and Grism::w_disp.
Referenced by main().