SBART.Quality_Control.outlier_detection

SBART.Quality_Control.outlier_detection#

Functions

compute_outliers(obs_rv, ...[, epoch])

Find outliers for the spectra of one order of one observation! :param obs_rv: RV of the given observation :type obs_rv: float :param spectra_wavelengths: :param spectra: :param spectra_mask: mask with ones in places where the data is valid :param template_wavelengths: :param template: :param template_mask: mask with ones in places where the data is valid :param tell_tolerance: To be multiplied by the median difference to use as a threshold.

compute_outliers(obs_rv, spectra_wavelengths, spectra, spectra_mask, template_wavelengths, StellarTemplate, template_mask, worker_configs, spec_uncert, order, epoch=None)#

Find outliers for the spectra of one order of one observation! :param obs_rv: RV of the given observation :type obs_rv: float :param spectra_wavelengths: :param spectra: :param spectra_mask: mask with ones in places where the data is valid :param template_wavelengths: :param template: :param template_mask: mask with ones in places where the data is valid :param tell_tolerance: To be multiplied by the median difference to use as a threshold. If equal to or below zero, nothing is done :type tell_tolerance: float

Returns:

  • new_mask (np.ndarray) – Points to be considered, i.e. mask with 1 in places to keep. It is an extension of the spectra_mask input array!

  • found (bool) – Convergence achieved

  • iterations (int) – Number of iterations needed for convergence