ptgori_to_quaternion¶
-
ptgori_to_quaternion(p_ptg_radec, p_ori)[source]¶ Compute quaternion associated to rotation defined by a pointing direction and orientation
X instru axis is the pointing axis , ** CNES choice ** Z instru axis determine orientation in sky, not clear in CNES document, so it’s my choice Orientation of Z instru axis follow IAU recommandation to measure polarisation angle example:
- orientation is 0 so Z instru axis pointed to celestial North pole
- orientation is 90 deg so Z instru axis pointed following a parallel of celestial sphere with East direction
return : quaternion attitude
Parameters: - p_ptg_radec (list) – ra, dec in rad
- p_ori (number) – orientation angle with convention defined above
:return : unit quaternion :rtype : list/array of float