HorizonCurve#
- class uvex_transients.transients.horizon.HorizonCurve(table: QTable)[source]#
The redshift limit of a transient population as a function of the AB magnitude limit.
- Parameters:
table (
QTable) – One row per magnitude limit, with columnsmag_limit(in AB magnitudes, strictly increasing) andz_limit(finite, non-decreasing). Itsmetarecords how the curve was made; see generate.- Raises:
ValueError – If the columns are missing, the magnitudes are not strictly increasing, or the redshifts are not finite and non-decreasing.
Notes
A curve is a single-dwell statement. It says nothing about a schedule, extinction or sky position. See Redshift Limits.
Examples
from uvex_transients.transients.TDEs import ( TidalDisruptionEvent, ) tde = TidalDisruptionEvent() tde.redshift_limit = tde.horizon_curve.z_limit( 23.0 )
Methods
generate(transient, *[, mag_limits, progress])Compute the curve of a transient in the
uvex_fastbands, which takes seconds to a minute.matches(transient)Check whether this curve still describes a transient's duration and priors.
read(path)Read a stored curve.
write(path)Write the curve as an ECSV file, replacing any existing one.
z_limit(mag_limit)Look up the redshift limit for a magnitude limit.
Attributes
The tabulated AB magnitude limits.
its settings, duration, cosmology and fingerprint.
The curve as a table, with its metadata.
The redshift limit at each of mag_limits.