Lines 175 in lbl_mask are effectively removing deep lines from the mask (e.g. atomic line in Sun-like star spectra).
med_weight = np.nanmedian(np.abs(line_table['w_mask']))
weight_nsig = np.abs(line_table['w_mask']) < 10 * med_weight
# cut down the line table
line_table = line_table[weight_nsig]
this is a major issue that should probably not be hard coded, but might be important in the presence of outliers. For my goals, I commented this step.
Lines 175 in
lbl_maskare effectively removing deep lines from the mask (e.g. atomic line in Sun-like star spectra).this is a major issue that should probably not be hard coded, but might be important in the presence of outliers. For my goals, I commented this step.