unit_to_tp

ssapy.utils.unit_to_tp(unit)[source][source]

Convert unit vectors to theta-phi-like coordinates.

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.