RedshiftLimit#
- class uvex_transients.phase_space.sampling.canonical.RedshiftLimit(mag_limit: float, cosmology: Cosmology | None = None, z_min: float = 0.001, z_max: float = 10.0, n_grid: int = 512, bandwidth: Quantity | None = None, spectral_index: float = 0.0)[source]#
The redshift out to which a power-law source of a given luminosity is brighter than a depth.
For a spectrum \(L_\nu\propto\nu^\alpha\) the AB magnitude in a band at the observed frequency \(\nu_\mathrm{obs}\) is
\[m = -2.5\log_{10}\frac{(1+z)^{1+\alpha}\,L_\nu(\nu_\mathrm{obs})}{4\pi d_L^2(z)} - 48.6,\]where \((1+z)^{1+\alpha}\) is the K-correction: one factor of \(1+z\) is the bandwidth compression and \((1+z)^\alpha\) the shift to the bluer rest-frame frequency \((1+z)\nu_\mathrm{obs}\). The luminosity at which \(m\) equals the depth is tabulated once on a redshift grid, increases with \(z\), and is inverted by interpolation, so a call is a table lookup. The band is taken as the single frequency \(\nu_\mathrm{obs}\) at which the luminosity is quoted, which is accurate enough for a limit that only bounds where events are drawn.
With a bandwidth the luminosity is the one in the band, \(L_\mathrm{band}=L_\nu(\nu_\mathrm{obs})\Delta\nu\) in erg/s (see
equivalent_bandwidth()), the same table shifted by \(\log_{10}\Delta\nu\).- Parameters:
mag_limit (
float) – The AB depth. Events fainter than it, at their own redshift, are never drawn.cosmology (
Cosmology, optional) – Defaults to the configured cosmology.z_min (
float, optional) – The range of the table. A luminosity whose limit lies outside it is clipped to the nearest end.z_max (
float, optional) – The range of the table. A luminosity whose limit lies outside it is clipped to the nearest end.n_grid (
int, optional) – Number of log-spaced redshifts in the table. The default is 512.bandwidth (
Quantity, optional) – The equivalent width of the band, in frequency. If given, luminosities are \(L_\mathrm{band}\) in erg/s; if omitted, the spectral luminosity \(L_\nu\) in erg/s/Hz.spectral_index (
float, optional) – The index \(\alpha\) of the spectrum. The default of 0 is flat.
- Raises:
ValueError – If the luminosity that reaches the depth does not increase with redshift, which happens for a spectrum rising steeply to the blue (an index of about 3 or more): such a source has no redshift limit.
Methods
is_clipped(log_luminosity)Return whether the limit of each luminosity lies beyond the table, so that it was clipped.
Attributes
The log10 luminosity above which the limit is clipped to
z_max, not set by depth.