computeAzAltFromBasePupil

lsst.cbp.coordUtils.computeAzAltFromBasePupil(vectorBase, vectorPupil)

Compute az/alt from a vector in the base frame and the same vector in the pupil frame.

Parameters:
vectorBaseiterable of three float

3-dimensional vector in the base frame.

vectorPupiliterable of float

The same vector in the pupil frame. This vector should be within 45 degrees or so of the optical axis for accurate results.

Returns:
pupilAzAltlsst.geom.SpherePoint

Pointing of the pupil frame as internal azimuth, altitude.

Raises:
ValueError

If vectorPupil x <= 0

Notes

The magnitude of each vector is ignored, except that a reasonable magnitude is required in order to compute an accurate unit vector.