CountExplimMetric¶
- class rubin_sim.maf.metrics.CountExplimMetric(col=None, min_exp=20.0, expected_exp=30.0, exp_col='visitExposureTime', **kwargs)¶
Bases:
BaseMetric
Count the number of x second visits. Useful for rejecting very short exposures and counting 60s exposures as 2 visits.
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: