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

  • Thread starter Thread starter CosmicVoyager
  • Start date Start date
  • Tags Tags
    Convert Longitude
CosmicVoyager
Messages
164
Reaction score
0
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
 
Mathematics news on Phys.org
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?
 
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
 
Look up spherical coordinates.
 
nicksauce said:
Look up spherical coordinates.

Thanks :smile:
 
nicksauce said:
Look up spherical coordinates.
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.
 
D H said:
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.

Good point.
 
Back
Top