You will write three functions that measure angles on the sky. Right ascensions are in hours, declinations in degrees.
The idea. One hour of right ascension is . The cosine formula is . The haversine form, with , is . It stays accurate for close pairs.
Your tasks.
to_degrees, return the degrees for a right ascension in hours.separation, return the angular distance in degrees with the cosine formula.separation_hav, return the same distance with the haversine form.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…