Describe the solution you'd like
Given the RA&Decl and time of the observation, calculate the angular distance to the sun (particularly if the observation is during the day).
Additional context
This is an important to know to calculate the scintillation effects caused by the IPM.