-
-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
itrs_xyz method of GeographicPosition WGS84 object returns bad values #673
Comments
So that I can investigate, can you write a small Python script that builds these two |
Thank you very much for your response,
Note that the lat_lon = [-10.487990468777502, -27.753588673056026] is taken from the subpoint of the satellite at iteration index 9. So the minimal distance should be very small = close to zero |
I've just pushed what could be a fix for the problem you're seeing! Could you try installing the development version of Skyfield and testing your script again? Thanks!
|
Thank you very much, It is working now without the issue a had. |
Excellent! I'll release a new version right now to get this fix out to the world. |
Hi,
I am new in Skyfield. I have a lot of fun using this great package.
I have an issue that I don't understand and I have stuck because of that issue.
I compute a subpoint ( on the Earth's surface) directly below a satellite and I try to calculate a distance from that point to a reference point. My goal is to find a minimal distance.
The reference point is also on the Earth's surface. The problem is that I get wrong distance.
I will demonstrate this issue with a simple example where the reference point and the subpoint are pretty the same.
Here is the example:
test_lat_lon
is <GeographicPosition WGS84 latitude -10.4880 N longitude -27.7536 E elevation 0.0 m>
subsat_on_earth
is <GeographicPosition WGS84 latitude -10.4880 N longitude -27.7536 E elevation -0.0 m>
Note that test_lat_lon is my reference point. The subsat_on_earth and the test_lat_lon points seem to be the same when comparing the lat lon and elevation.
But the itrs_xyz method of both gives different results.
test_lat_lon.itrs_xyz.km
is array([ 5550.70173713, -2920.80937139, -1153.36430579])
subsat_on_earth.itrs_xyz.km
is array([ 5917.50303437, -3113.82220461, -1230.09455252])
How to solve this problem and why do I get such differences?
Thanks in advance.
The text was updated successfully, but these errors were encountered: