def transformSkyCoordinateErrors(self, phi, theta, sigPhiStar, sigTheta, rhoPhiTheta=<NUM_LIT:0>):
if isscalar(rhoPhiTheta) and not isscalar(sigTheta):<EOL><INDENT>rhoPhiTheta=zeros_like(sigTheta)+rhoPhiTheta<EOL><DEDENT>c, s = self._getJacobian(phi,theta)<EOL>cSqr = c*c<EOL>sSqr = s*s<EOL>covar = sigPhiStar*sigTheta*rhoPhiTheta<EOL>varPhiStar = sigPhiStar*sigPhiStar<EOL>varTheta = sigTheta*sigTheta<EOL>varPhiStarRot = cSqr*varPhiStar+sSqr*varTheta+<NUM_LIT>*covar*c*s<EOL>varThetaRot = sSqr*varPhiStar+cSqr*varTheta-<NUM_LIT>*covar*c*s<EOL>covarRot = (cSqr-sSqr)*covar+c*s*(varTheta-varPhiStar)<EOL>return sqrt(varPhiStarRot), sqrt(varThetaRot), covarRot/sqrt(varPhiStarRot*varThetaRot)<EOL>
Converts the sky coordinate errors from one reference system to another, including the covariance
term. Equations (1.5.4) and (1.5.20) from section 1.5 in the Hipparcos Explanatory Volume 1 are used.

Parameters
----------

phi         - The longitude-like angle of the position of the source (radians).
theta       - The latitude-like angle of the position of the source (radians).
sigPhiStar  - Standard error in the longitude-like angle of the position of the source (radians or
              sexagesimal units, including cos(latitude) term)
sigTheta    - Standard error in the latitude-like angle of the position of the source (radians or
              sexagesimal units)

Keywords (optional)
-------------------

rhoPhiTheta - Correlation coefficient of the position errors. Set to zero if this keyword is not
              provided.

Retuns
------

sigPhiRotStar  - The transformed standard error in the longitude-like angle (including
                 cos(latitude) factor)
sigThetaRot    - The transformed standard error in the latitude-like angle.
rhoPhiThetaRot - The transformed correlation coefficient.