sun_ra_dec
- ssapy.utils.sun_ra_dec(time_)[source][source]
- Calculate the Right Ascension (RA) and Declination (Dec) of the Sun at a given time. - This function computes the Sun’s position in the sky in terms of its Right Ascension (RA) and Declination (Dec) in radians, based on the provided time. It uses the get_body function from the .body module to retrieve the Sun’s coordinates. - Parameters:- time_ (float): The time in Modified Julian Date (MJD) format. - Returns:- tuple:
- ra (float): The Sun’s Right Ascension in radians. 
- dec (float): The Sun’s Declination in radians. 
 
 - Notes:- The function assumes the existence of a get_body function in the .body module, which calculates the celestial coordinates of the Sun. 
- The Time class from astropy.time is used to handle the MJD time format. 
 - Example:- sun_ra_dec(60000.0) -> (3.141592653589793, -0.40909280422232897)