skip to main content

gaia data release 4 documentation

16.3 Apsis modules

16.3.5 FLAME

Author(s): Orlagh L. Creevey

16.3.5.1 Goal

The goal of the Final Luminosity Mass Age Estimator, FLAME, module is to derive the mass and evolutionary-related parameters of Gaia sources: luminosity, radius, radial velocity correction due to the gravitational redshift, age and evolution stage of the star, along with upper and lower confidence intervals and a flag. In addition, the following model parameters associated with the mass and age are also published: model luminosity, model effective temperature, model surface gravity, model metallicity, and the median log posterior. Two versions of the parameters are produced and these are found in the ap_xp and ap_rvs tables. Details of the FLAME methodology, input models, assumptions, and performances, are discussed in Creevey et al. (2026b).

16.3.5.2 Models

There are two types of models that are used by FLAME. The first of these are atmosphere models from which the bolometric corrections (BC) are derived, see Section 16.2.5.1 and Section 16.2.5.2, and these are used for evaluating the luminosity of the star through the equation

ℒ=100.4⁢(Mbol,⊙−[MG+B⁢CG]). (16.30)

where B⁢CG=B⁢CG⁢(Teff,log⁡g,[Fe/H],[α/Fe]) and Mbol,⊙=4.74 mag (Mamajek et al. 2015). The BC are available from the Gaia DR4 software and tools web pages. For stars with Teff between 2500 and 8000 K, the MARCS model atmospheres are used, while for stars hotter than 8000 K we use the LL models (Shulyak et al. 2004), and these are matched at Teff = 8000 K for each combination of {log⁡g,[Fe/H],[α/Fe]}.

The second type of models used in FLAME are the BaSTI stellar evolution models (Hidalgo et al. 2018), see Section 16.2.5.3, which are used for the inference of mass, age, global metallicity, and evolution stage.

16.3.5.3 Inputs

The input data to the FLAME module comprise a set of atmospheric parameters (Teff, [Fe/H], log⁡g, [α/Fe]), the magnitude G, a distance, and an estimate of interstellar extinction, AG. FLAME runs on two flavours of input atmospheric parameters, the GSP-Phot parameters and the GSP-Spec ones, and therefore produces two sets of results. For the GSP-Phot ones we use the [M/H] parameter which already accounts for α-enhancement, see Equation 16.24, and [α/Fe] = 0. The input parameters are listed in the top part of Table 16.15.

16.3.5.4 Outputs

The outputs of the FLAME module are mass and evolutionary parameters, see Section 16.3.5.1. These are accompanied by an upper and lower confidence interval corresponding to 68%. Auxiliary parameters include a quality flag and a log posterior value. FLAME results are found in the two tables ap_xp and ap_rvs where the input parameters are also found. The results in the ap_xp table are based on the atmospheric parameters, distance and extinction produced by GSP-Phot. The results in the ap_rvs table are based on calibrated atmospheric parameters produced by GSP-Spec, the extinction derived by GSP-Phot, while the parallax is used as the distance estimator. The output parameters are listed along with the input ones in the bottom part of Table 16.15.

Table 16.15: Input data to the FLAME module and output archive parameters. The associated uncertainties or confidence intervals are also used and given on output. See Table 16.1 for the description of the parameters.
ap_xp ap_rvs parameter
teff_gspphot teff_gspspec_calib Teff
logg_gspphot logg_gspspec_calib log⁡g
mh_gspphot mh_gspspec_calib [M/H]
alphafe_gspspec_calib [α/Fe]
distance_gspphot parallax d
phot_g_mean_flux phot_g_mean_flux G
ag_gspphot ag_gspphot AG
lum_flame lum_flame_ spec ℒ
radius_flame radius_flame_spec ℛ
gravredshift_flame gravredshift_flame_spec RV correction for gravitational redshift
mass_flame mass_flame_spec ℳ
age_flame age_flame_spec τ
evolstage_flame evolstage_flame_spec ϵ
mh_flame_model mh_flame_model_spec [M/H] (model)
logg_flame_model logg_flame_model_spec log⁡g (model)
lum_flame_model lum_flame_model_spec ℒ (model)
teff_flame_model teff_flame_model_spec Teff (model)
logposterior_flame logposterior_flame_spec median log posterior
bc_flame bc_flame_spec BCG
flags_flame flags_flame_spec quality flags

16.3.5.5 Method

The method employed in FLAME is separated in two parts, first estimating the observational properties, then deriving the model-dependent properties, and is applied on a source-by-source level. The first algorithm algo1 uses the input data to evaluate the bolometric correction and then the stellar luminosity, ℒ, using Equation 16.30. The stellar radius is then derived from ℒ and the input Teff using the Stefan-Boltzmann law. Furthermore the radial velocity, R⁢V, correction for the gravitational redshift is derived from the radius and the input surface gravity, g, using

R⁢VG⁢R=G⁢MR⁢c=G⁢MR2⁢Rc=g⁢Rc, (16.31)

where c is the speed of light in vacuum (and G, R, M are the Newtonian constant of gravitation and the stellar radius and mass, respectively). We refer to these as the observational properties.

In a second step, algo2 derives the mass, age, evolutionary stage and model metallicity (only three of these are independent). The parameters are estimated based on a Bayesian inference method invoking a Markov Chain Monte Carlo solver, and follows the implementation described by Lebreton and Reese (2020). The implementation and validation of the method are described in Creevey et al. (2026b).

16.3.5.6 Scope

The FLAME module only analyses sources that have been previously processed by GSP-Phot or GSP-Spec. In addition, we only retained results for sources if they satisfied all of the following criteria.
ap_xp:

  • •

    G <19

  • •

    0.0001<ℒ/ℒ⊙<106

  • •

    [M/H]>−3.9

  • •

    if |Teff−15000 K|<10 K, then we only retain the sources satisfying the criteria 10<ℒ/ℒ⊙<10000

In ap_rvs:

  • •

    0.0001<ℒ/ℒ⊙<106

  • •

    [M/H],[M/H]calib>−3.9

  • •

    1000⁢K<Teff,Teff,calib<12000⁢K

  • •

    −1<log⁡g,log⁡gcalib<4.9

16.3.5.7 Uses and limitations

We have defined a flag field flags_flame in the ap_xp table and flags_flame_spec in the ap_rvs table, which is a string that takes the form of ‘ABCD’ where A, B, C, D are integers between 0 and 6. Flag A attests to the quality of the input non-CU8 data, flags B and C indicate if there is a warning concerning the CU8 input and FLAME output data, while flag D is processing information only. Flags with values of 0 indicate ‘nothing to report’. However, we emphasize strongly that a non-zero flag does not mean that the result is bad or should be discarded. It is given purely as a help to the user to come up with their own guidelines to exploit the FLAME results, and should in no way be used to guide the user on the use of astrometry, photometry, spectroscopy or the GSP-Phot and GSP-Spec results. The flags are defined below and Table 16.16 lists the definitions of the parameters used in the flag assignment.

Table 16.16: Definition of parameters used in FLAME flags as described in Section 16.3.5.7.
parameter description link to datamodel
fG flux in G phot_g_mean_flux
σfG error in fG phot_g_mean_flux_error
fB⁢P flux in GBP phot_bp_mean_flux
σfB⁢P error in fB⁢P phot_bp_mean_flux_error
fR⁢P flux in GRP phot_rp_mean_flux
σfR⁢P error in fR⁢P error phot_ rp_mean_flux_error
fR⁢V⁢S/σfR⁢V⁢S expected SNR in RVS rv_expected_sig_to_noise
π parallax parallax
σπ parallax error parallax_error
νeff effective wavenumber used in astrometry (×1000) nu_eff_used_in_astrometry
σP/P relative error in parameter P
  • •

    ’A’ pertains to the quality of the input data that are not produced by Apsis, i.e. astrometry, photometry and spectroscopy. These are rough quality indicators on the FLAME results.
    In flags_flame:

    • –

      0: {fG/σfG>2000} AND {π/σπ>20} AND {fB⁢P/σfB⁢P>1300} AND {fR⁢P/σfR⁢P>1500}

    • –

      1: not ’0’, not ’2’, not ’3’

    • –

      2: {fG/σfG<800} OR {π/σπ<3} OR {fB⁢P/σfB⁢P<800} OR {fR⁢P/σfR⁢P<1000}

    • –

      3: {fG/σfG<800} AND {π/σπ<3} AND {fB⁢P/σfB⁢P<800} AND {fR⁢P/σfR⁢P<1000}

    In flags_flame_spec:

    • –

      0: {fG/σfG>2000} AND {π/σπ>20} AND {fR⁢V⁢S/σfR⁢V⁢S>50}

    • –

      1: not ’0’, not ’2’, not ’3’

    • –

      2: {fG/σfG<800} OR {π/σπ<3} OR {fR⁢V⁢S/σfR⁢V⁢S<10}

    • –

      3: {fG/σfG<800} AND {π/σπ<3} AND {fR⁢V⁢S/σfR⁢V⁢S<10}

  • •

    ’B’ pertains to any known issue at the time of processing of the input Apsis data, such as being outside of an expected interval or an unrealistic small uncertainty. It only takes a value of 0 or 1.
    In flags_flame:

    • –

      0: nothing to report

    • –

      1: one of the following is possible

      • *

        {νeff<1.8 AND Teff<18183⁢νeff−23609 }

      • *

        {νeff>1.79 AND Teff<178433⁢νeff−312060 }

      • *

        {Teff>3149 AND Teff<3151 }

      • *

        {Teff>6570 AND Teff<6620 AND [M/H]<−3 }

      • *

        {Teff>11960 AND Teff<12100 AND [M/H]<−2.05 }

      • *

        {Teff>7000 AND Teff<8000 AND Teff>1000⁢σTeff+3000 }

      • *

        |Teff−(15000.4−0.824859⁢σTeff+0.00149773⁢σTeff2)|<20

      • *

        AG <0

    In flags_flame_spec:

    • –

      0: nothing to report

    • –

      1: one of the following is possible

      • *

        σTeff<0.01 K

      • *

        {Teff<4700 K AND π>25 mas AND ℒ>1.10⁢ℒ⊙}

      • *

        σlog⁡g>1.5

      • *

        σ[M/H]>1.5

  • •

    ’C’ pertains to any known issue in the FLAME results at the time of processing FLAME data. It indicates if uncertainties should be treated with caution or if a stellar mass is very low and thus the age should be treated with caution.

    • –

      0: nothing to report

    • –

      1: one of the following is possible

      • *

        σR/R<0.001

      • *

        σL/L<0.005

      • *

        σM/M>σL/L/6+0.006

    • –

      2: the star has a mass <0.5  ℳ⊙, and one should be be aware that ages are very uncertain

    • –

      3: combination of ’1’ and ’2’

  • •

    ’D’ gives information concerning the removal of certain parameters that were outside of the allowed ranges.

    • –

      0: No parameters were removed.

    • –

      1: The age parameter was removed because it exceeded the allowed range of [0, 16] Gyr.

    • –

      2: The age and evolstage parameters were removed because the latter exceeded the allowed range of [0, 2000].

    • –

      3: The age, evolstage, and mass parameters were removed because the mass exceeded the allowed limits of [0, 10.5]  ℳ⊙.

    • –

      4: The mass, age, evolstage and RV correction for gravitational redshift were removed because the latter exceeded the allowed range [0.0001, 10]  km⁢s−1.

    • –

      5: The mass, age, evolstage, RV correction for gravitational redshift, and radius were removed because the radius exceeded the allowed range [0.0001, 1500]  ℛ⊙.

    • –

      6: The source is most likely a white dwarf and therefore only the luminosity parameter is retained.

    It is possible that the processing did not produce some parameters due to a convergence issue. These are not flagged. For example, if a mass is missing but flag D = 0, then this means that the mass was not produced during the processing.

An example of how to query on the above flags is:

select top 10 source_id, flags_flame
from gaiadr4.ap_xp
where flags_flame LIKE ’01__’

In addition to the flags provided above, there are several caveats that one should be aware of:

  • •

    The parameters from FLAME are evaluated on a source-by-source basis and thus no constraints from the environment of the star are used, e.g. if it is a member of a cluster or a binary.

  • •

    We have inflated the input uncertainties on the GSP-Phot and GSP-Spec parameters by an amount that has been determined empirically by using external datasets of well characterised stars which ensures a compatibility within 3⁢σ. In practice this means that we imposed the addition in quadrature of 60 K, 0.1 dex, and 0.1 dex on the Teff, log⁡g and [M/H] parameters from GSP-Spec, while for GSP-Phot-input we modified the Markov Chain parameters by adding a scaling factor of 50 K to the Teff in the samples, and maintaining all of the correlations in the other parameters.

  • •

    The models only consider stellar evolution from the main sequence to the tip of the red giant branch. If a source is not within this evolutionary phase then it will likely have incorrect model parameters and thus they need to be taken with care. This is particularly the case for red clump stars where the limitations in the data do not allow the distinction between the lower red giant branch and red clump.

  • •

    Masses are derived down to a lower limit of 0.1  ℳ⊙. It is possible that an age has also been estimated, but the user should be aware that ages of M stars below typically 0.5  ℳ⊙ are very difficult to determine with evolutionary models and in particular using the constraints we impose (ℒ, Teff, [M/H], log⁡g).

  • •

    The GSP-Spec-based FLAME results have been obtained using preliminary calibrated values of Teff, log⁡g, and [M/H], which are not identical to the ones made available to the user in Gaia DR4. The changes are expected to be small but some changes may be more important.

16.3.5.8 Changes with respect to Gaia DR3

The changes with respect to DR3 concern (1) the updated mass and age inference method, and the removal of the narrow solar-metallicity prior, (2) the publication of the model-related parameters Teff, [M/H], log⁡g, and ℒ, (3) the processing of sources to G <19, and (4) the use and description of the flag field.