You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.
[-2659101.73006609 -4840409.50949421 -3180013.2204397 ] m
z component of g should be a positive value since it is north of the equator. Consequently, gstation.N (the normal vector) and other values are incorrect.
Using astropy.coordinates.spherical_to_cartesian provides the approximately correct value, however:
from astropy.coordinates import spherical_to_cartesian as s2c
g = s2c(lat=gstation._lat,lon=gstation._lon,r=gstation._h+gstation._a) << u.km
g = g.value
print(g)
[-2656.86215945 -1540.14771067 5590.17455692]
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
from astropy import units as u
from poliastro.bodies import Earth
from poliastro.spheroid_location import SpheroidLocation
z component of g should be a positive value since it is north of the equator. Consequently, gstation.N (the normal vector) and other values are incorrect.
Using astropy.coordinates.spherical_to_cartesian provides the approximately correct value, however:
from astropy.coordinates import spherical_to_cartesian as s2c
g = s2c(lat=gstation._lat,lon=gstation._lon,r=gstation._h+gstation._a) << u.km
g = g.value
print(g)
The text was updated successfully, but these errors were encountered: