kilopop.mappings.emulate_grey_opacity_from_kilonova_ejecta
- kilopop.mappings.emulate_grey_opacity_from_kilonova_ejecta(total_ejecta_mass, median_ejecta_velocity, electron_fraction, grey_opacity_gp, opacity_data)[source]
Map kilonova ejecta properties to grey opacity with emulator.
Use an interpolation instance or other function to calculate the corresponding grey opacity that was fit from simulation data to triplets of ejecta mass, ejecta velocity, and electron fraction.
- Parameters:
total_ejecta_mass (float) – The total ejecta mass from the mereger.
median_ejecta_velocity (float) – The median ejecta velocity of the kilonova ejecta outflow.
electron_fraction (float) – The electron fraction composition of the outflow.
grey_opacity_gp (class) – The constructed Gaussian process emulator.
opacity_data (pandas.Dataframe) – The data on which the GP is conditioned.
- Returns:
grey_opacity – The grey opacity for the instance set of binary and kilonova parameters to generate the kilonovae signal.
- Return type:
ndarray