You will write three small functions for the units of the equatorial system.
The idea. A right ascension of hours, minutes and seconds is hours, and one hour is . The hour angle is , brought into the range to h.
Your tasks.
to_hours, return the decimal hours for h, m and s.to_degrees, return the degrees for a number of hours.hour_angle, return between and h for a sidereal time and a right ascension in hours.Run your code once to unlock the worked solution.
Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…