SEDSNMetric¶
- class rubin_sim.maf.maf_contrib.SEDSNMetric(m5_col='fiveSigmaDepth', seeing_col='finSeeing', sky_b_col='filtSkyBrightness', exp_t_col='visitExpTime', filter_col='filter', metric_name='SEDSNMetric', mags=None, **kwargs)¶
Bases:
BaseMetric
Computes the S/Ns for a given SED.
Methods Summary
reduce_sn_g
(metric_value)reduce_sn_i
(metric_value)reduce_sn_r
(metric_value)run
(data_slice[, slice_point])Calculate metric values.
Methods Documentation
- reduce_sn_g(metric_value)¶
- reduce_sn_i(metric_value)¶
- reduce_sn_r(metric_value)¶
- 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: