Incorrect result using wgs84.latlon() ? #1013
-
Hello !
Whatever ints or floats I put in, printing skyfield.toposlib.GeographicPosition objects always shows them as being N and E... Is this normal ? Is there a bug in my code ? I'm a padawan coder, but the GeographicPosition parent class seems wrong ? This code snippet from the Topos class :
Tthis code snippet from the parent GeographicPosition class :
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Happily, that is completely normal. One can express, for example, the longitude 5°W also as the value –5°E, because the negative sign turns east into west. Internally, Skyfield uses negative to mean "west" and "south", instead of having a separate flag for east/west and north/south. So printing the raw values always will show north latitude and east longitude. |
Beta Was this translation helpful? Give feedback.
Happily, that is completely normal. One can express, for example, the longitude 5°W also as the value –5°E, because the negative sign turns east into west. Internally, Skyfield uses negative to mean "west" and "south", instead of having a separate flag for east/west and north/south. So printing the raw values always will show north latitude and east longitude.