eci2lla altitude error?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Derrick Early
il 7 Nov 2023
Commentato: Les Beckham
il 7 Nov 2023
In the following example,
lla = eci2lla([-6.07 -1.28 0.66]*1e6,[2010 1 17 10 20 36])
How do you end up with a negative altitude?
The altitude should be approximately 312000 m.
4 Commenti
Dyuman Joshi
il 7 Nov 2023
"The example should yield a positive altitude."
Why? Did you calculate the values by hand and compare?
Risposta accettata
Les Beckham
il 7 Nov 2023
Modificato: Les Beckham
il 7 Nov 2023
lla = eci2lla([-6.07 -1.28 0.66]*1e6,[2010 1 17 10 20 36]);
lat = lla(1)
lon = lla(2)
So, this point is slightly above the Equator (by about 6 degrees)
dist = vecnorm([-6.07 -1.28 0.66]*1e6) % distance of this point from the center of the Earth
equatorialRadius = 6378e3;
dist - equatorialRadius
alt = lla(3)
So this point is beneath the surface of the Earth by about 140 kilometers (negative altitude).
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Gravitation, Cosmology & Astrophysics in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!