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 columns mag_limit (in AB magnitudes, strictly increasing) and z_limit (finite, non-decreasing). Its meta records 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_fast bands, 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

mag_limits

The tabulated AB magnitude limits.

meta

its settings, duration, cosmology and fingerprint.

table

The curve as a table, with its metadata.

z_limits

The redshift limit at each of mag_limits.