xyz_to_tp

ssapy.utils.xyz_to_tp(x, y, z)[source][source]

Convert x, y, z 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.