Latitude longitude to meters on Mars
Show older comments
Hello, I have to transform lat, lon to meters on Mars. I tried deg2km(..., 'mars'), but it doesn't work because this function consider mars as a sphere. Any idea?
Thank you.
5 Comments
James Tursa
on 5 Oct 2016
Please clarify. Are you wanting to use an oblate spheroid for Mars? Are you trying to turn a lat-lon pair into a rectangular position vector? Are you trying to find the surface distance between two points? Or what?
fabriziorosi92
on 5 Oct 2016
Edited: fabriziorosi92
on 5 Oct 2016
James Tursa
on 5 Oct 2016
So you are trying to implement this?
https://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system
fabriziorosi92
on 6 Oct 2016
Gabrielle Hedrick
on 11 May 2019
I'm going to comment on this in case someone else is looking for this (apparently I wasn't the only one!):
this page gives the radii taken into consideration for the coordinates. To change from degree to meters, calculate the circumference, divide by 360 and it gives a factor to go from degree to km.
Answers (1)
Matthias Walle
on 6 Oct 2016
0 votes
Hello,
Are you looking for something like the Vincenty's formulae in Matlab? It is used to calculate the distance between two points on the surface of a spheroid.
you can change the parameters of the ellipsoid axis in the file for Mars I guess.
I hope this helped,
Matthias
Categories
Find more on Coordinate Reference Systems in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!