EventCatalog#
- class uvex_transients.simulation.event_catalog.EventCatalog(table: QTable, nside: int, order: str, time_bins: Time, seed: SeedSequence | int | None = None, sampling_factor: float | dict[str, float] | None = None, pre_cut_counts: dict[str, int] | None = None)[source]#
A Monte Carlo realization of sampled transient events, tagged by type and time bin.
Produced by
generate_events(). Each event carries aparameter_seedrather than sampled physical SED parameters (seesample_events_on_healpix_grid()) – those are regenerated lazily, per event, byEvent.sample_parameters()/Event.simulate_photometry()once an event is reconstructed viaget_events().Methods
column(name)Return a table column as a plain array, rather than an astropy.table.Column/Quantity view.
compute_photometry_catalog(mission, ...[, ...])simulate_photometry, wrapped as a PhotometryCatalog rather than a bare QTable.
from_disk(path[, table_format])Read an event catalog back from disk, as written by
to_disk().get_events(ids, transients, schedule)Reconstruct one or more Event objects from their event_id.
in_footprint(footprint)Mask of events whose sky position lies inside a footprint.
simulate_photometry(mission, transients, ...)Run ~uvex_transients.simulation.event.Event.simulate_photometry over every event in this catalog.
to_disk(path[, table_format, overwrite])Write this catalog's event table to disk as ECSV, with its provenance in the header.
Attributes
Every event's sky position.
Every event's Milky Way foreground E(B-V) (cached at generation time).
Every event's unique id, shape
(n_events,).Every event's HEALPix pixel index, at this catalog's own
nside/order.Every event's luminosity distance (cached at generation time).
Every event's stored SED parameter seed.
The number of events of each transient type when generated.
Every event's redshift.
The event-rate multiplier(s) generation was run with.
The root seed this catalog was generated from.
Every event's explosion time.
The time-bin index each event was sampled within.
Every event's transient-type name.
One row per sampled event.
HEALPix resolution used both to query the observed footprint and to sample events.
HEALPix pixel ordering scheme (
"nested"or"ring").The
n + 1bin edges events were sampled within.