uvex_transients.simulation.event.Event.mag#

Event.mag(t: Quantity, mission: Mission, band: Hashable | None = None) → Quantity[source]#

Theoretical (noiseless) apparent AB magnitude of this event’s SED at time(s) t.

This is the literal noiseless curve simulate_photometry()’s noisy points scatter around, not merely a physically similar but numerically different quantity: like that method, the flux is evaluated at band’s pivot wavelength (~synphot.SpectralElement.pivot), not integrated across the full bandpass throughput, and this event’s own foreground dust (ebv) is applied, in addition to its redshift/luminosity_distance/SED parameters (see sample_parameters()) – so only a time grid and a mission/band are needed. Useful for plotting a theory curve alongside real observations, not for simulating a detection.

Parameters:
  • t (Quantity) – Observed time(s) since explosion, any shape.

  • mission (Mission) – Supplies the ~m4opt.synphot.Detector band selects a bandpass from.

  • band (Hashable, optional) – Which of mission.detector’s bandpasses to evaluate. Required unless the detector has exactly one.

Returns:

The apparent AB magnitude, as an ABmag Quantity, with t’s shape.

Return type:

Quantity