Results 1 to 2 of 2

Thread: Astronomy conversion

  1. #1

    Thread Starter
    Lively Member oswaler's Avatar
    Join Date
    Jul 2006
    Location
    U.S. of A.
    Posts
    87

    Astronomy conversion

    I have an RA and Dec in decimal degrees. I need to convert them to hrs min sec. I know how to go from hrs min sec to degrees, but not back.

    For example, I have an RA = 66.918277 and Dec = 24.622590

    I would appreciate someone showing how I would convert these to hours minutes seconds.

    Thanks - Eric
    (d/(du)[∫(fu)du]
    Occupation: A respiring organism
    Hobbies: Respiration

  2. #2
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431

    Re: Astronomy conversion

    After a (brief) search, I couldn't find how many hours there are in a degree. So, I'll just assume there's 1 hour in 1 degree and edit this post if that assumption is wrong.

    Example conversion:

    121.1456 = D
    H = 121
    M = Int((121.1456 - 121) * 60) = Int(8.736) = 8
    S = Int(8.736 - 8) * 60 = 44.16

    So 121.1456 degrees becomes 121h8m44.16s

    Note that 121 + 8 / 60 + 44.16 / (60 * 60) = 121.1456.


    General conversion:

    Let D = number of decimal degrees.
    Let H = number of hours
    Let M = number of minutes
    Let S = number of seconds

    Then H = Int(D), M = Int((D - H) * 60), S = (D - H) * 60 - M) * 60.
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width