vectorToFieldAngle

lsst.cbp.coordUtils.vectorToFieldAngle(vec, flipX)

Convert a vector to a pupil field angle.

Parameters:
vecsequence of 3 float

3-dimensional vector in the pupil frame; the magnitude is ignored, but must be large enough to compute an accurate unit vector.

flipXbool

Set True if the x axis of the focal plane is flipped with respect to the pupil.

Returns:
fieldAngletuple of 2 float

x,y pupil field angle (radians).