tp_to_unit

ssapy.utils.tp_to_unit(t, p)[source][source]

Convert theta-phi-like coordinates to unit vectors.

Here ‘theta-phi’ coordinates refers to the system where theta is the angle between zenith and the point in question, and phi is the corresponding azimuthal angle.

Everything is in radians.