Latitude longitude to meters on Mars

조회 수: 2 (최근 30일)
fabriziorosi92
fabriziorosi92 2016년 10월 5일
댓글: Gabrielle Hedrick 2019년 5월 11일
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
fabriziorosi92
fabriziorosi92 2016년 10월 6일
Well, obviously not from scratch. I've seen something like that. But in my case it doesn't work with the flattening of Mars.
Pratically I need something that transform degrees in meters on an ellipsoid.
Gabrielle Hedrick
Gabrielle Hedrick 2019년 5월 11일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Matthias Walle
Matthias Walle 2016년 10월 6일
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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by