SBART.Quality_Control.outlier_detection#
Functions
|
Find outliers for the spectra of one order of one observation! |
- 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!
- Parameters:
obs_rv (float) – RV of the given observation
spectra_wavelengths –
spectra –
spectra_mask – mask with ones in places where the data is valid
template_wavelengths –
template –
template_mask – mask with ones in places where the data is valid
tell_tolerance (float) – To be multiplied by the median difference to use as a threshold. If equal to or below zero, nothing is done
- 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