Function lupnt::spice::StringToTdb¶
Defined in File spice.h
Function Documentation¶
-
Real lupnt::spice::StringToTdb(const std::string &str)¶
Parse a calendar/Julian-date string into ephemeris time (TDB seconds past J2000), via SPICE’s
str2et_c.Accepts the wide range of UTC/calendar/Julian-date string formats supported by SPICE (see the format table in spice.cc); used to convert human-readable epoch strings (e.g. from YAML scenario configs) into the
Real t_tdbrepresentation used throughout LuPNT.- Parameters:
str – Time string (UTC calendar, day-of-year, or Julian date)
- Returns:
Epoch [s, TDB seconds since J2000]