distance_to_sun

rubin_sim.utils.distance_to_sun(ra, dec, mjd, epoch=2000.0)

Calculate the distance from an (ra, dec) point to the Sun (in degrees).

@param [in] ra in degrees

@param [in] dec in degrees

@param [in] mjd is the date represented as a ModifiedJulianDate object.

@param [in] epoch is the epoch of the coordinate system (default is 2000.0)

@param [out] distance on the sky to the Sun in degrees