Go to the documentation of this file.
50 #ifndef SOLAR_SYSTEM_EPHEMERIS_INCLUDE
51 #define SOLAR_SYSTEM_EPHEMERIS_INCLUDE
281 bool kilometers =
true);
335 return (gms * ((1.0 + em) / em) / gmb);
352 void writeBinary(std::ofstream& strm,
const char *ptr,
size_t size);
520 std::map<double, std::vector<double>>
store;
540 #endif // SOLAR_SYSTEM_EPHEMERIS_INCLUDE
double endTimeMJD() const
Return the MJD of end time of the data (system TDB)
int c_ncoeff[13]
number of coefficients per component for each planet
std::vector< double > coefficients
void inertialPositionVelocity(double MJD, computeID which, double PV[6])
std::string label[3]
lines under group 1010
int readBinaryFile(const std::string &filename)
int initializeWithBinaryFile(const std::string &filename)
int readBinaryRecord(std::vector< double > &data_vector)
void readBinaryHeader(const std::string &filename)
std::string & center(std::string &s, const std::string::size_type length, const char pad=' ')
@ retLate
-2 out of range : input time is after last time in file
std::ifstream istrm
input stream for binary files
@ idEarthMoonBarycenter
13 Earth-moon barycenter
@ idSolarSystemBarycenter
12 Solar system barycenter
void writeBinary(std::ofstream &strm, const char *ptr, size_t size)
double interval
number of days covered by each block of coeff.s
ReturnValue
Return values.
std::map< double, std::vector< double > > store
double getConstant(const std::string &name)
const double MJD_TO_JD
Add this offset to convert Modified Julian Date to Julian Date.
std::map< double, long > fileposMap
int writeASCIIdata(std::ostream &os)
@ retEphN
-4 EphemerisNumber is not defined
void readASCIIheader(const std::string &filename)
Planet
These are indexes used by the caller of inertialPositionVelocity().
int Nconst
number of constants in the header (see map constants)
@ NUTATIONS
11 Nutations (psi, epsilon and their rates)
@ MOON
9 Moon (Geocentric coordinates)
@ idMoon
10 Moon (Geocentric coordinates)
int c_nsets[13]
number of sets of coefficients for each planet
int writeBinaryFile(const std::string &filename)
@ idLibrations
15 Lunar Librations (3 euler angles)
@ retEarly
-1 out of range : input time is before first time in file
double ratioEarthToMoonMass()
Return the Earth-to-Moon mass ratio.
@ EMBARY
2 Earth-Moon barycenter
@ retStrm
-3 stream is not open and good, or EOF found prematurely
void relativeInertialPositionVelocity(double MJD, Planet target, Planet center, double PV[6], bool kilometers=true)
double startTimeMJD() const
Return the MJD of start time of the data (system TDB)
void readBinary(char *ptr, size_t size)
int writeASCIIheader(std::ostream &os)
double ratioSunToEarthMass()
Return the Sun-to-Earth mass ratio.
std::map< std::string, double > constants
int readASCIIdata(std::vector< std::string > &filenames)
double endJD
JD of the end of the last record in the file.
@ LIBRATIONS
12 Lunar Librations (3 euler angles)
int readBinaryData(bool save)
double startJD
JD of the start of the first record in the file.
@ idNutations
14 Nutations (psi, epsilon and rates)
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:41