kilopop.mappings.compute_equation_10

kilopop.mappings.compute_equation_10(viewing_angle)[source]

Compute equation 10 from Setzer et al. 2022.

Fit function that determines the average electron fraction of the material directly in the line of sight of the observer. Determined from performing a least squares fit to the BNS merger data from Radice et. al 2018.

Parameters:

viewing_angle (float or ndarray) – The orientation of the kilonova w.r.t the observer. In radians.

Returns:

electron_fraction – The mass-weighted average electron fraction of the material at the given viewing_angle or viewing-angle of the observer.

Return type:

float or ndarray