func_wlen_optimization#
- excalibuhr.utils.func_wlen_optimization(poly, *args)[source]#
cost function for optimizing wavelength solutions
- Parameters:
poly (array) – polynomial coefficients for correcting the wavelength solution
args – wave, flux: initial wavelengths and observed flux template_interp_func: model spectrum
- Returns:
correlation – minus correlation between observed and model spectra
- Return type:
float