The catalogue / Labels and quality flags
Labels and quality flags¶
Each label source stores a value, an error and a quality flag for every parameter of every star. This page lists the parameters and says when a label is valid.
Parameters¶
The file’s parameter_names attribute lists the parameters in the order of
the label columns. APOGEE and GALAH use the same order. A default build has
11 parameters:
Column |
Name |
Parameter |
Units |
|---|---|---|---|
0 |
|
effective temperature |
K |
1 |
|
surface gravity, log g |
dex, with g in cm s⁻² |
2 |
|
[Fe/H] |
dex |
3–10 |
|
[X/Fe] of Mg, C, Si, Ni, Al, Ca, N and Mn |
dex |
The extended set¶
With the option --elements extended, scripts/build_catalogue_v2.py adds
nine elements after Mn: O, Na, K, Ti, V, Cr, Co, Ba and Sr. The catalogue
then has 20 parameters.
A label source does not measure every element. If its input file has no column for an element, the builder stores that element with error 0. These labels are never valid.
[X/Fe] and [X/H]¶
By default the abundances are relative to iron, [X/Fe]. With the option
--abundance-scale x_h, the builder stores them relative to hydrogen, [X/H],
and the names end in _h, such as mg_h. The file’s abundance_scale
attribute records the choice.
The builder derives [X/H] from [X/Fe] and [Fe/H]:
where σ is the error of each abundance. GALAH abundances are always derived.
For APOGEE, the builder copies [X/H] from the allStar X_H column where the
input file has it, and the error from X_H_ERR. It derives [X/H] only for an
element without that column. APOGEE measures no Ba or Sr, so its ba_h and
sr_h labels have error 0 and are never valid.
When a label is valid¶
A label is valid when its error is positive and its flag is 0; Preprocessing gives the masking rule. The builder flags a label whose value or error is not finite, and stores it with value 0 and error 0.
In a built catalogue each flag is 0 or 1. The loaders take a max_flag_bits
argument, which limits the number of flagged labels of a star. A star with
more flagged labels loses all its labels: load_labels and
load_merged_sparse mask them, and load_for_training drops the star. With
0, one flagged label removes the whole star. With −1, the loaders remove only
the flagged labels.
Quality flags per label source¶
The builder sets a label’s flag from the flags of its label source:
Parameter |
APOGEE flag set when |
GALAH flag set when |
|---|---|---|
|
|
|
|
|
|
|
|
|
each [X/Fe] |
|
|
each [X/H] copied from |
|
|
each derived [X/H] |
|
|
Other ASPCAPFLAG bits, such as VMICRO_WARN, do not flag Teff or log g. The
bits are defined in the
APOGEE bitmask documentation
and the GALAH flag documentation.