ellipticity

lsst.validate.drp.util.ellipticity(i_xx, i_xy, i_yy)

Calculate ellipticity from second moments.

Parameters:
i_xx : float or numpy.array
i_xy : float or numpy.array
i_yy : float or numpy.array
Returns:
e, e1, e2 : (float, float, float) or (numpy.array, numpy.array, numpy.array)

Complex ellipticity, real component, imaginary component