1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The equations to convert x,y,z to longitude and lattitude?

  1. Apr 16, 2010 #1
    Greetings,

    I am trying to figure out how to convert an x,y,z coordinate to longitude and latitude (or right ascension and declination). Center of earth is origin, of course.

    Thanks
     
  2. jcsd
  3. Apr 16, 2010 #2

    mgb_phys

    User Avatar
    Science Advisor
    Homework Helper

    How accurately do you need it?
    Are you just assuming a sphere or do you need an accurate geoid model, or real world DTM data?
     
  4. Apr 16, 2010 #3
    i now know that what i am looking for is called polar coordinates.

    x,y,z to polar coordinates

    i have only been able to find x,y to polar
     
  5. Apr 16, 2010 #4

    nicksauce

    User Avatar
    Science Advisor
    Homework Helper

    Look up spherical coordinates.
     
  6. Apr 16, 2010 #5
    Thanks :smile:
     
  7. Apr 16, 2010 #6

    D H

    User Avatar
    Staff Emeritus
    Science Advisor

    Those are not the correct equations for converting x,y,z to latitude and longitude. The Earth is not a sphere; latitude is not a spherical measure.

    They are close, however. Whether they are close enough or not, we can't tell. CosmicVoyager never answered mgb_phys' question.
     
  8. Apr 16, 2010 #7

    nicksauce

    User Avatar
    Science Advisor
    Homework Helper

    Good point.
     
  9. Apr 22, 2010 #8

    jasonRF

    User Avatar
    Science Advisor
    Gold Member

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook