get_photometry#
- cogsworth.obs.observables.get_photometry(filters, population=None, final_bpp=None, final_pos=None, distances=None, ignore_extinction=False, assume_mw_galactocentric=False, main_filter=None, silence_bounds_warning=False)[source]#
Computes photometry subject to dust extinction using the MIST boloemtric correction grid
- Parameters:
- filterslist of str
Which filters to compute photometry for (e.g. [‘Gaia_G_EDR3’, ‘Gaia_BP_EDR3’, ‘Gaia_RP_EDR3’])
- population
Population The population for which to compute photometry (either supply this or a final_bpp and final_pos)
- final_bpp
DataFrame A dataset of COSMIC binaries at present day - must include these columns: [“sep”, “metallicity”] and for each star it must have the columns [“teff”, “lum”, “mass”, “rad”, “kstar”]
- final_pos
Quantity Final positions of each system in the galactocentric frame. The first len(self) entries of each are for bound binaries or primaries, then the final self.disrupted.sum() entries are for disrupted secondaries. Any missing orbits (where orbit=None will be set to np.inf for ease of masking.
- ignore_extinctionbool
Whether to ignore extinction
- assume_mw_galactocentricbool
Whether to assume the population positions/distances are in the Milky Way galactocentric frame
- main_filterstr
The main filter to use for calculating which star is observed as the brighter one
- silence_bounds_warningbool
Whether to silence the out-of-bounds warning from the MIST bolometric correction grid
- Returns:
- photometry
DataFrame Photometry and extinction information for supplied COSMIC binaries in desired filters
- photometry