- #1

- 162

- 0

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

- Thread starter CosmicVoyager
- Start date

- #1

- 162

- 0

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

mgb_phys

Science Advisor

Homework Helper

- 7,774

- 13

Are you just assuming a sphere or do you need an accurate geoid model, or real world DTM data?

- #3

- 162

- 0

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.

- #5

- 162

- 0

ThanksLook up spherical coordinates.

- #6

- 15,393

- 685

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.Look up spherical coordinates.

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

Good point.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

jasonRF

Science Advisor

Gold Member

- 1,349

- 407

http://en.wikipedia.org/wiki/Geodetic_system

I always use WGS84 for my ellipsoid, but not everyone does.

jason

- 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

- Last Post

- Replies
- 1

- Views
- 836

- Replies
- 7

- Views
- 946

- Last Post

- Replies
- 6

- Views
- 5K