Function lupnt::spice::GetGroundStationDataSpice(Real, int, BodyId, const std::string&, const std::string&)

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_c in refFrame relative to center, then converts it to geodetic latitude/longitude/altitude using center’s body shape (GetBodyData/CartToLatLonAlt). This is the underlying implementation used by the station_name overload, and by GroundStation::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]