uvex_transients.models.tdes.van_velzen.VanVelzenTDESED.get_observability_curve#

VanVelzenTDESED.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 (float or array-like) – AB magnitude limit(s).

  • grid (EffectivePeakGrid, optional) – A grid from get_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_limit and n_censored columns.

Return type:

QTable

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_magnitudes

The expensive grid this reads.