LongGapAGNMetric¶
- class rubin_sim.maf.metrics.LongGapAGNMetric(metric_name='longGapAGNMetric', mjdcol='observationStartMJD', units='days', xgaps=10, badval=-666, **kwargs)¶
Bases:
BaseMetric
max delta-t and average of the top-10 longest gaps.
Methods Summary
reduce_average_longest_x_gaps
(metricval)reduce_max_gap
(metricval)run
(data_slice[, slice_point])Calculate metric values.
Methods Documentation
- reduce_average_longest_x_gaps(metricval)¶
- reduce_max_gap(metricval)¶
- 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: