correct_gband#

agabpylib.gaia.edrthree.correct_gband(bp_rp, astrometric_params_solved, phot_g_mean_mag, phot_g_mean_flux)#

Correct the G-band fluxes and magnitudes for the input list of Gaia EDR3 photometry.

Parameters:
  • bp_rp (float or array of float) – The (BP-RP) colour listed in the Gaia EDR3 archive.

  • astrometric_params_solved (int or array of int) – The astrometric solution type listed in the Gaia EDR3 archive.

  • phot_g_mean_mag (float or array of float) – The G-band magnitude as listed in the Gaia EDR3 archive.

  • phot_g_mean_flux (float or array of float) – The G-band flux as listed in the Gaia EDR3 archive.

Returns:

phot_g_mean_mag_corrected, phot_g_mean_flux_corrected – The corrected G-band magnitudes and fluxes. The corrections are only applied to sources with a 2-parameter or 6-parameter astrometric solution fainter than G=13, for which a (BP-RP) colour is available.

Return type:

float or array of float

Notes

This function should only be used with photometry from Gaia EDR3. Gaia DR3 already includes these corrections.

Examples

>>> gmag_corr, gflux_corr = correct_gband(bp_rp, astrometric_params_solved, phot_g_mean_mag, phot_g_mean_flux)