How can I know the slantRange of a GPS in the aer2ecef function



1 Answer 1


That depends on whether you already know where the satellite is, or if you are trying to determine where it is.

If you already know, then subtract the satellite and ground position vectors, and find the magnitude of the difference.

If you're trying to find out, then you need measurements of some kind. A GPS timing-based pseudorange estimate is a decent start, but for precision work needs to be corrected for atmospheric refraction and other small but significant effects. GPS is too far away for easy radar tracking, but if you are also interested in an answer for LEO satellites, radar and laser ranging both work quite well.

  • $\begingroup$ Thanks I already got my answers $\endgroup$
    – TThoye
    Commented Jan 11, 2023 at 16:21
  • $\begingroup$ @TThoye, if your answer is different from this one, please post it as an answer. $\endgroup$ Commented Jan 11, 2023 at 16:44
  • $\begingroup$ @GregMiller thanks. I got the answer from the link below space.stackexchange.com/questions/17916/…. R=sqrt(1./(tan(gclat).^2/b^2 + 1/a^2)); $\endgroup$
    – TThoye
    Commented Jan 11, 2023 at 17:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.