positionRms

lsst.validate.drp.util.positionRms(ra_mean, dec_mean, ra, dec)

Calculate the RMS between an array of coordinates and a reference (mean) position.

Parameters
ra_meanfloat

Mean RA in radians.

dec_meanfloat

Mean Dec in radians.

ranumpy.array [float]

Array of RA in radians.

decnumpy.array [float]

Array of Dec in radians.

Returns
pos_rmsfloat

RMS scatter of positions in milliarcseconds.

Notes

The RMS of a single-element array will be returned as 0. The RMS of an empty array will be returned as NaN.