Function lupnt::spice::GetNaifId

Function Documentation

int lupnt::spice::GetNaifId(const std::string &body_name)

Resolve a body/spacecraft/station name to its NAIF integer ID code (e.g. "MOON" -> 301, "EARTH" -> 399).

Used wherever a SPICE call needs an integer body code, e.g. by GetGroundStationDataSpice(t_tdb, station_name, ...) to resolve a named ground station to its NAIF ID before the position lookup. Throws if body_name is not found in the loaded kernel pool.