compute_distance_age_mass_metallicity_weights

beast.physicsmodel.grid_and_prior_weights.compute_distance_age_mass_metallicity_weights(_tgrid, distance_prior_model={'name': 'flat'}, age_prior_model={'name': 'flat'}, mass_prior_model={'name': 'kroupa'}, met_prior_model={'name': 'flat'})[source]

Computes the distance and age-mass-metallicity grid and prior weights on the BEAST model spectra grid

Parameters:
  • _tgrid (BEAST model spectra grid.)

  • distance_prior_model (dict) – dict including prior model name and parameters

  • age_prior_model (dict) – dict including prior model name and parameters

  • mass_prior_model (dict) – dict including prior model name and parameters

  • met_prior_model (dict) – dict including prior model name and parameters

Returns:

  • Grid and prior weight columns updated by multiplying by the

  • the distance and age-mass-metallicity weight.