SNCadenceMetric¶
- class rubin_sim.maf.metrics.SNCadenceMetric(metric_name='SNCadenceMetric', mjd_col='observationStartMJD', ra_col='fieldRA', dec_col='fieldDec', filter_col='filter', m5_col='fiveSigmaDepth', exptime_col='visitExposureTime', night_col='night', obsid_col='observationId', nexp_col='numExposures', vistime_col='visitTime', coadd=True, lim_sn=None, **kwargs)¶
Bases:
BaseMetric
Metric to estimate the redshift limit for faint supernovae (x1,color) = (-2.0,0.2)
- Parameters:
- liststr, optional
Name of the columns used to estimate the metric
- coaddbool, optional
to make “coaddition” per night (uses snStacker) Default True
- lim_snclass, optional
Reference data used to estimate redshift values (interpolation)
Methods Summary
run
(data_slice[, slice_point])Calculate metric values.
Methods Documentation
- run(data_slice, slice_point=None)¶
Calculate metric values.
- Parameters:
- data_slice
numpy.recarray
Values passed to metric by the slicer, which the metric will use to calculate metric values at each slice_point.
- slice_point
dict
or None Dictionary of slice_point metadata passed to each metric. E.g. the ra/dec of the healpix pixel or opsim fieldId.
- data_slice
- Returns: