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
| (16.30) |
where and mag (Mamajek et al. 2015). The BC are available from the Gaia DR4 software and tools web pages. For stars with 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 = 8000 K for each combination of {,,[/Fe]}.
16.3.5.3 Inputs
The input data to the FLAME module comprise a set of atmospheric parameters (, , , [/Fe]), the magnitude , a distance, and an estimate of interstellar extinction, . 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 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.
| ap_xp | ap_rvs | parameter |
|---|---|---|
| teff_gspphot | teff_gspspec_calib | |
| logg_gspphot | logg_gspspec_calib | |
| mh_gspphot | mh_gspspec_calib | |
| alphafe_gspspec_calib | [/Fe] | |
| distance_gspphot | parallax | |
| phot_g_mean_flux | phot_g_mean_flux | |
| ag_gspphot | ag_gspphot | |
| 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 | (model) |
| logg_flame_model | logg_flame_model_spec | (model) |
| lum_flame_model | lum_flame_model_spec | (model) |
| teff_flame_model | teff_flame_model_spec | (model) |
| logposterior_flame | logposterior_flame_spec | median log posterior |
| bc_flame | bc_flame_spec | |
| 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 using the Stefan-Boltzmann law. Furthermore the radial velocity, , correction for the gravitational redshift is derived from the radius and the input surface gravity, , using
| (16.31) |
where is the speed of light in vacuum (and , , 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
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.
| parameter | description | link to datamodel |
|---|---|---|
| flux in | phot_g_mean_flux | |
| error in | phot_g_mean_flux_error | |
| flux in | phot_bp_mean_flux | |
| error in | phot_bp_mean_flux_error | |
| flux in | phot_rp_mean_flux | |
| error in error | phot_ rp_mean_flux_error | |
| expected SNR in RVS | rv_expected_sig_to_noise | |
| parallax | parallax | |
| parallax error | parallax_error | |
| effective wavenumber used in astrometry () | nu_eff_used_in_astrometry | |
| relative error in parameter |
-
•
’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: AND AND AND
-
–
1: not ’0’, not ’2’, not ’3’
-
–
2: OR OR OR
-
–
3: AND AND AND
In flags_flame_spec:
-
–
0: AND AND
-
–
1: not ’0’, not ’2’, not ’3’
-
–
2: OR OR
-
–
3: AND AND
-
–
-
•
’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
-
*
{ AND }
-
*
{ AND }
-
*
{ AND }
-
*
{ AND AND }
-
*
{ AND AND }
-
*
{ AND AND }
-
*
-
*
-
*
In flags_flame_spec:
-
–
0: nothing to report
-
–
1: one of the following is possible
-
*
K
-
*
{ K AND mas AND }
-
*
-
*
-
*
-
–
-
•
’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
-
*
-
*
-
*
-
*
-
–
2: the star has a mass , 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] .
-
–
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 . In practice this means that we imposed the addition in quadrature of 60 K, 0.1 dex, and 0.1 dex on the , and 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 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 (, , , ).
-
•
The GSP-Spec-based FLAME results have been obtained using preliminary calibrated values of , , and , 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 , , , and , (3) the processing of sources to , and (4) the use and description of the flag field.