uvex_transients.models.supernovae.villar.VillarCoolingBlackbodySED.get_observability_curve#
- VillarCoolingBlackbodySED.get_observability_curve(mag_limits: NumericalInput, *, grid: EffectivePeakGrid | None = None, confidence: float = 0.95, tolerance: float = 0.01, interpolate: bool = False, **grid_kwargs) QTable#
Bound the redshift beyond which a population is undetectable, for each magnitude limit.
With probability confidence, at most a fraction tolerance of the population is brighter than the limit beyond the returned redshift. This is the number to use as a population’s redshift limit. See ~uvex_transients.models.core.detection_horizon.observability_curve for the method and the table returned.
- Parameters:
mag_limits (
floatorarray-like) – AB magnitude limit(s).grid (
EffectivePeakGrid, optional) – A grid fromget_effective_peak_magnitudes(). If omitted, one is built from grid_kwargs.confidence (
float, optional) – The guarantee; the defaults are 0.95 and 0.01.tolerance (
float, optional) – The guarantee; the defaults are 0.95 and 0.01.interpolate (
bool, optional) – Whether to interpolate each crossing instead of rounding it up to a grid point.**grid_kwargs – Arguments for
get_effective_peak_magnitudes(), required (a redshift grid, bandpasses and a time grid) when grid is omitted, and not allowed otherwise.
- Returns:
One row per magnitude limit, with
mag_limit,z_limitandn_censoredcolumns.- Return type:
- Raises:
ValueError – If there are too few draws for confidence and tolerance. This is checked before the grid is built.
TypeError – If grid and grid_kwargs are both given.
See also
get_effective_peak_magnitudesThe expensive grid this reads.