bilby.core.utils.conversion.ra_dec_to_theta_phi

bilby.core.utils.conversion.ra_dec_to_theta_phi(ra, dec, gmst)[source]

Convert from RA and DEC to polar coordinates on celestial sphere

Parameters:
ra: float

right ascension in radians

dec: float

declination in radians

gmst: float

Greenwich mean sidereal time of arrival of the signal in radians

Returns:
float: zenith angle in radians
float: azimuthal angle in radians