redback.transient_models.afterglow_models.tophat_from_emulator

redback.transient_models.afterglow_models.tophat_from_emulator(time, redshift, thv, loge0, thc, logn0, p, logepse, logepsb, g0, **kwargs)[source]

Evaluate a tophat afterglow model using an mpl regressor. Note that this model predicts for a fixed redshift = 0.01 and fixed ksin = 1. This tophat model does not include all of the ususal kwargs

Parameters:
  • time – time in days in observer frame, should be in range 0.1 to 300

  • redshift – source redshift

  • thv – viewing angle in radians

  • loge0 – log10 on axis isotropic equivalent energy

  • thc – half width of jet core/jet opening angle in radians

  • logn0 – log10 number density of ISM in cm^-3

  • p – electron distribution power law index. Must be greater than 2.

  • logepse – log10 fraction of thermal energy in electrons

  • logepsb – log10 fraction of thermal energy in magnetic field

  • g0 – initial lorentz factor

  • kwargs – Additional keyword arguments

  • frequency – frequency of the band to view in- single number or same length as time array

  • output_format – Whether to output flux density or AB mag, specified by ‘flux_density’ or ‘magnitude’

Returns:

flux density or AB mag predicted by emulator. Note this is going to give the monochromatic magnitude at the effective frequency for the band. For a proper calculation of the magntitude use the sed variant models