Event#
- class uvex_transients.simulation.event.Event(event_id: int, schedule: SurveySchedule, transient: TransientBase, coord: SkyCoord, redshift: float, t_explosion: Time, seed: int, *, luminosity_distance: Quantity | None = None, ebv: float | None = None, transient_type: str | None = None)[source]#
One sampled transient event, tied to a real survey schedule.
Building an Event runs exactly one query against schedule (
get_observations_of()) to find which scheduled observations actually covered this event’s position during[t_explosion, t_explosion + transient.duration_limit)– no photometry is done here.simulate_photometry()does the (comparatively expensive) per-observation, per-band synthetic photometry, on demand.- Parameters:
event_id (
int) – See__init__().schedule (
SurveySchedule) – See__init__().transient (
TransientBase) – See__init__().coord (
SkyCoord) – See__init__().redshift (
float) – See__init__().t_explosion (
Time) – See__init__().seed (
int) – See__init__().luminosity_distance (
Quantity, optional) – See__init__().ebv (
float, optional) – See__init__().transient_type (
str, optional) – See__init__().
Methods
flux(t, mission[, band])Theoretical (noiseless) observed flux density of this event's SED, at band's pivot wavelength.
luminosity(t)Bolometric luminosity of this event's SED at time(s) t since explosion.
mag(t, mission[, band])Theoretical (noiseless) apparent AB magnitude of this event's SED at time(s) t.
Return this event's physical SED parameters, deterministically regenerated from seed.
simulate_photometry(mission[, bands, n_sigma])Evaluate this event's detectability at every observation in observations.
Attributes
Sky position of the event.
Milky Way foreground E(B-V) at coord (0 if never supplied).
This event's unique id.
Luminosity distance to the event.
Number of candidate observations (
len(observations)).The schedule's
"observe"rows that covered this event while active.Cosmological redshift.
This event's stored parameter seed.
Time of explosion.
The transient type this event is a realization of.
This event's transient-type name.