109 if (
this != &ephemeris) {
187 const std::string& timesys)
const
190 const double c1 = 0.5;
191 const double c2 = 1.0 / 6.0;
200 phase -= floor(phase);
222 result.append(
"=== GPulsarEphemeris ===");
229 result.append(
" deg");
232 result.append(
" deg");
235 double f0 = this->
f0();
241 result.append(
"MJD ");
247 result.append(
" Hz");
250 result.append(
" Hz/s");
253 result.append(
" Hz/s^2");
256 double p0 = 1.0 /
f0;
259 result.append(
" ms");
267 result.append(
"infinity");
273 result.append(
" - ");
276 result.append(
tstart().utc());
277 result.append(
" - ");
278 result.append(
tstop().utc());
double f2(void) const
Returns pulsar second frequency derivative (s^-3)
double m_f1
Pulsar frequency derivative (s^-2)
double dec_deg(void) const
Returns Declination in degrees.
GPulsarEphemeris & operator=(const GPulsarEphemeris &ephemeris)
Assignment operator.
void free_members(void)
Delete class members.
GTime t0(void) const
Returns reference epoch of pulsar ephemeris.
void clear(void)
Clear time.
void copy_members(const GPulsarEphemeris &ephemeris)
Copy class members.
GTime m_tstart
Validity start time.
double m_f0
Pulsar frequency (Hz)
void init_members(void)
Initialise class members.
virtual void clear(void)
Clear Pulsar ephemeris.
const GTime & tstop(void) const
Returns validity stop time.
double m_f2
Pulsar second frequency derivative (s^-3)
virtual std::string print(const GChatter &chatter=NORMAL) const
Print Pulsar ephemeris.
double ra_deg(void) const
Returns Right Ascension in degrees.
std::string m_timesys
Time system of pulsar ephemeris.
virtual GPulsarEphemeris * clone(void) const
Clone Pulsar ephemeris.
double m_phase
Pulse phase.
double f1(void) const
Returns pulsar frequency derivative (s^-2)
GSkyDir m_dir
Pulsar sky direction.
GTime m_tstop
Validity stop time.
const double & secs(void) const
Return time in seconds in native reference (TT)
void clear(void)
Clear sky direction.
double f0(void) const
Returns pulsar frequency (Hz)
virtual ~GPulsarEphemeris(void)
Destructor.
GTime m_t0
Reference epoch of pulsar ephemeris.
std::string parformat(const std::string &s, const int &indent=0)
Convert string in parameter format.
Pulsar ephemeris class definition.
const GTime & tstart(void) const
Returns validity start time.
std::string m_name
Pulsar name.
GPulsarEphemeris(void)
Void constructor.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.
double phase(void) const
Returns pulse phase.