27 #ifndef GEPHEMERIDES_HPP
28 #define GEPHEMERIDES_HPP
63 virtual void clear(
void);
65 virtual std::string
classname(
void)
const;
71 const std::string&
name(
void)
const;
72 void name(
const std::string& name);
80 const GTime& time)
const;
115 return (
"GEphemerides");
GFilename m_filename
Ephemerides filename.
void copy_members(const GEphemerides &ephemerides)
Copy class members.
std::string m_name
Ephemerides (e.g. DE200)
bool is_empty(void) const
Signals if there are no ephemerides.
Definition of interface for all GammaLib classes.
virtual std::string print(const GChatter &chatter=NORMAL) const
Print Ephemerides.
virtual GEphemerides * clone(void) const
Clone Ephemerides.
GEphemerides & operator=(const GEphemerides &ephemerides)
Assignment operator.
GEphemerides(void)
Void constructor.
Interface class for all GammaLib classes.
double geo2ssb(const GSkyDir &srcdir, const GTime &time) const
Get time difference between geocentric and SSB (seconds)
void init_members(void)
Initialise class members.
virtual void clear(void)
Clear Ephemerides.
Vector class interface definition.
std::vector< GTime > m_times
Times of vectors.
void ephemeris(const GTime &time, GVector *rce, GVector *rcs, GVector *vce, double *etut) const
Get ephemeris vector and TBD->TT value for a given time.
std::vector< GVector > m_earth_dt
First derivative of Earth vectors.
void load(const GFilename &filename)
Load Ephemerides.
std::vector< double > m_tdb2tt
TBD to TT conversion term.
std::vector< GVector > m_earth_d3t
Third derivative of Earth vectors.
GTime m_tstop
Ephemerides validity stop time.
virtual ~GEphemerides(void)
Destructor.
std::vector< GVector > m_earth
Earth vectors.
void fetch_data(void)
Fetch ephemerides data.
void free_members(void)
Delete class members.
GTime m_tstart
Ephemerides validity start time.
std::vector< GVector > m_earth_d2t
Second derivative of Earth vectors.
int size(void) const
Return number of ephemerides.
std::vector< GVector > m_sun
Sun vectors.
Time class interface definition.
Filename class interface definition.
virtual std::string classname(void) const
Return class name.
const std::string & name(void) const
Return ephemerides name.