Poliastro: Finding distance between point on Earth and Satellite

127 views Asked by At

I'm using a poliastro orbit and I want to find the distance from a satellite to a lat long coordinate on earth with height h above sea level.

From the twobody orbit, I am using https://docs.poliastro.space/en/stable/api.html#high-level-api

r (Quantity) – Position vector wrt attractor center.

I am planning to convert lat long coordinates to a position vector with respect to the center of the earth so I can simply use the magnitude of the differences between the vectors to get the distance. (unless there is an easier way?)

Converting from longitude\latitude to Cartesian coordinates

I tried using the conversions mentioned here but this presents it in a different format.

How can I convert lat, long, h coordinates into a position vector with respect to the center of the earth? Thanks.

0

There are 0 answers