Function lupnt::spice::GetGroundStationDataSpice(Real, int, BodyId, const std::string&, const std::string&)¶
Defined in File spice.cc
Function Documentation¶
-
GroundStationSpiceData lupnt::spice::GetGroundStationDataSpice(Real t_tdb, int station_id, BodyId center = BodyId::EARTH, const std::string &refFrame = "ITRF93", const std::string &abCorrection = "NONE")¶
Look up a ground station’s position and geodetic coordinates from SPICE by NAIF station ID.
Computes the station’s position via
spkpos_cinrefFramerelative tocenter, then converts it to geodetic latitude/longitude/altitude usingcenter’s body shape (GetBodyData/CartToLatLonAlt). This is the underlying implementation used by thestation_nameoverload, and byGroundStation::ConfigureFromData/ config-based ground-station setup.- Parameters:
t_tdb – Epoch [s, TDB seconds since J2000]
station_id – NAIF integer ID of the station
center – Center body for the returned position (default Earth)
refFrame – SPICE reference frame for the position (default
"ITRF93", i.e. ECEF)abCorrection – SPICE aberration correction (default
"NONE")
- Returns:
Station NAIF ID/name, body-fixed position [m], and geodetic latitude/longitude [deg] / altitude [m]