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

  • #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
 

Answers and Replies

  • #2
mgb_phys
Science Advisor
Homework Helper
7,774
13
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?
 
  • #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
 
  • #4
nicksauce
Science Advisor
Homework Helper
1,272
5
Look up spherical coordinates.
 
  • #6
D H
Staff Emeritus
Science Advisor
Insights Author
15,393
685
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.
 
  • #7
nicksauce
Science Advisor
Homework Helper
1,272
5
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.
 
  • #8
jasonRF
Science Advisor
Gold Member
1,349
407

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

Replies
4
Views
7K
Replies
19
Views
24K
Replies
7
Views
5K
Replies
9
Views
48K
Replies
4
Views
3K
  • Last Post
Replies
13
Views
2K
Replies
7
Views
4K
Replies
7
Views
946
  • Last Post
Replies
6
Views
5K
Top