sky_model_to_remove¶
-
sitelle.fit.sky_model_to_remove(mean_spectrum, axis, sky_axis, sky_model)¶ This function shifts the velocity of a skymodel to match at best the skylines in a spectrum. It returns the fitted vector, that should be then subtracted from the original spectrum.
Parameters: - mean_spectrum (1D
ndarray) – The spectrum containing skylines. If it comes from an integrated region, pay attention to give the mean spectrum, i.e divided by the number of integrated pixels - axis (1D
ndarray) – Axis of the spectrum [cm-1] - sky_axis (1D
ndarray) – Axis on which the skymodel is known [cm-1] - skymodel (1D
ndarray) – Sky spectrum to be fitted
Returns: shifted_spectrum – The shifted sky spectrum, to be removed
Return type: - mean_spectrum (1D