class rubin_sim.maf.metrics.MeanAngleMetric(col=None, metric_name=None, maps=None, units=None, metric_dtype=None, badval=-666, mask_val=None)

Bases: BaseMetric

Calculate the mean of an angular (degree) simData column slice.

‘MeanAngle’ differs from ‘Mean’ in that it accounts for wraparound at 2pi.

Methods Summary

run(data_slice[, slice_point])

Calculate mean angle via unit vectors.

Methods Documentation

run(data_slice, slice_point=None)

Calculate mean angle via unit vectors. If unit vector ‘strength’ is less than 0.1, then just set mean to 180 degrees (as this indicates nearly uniformly distributed angles).