14.4.3 Flags
Following the computation of the internally-calibrated spectra from Section 14.4.1 and Equation 14.1, various flags can be raised that may indicate corrupted input epoch spectra or potential erroneous processing of these spectra. The epoch BP/RP fluxes reported in bp_flux and rp_flux are computed from Equations 14.1 and 14.6 as
| (14.11) |
with uncertainties given by bp_flux_error and rp_flux_error as
| (14.12) |
Note that we voluntarily do not propagate the uncertainties on in this equation as the product of two correlated normal random variables is generally not normally distributed (Cui et al. 2016). Instead, the uncertainties provided in Equation 14.12 are associated with the relative epoch fluxes rather than with the absolute epoch fluxes. The bp_flux and rp_flux fields have associated flags, bp_flag and rp_flag, respectively, that are binary combinations of
-
1.
0: Nothing to report.
-
2.
1: All samples were masked in this epoch spectrum.
-
3.
2: This epoch spectrum has a negative integrated flux ().
-
4.
4: More than 10% of the samples were rejected in this epoch spectrum.
-
5.
8: Mean square error is larger than 2 in the unmasked samples ().
where are the residuals associated with the -th epoch spectrum, as given by Equation 14.2.
Flags associated with the internal-calibration procedure are reported in the bp_flags and rp_flags field of the grav_lens_xp_mean_spectrum table and are bit-wise combinations of
-
1.
0: Nothing to report.
-
2.
1: Some epoch spectra have all samples masked.
-
3.
2: Some epoch spectra have negative integrated flux.
-
4.
4: Some epoch spectra have more than 10% of rejected samples.
-
5.
8: Some epoch spectra have mean square error that is larger than 2.
-
6.
16: Reduced chi-squared 2.
-
7.
32: The noise level is larger than 2 ().
-
8.
64: Degree of freedom, 0.
-
9.
128: More than 10% of the samples were rejected during the fit.
-
10.
256: This spectrum is based on less than 5 epoch transits.
-
11.
512: This spectrum has a 2.
-
12.
1024: This spectrum has a negative total flux, .
-
13.
2048: The internal calibration procedure did not converge.
Finally, flags associated to the comparison of the internally-calibrated spectra, described in Section 14.4.2, are reported in the flag field of the grav_lens_combination table and are composed of a binary combination of
-
1.
0: Nothing to report.
- 2.
- 3.
- 4.
-
5.
8: The chi-square solution did not converge. The chi-square comparison is wrong.