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 the photon-weighted average over the full bandpass throughput (~uvex_transients.models.core.base.SpectralModel.flux_band), not the flux at the bandpass’s pivot wavelength, and this event’s own foreground dust (ebv) is applied across the band, 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