uvex_transients.models.core.detection_horizon#

Detection horizons: the redshift beyond which a population is too faint to detect.

A transient class is a population: its SED’s parameter priors describe the spread of luminosities, timescales and colours. For a magnitude limit \(m\), the horizon \(z_L(m)\) is the redshift beyond which, with probability confidence, at most a fraction tolerance of that population is brighter than \(m\) in the detecting bands (95% and 1% by default). Sampling events beyond it wastes effort on events that are, to that confidence, undetectable.

The calculation has three steps, one function each:

  1. effective_peak_grid draws parameters from the priors and finds, for every draw at every redshift of a grid, its effective peak magnitude: the brightest magnitude it reaches, combined over bands (reduce_bands). This is the expensive step. It does not depend on the magnitude limit, and its result is an EffectivePeakGrid.

  2. first_crossing finds each draw’s detection redshift for a limit: the first grid redshift at which it is fainter than the limit.

  3. observability_curve takes the upper tolerance limit of those redshifts (~uvex_transients.utils.stat_utils.tolerance_limit), one for each magnitude limit.

detection_horizon runs all three and widens the redshift grid until every limit is bracketed. The SED and transient classes expose these steps as ~uvex_transients.models.core.base.SpectralModel.get_effective_peak_magnitudes, ~uvex_transients.models.core.base.SpectralModel.get_observability_curve and ~uvex_transients.transients.base.ExtragalacticTransient.get_detection_horizon. The horizons of the shipped classes are stored as ~uvex_transients.transients.horizon.HorizonCurve files.

The guarantee covers the SED’s parameter priors only. Milky Way extinction and sky position are not included.

By default the horizon is also capped at the redshift where the Lyman limit (912 A rest-frame) reaches the blue edge of the reddest detecting band (lyman_limit_redshift, about 1.13 for UVEX). Beyond it the bands see only rest-frame wavelengths that the host and the intervening IGM absorb, so no event is detectable there however bright it is.

Attributes

Criterion

How bands combine into one effective peak magnitude; see reduce_bands.

LYMAN_LIMIT

Rest-frame wavelength of the hydrogen Lyman limit, below which the Universe is opaque.

LYMAN_EDGE_THRESHOLD

Fraction of its peak throughput at which a band is taken to begin, for lyman_limit_redshift.

Functions

check_sample_count(n_samples, confidence, ...)

Check that a number of draws can support a confidence and tolerance, before an expensive grid is built.

detection_horizon(sed, mag_limits, ...)

Find the detection horizon of a population for each magnitude limit.

effective_peak_grid(sed, z_grid, bandpasses, *)

Evaluate a sampled population's effective peak magnitude at every redshift of a grid.

first_crossing(m_eff, z_grid, mag_limit, *)

Find each draw's detection redshift: the first grid redshift at which it is fainter than the limit.

lyman_limit_redshift(bandpasses[, threshold])

Find the redshift at which the Lyman limit enters the reddest detecting band.

observability_curve(grid, mag_limits, *[, ...])

Bound the redshift beyond which a population is undetectable, for each magnitude limit.

peak_band_magnitudes(eval_log_luminosity, ...)

Brightest AB magnitude over time of each draw, in each band, at each redshift.

reduce_bands(peak_mags[, criterion, k])

Combine per-band peak magnitudes into one effective peak magnitude.

Classes

EffectivePeakGrid(m_eff, z_grid, criterion, ...)

Effective peak magnitudes of a sampled population on a redshift grid.