Home
Install
Use
Develop
Support
News
Credits
hosted by
|
14#include "Pulsar/Parameters.h"
26class psrephem : public Pulsar::Parameters
28 friend class psrParams;
33 Parameters* clone () const;
36 bool equals ( const Parameters* that) const;
42 void unload (FILE*) const;
48 sky_coord get_coordinates () const;
51 double get_dispersion_measure () const;
54 double get_rotation_measure () const;
57 static bool short_tex;
60 std::string* value_str;
66 std::string nontempo11;
71 psrephem ( const psrephem &);
73 psrephem ( const char* filename);
75 psrephem& operator = ( const psrephem &);
79 int load ( const std::string& filename);
80 int unload ( const std::string& fname) const;
82 int load (std::string* str);
83 int unload (std::string* str) const;
90 void set_epoch ( const MJD& new_epoch, bool binary = false);
93 void efac ( float efac);
96 std::string get_string ( int ephind);
97 double get_double ( int ephind);
98 MJD get_MJD ( int ephind);
99 Angle get_Angle ( int ephind);
100 int get_integer ( int ephind);
103 void set_string ( int ephind, const std::string&);
104 void set_double ( int ephind, double );
105 void set_MJD ( int ephind, const MJD&);
106 void set_Angle ( int ephind, const Angle&);
107 void set_integer ( int ephind, int);
110 double p_err() const;
113 std::string psrname() const;
115 double get_dm() const;
116 void set_dm ( double dm);
120 double omega() const;
121 double omdot() const;
130 int galactic ( double& l, double& b);
132 int galactic_z ( double& z);
136 int acc_diffrot ( double& beta);
139 int sini ( double& si, double& si_err) const;
141 int mass_function ( double& mf, double& mf_err) const;
143 int m1 ( double& m1, double& m1_err) const;
145 int m2 ( double& m2, double m1) const;
148 int pm ( double& pm, double& pm_err) const;
150 int phi ( double& phi, double& phi_err) const;
153 int pm_x_dot ( double& xdot, double& xdot_err) const;
155 int pm_omega_dot ( double& omdot, double& omdot_err) const;
158 int imax_pm_xdot ( double& imax, double& imax_err) const;
161 int imax_pm_omdot ( double& imax, double& imax_err) const;
164 int P ( double& p, double& p_err) const;
166 int P_dot ( double& pdot, double& pdot_err) const;
168 int P_ddot ( double& pddot, double& pddot_err) const;
171 int characteristic_age ( double& age, double age_err);
174 int Delta_t ( double& delta_t) const;
178 int quadratic_Doppler ( double& beta, double& beta_err) const;
180 int corrected_P_dot ( double& p_dot_int, double& p_dot_int_err) const;
181 int corrected_characteristic_age ( double& age, double& age_err) const;
183 int pdot_distance ( double& dist, double& dist_err) const;
184 int pdot_mu ( double& mu, double& mu_err) const;
186 int cubic_Doppler ( double& gamma, double& gamma_err,
187 double pmrv, double pmrv_err) const;
189 int Doppler_P_dotdot ( double& P_dotdot, double& P_dotdot_err,
190 double pmrv, double pmrv_err) const;
192 int Doppler_F2 ( double& f2, double& f2_err,
193 double pmrv, double pmrv_err) const;
195 int intrinsic_P_dotdot ( double& P_dotdot, double& P_dotdot_err,
196 float braking_index=3) const;
199 int GR_x_dot ( double& x_dot) const;
202 int GR_Pb_dot ( double& Pb_dot) const;
205 int GR_omega_dot ( double& w_dot) const;
208 int GR_omega_dot_mtot ( double& mtot, double& mtot_err) const;
211 int GR_omega_dot_m2 ( double& m2, double& m2_err) const;
214 int GR_gamma ( double& gamma) const;
217 int GR_f_e ( double& f_e) const;
220 int GR_Omega_p ( double& Omp) const;
227 std::string tex () const;
230 std::string tex_name () const;
232 std::string tex_val ( int ephind, double fac=1.0, unsigned precision=1) const;
235 static const char* tex_descriptor ( int ephind);
238 static const char* short_tex_descriptor ( int ephind);
241 static std::string tex (std::vector<psrephem>& vals, bool dots= false);
244 std::string get_directory ();
249 void read_old_ephem_str (std::vector<std::string>& lines,
251 std::string *val_str,
258 void size_dataspace();
262 int old_load ( const std::string& filename);
263 int old_unload ( const std::string& filename) const;
269bool operator == ( const Legacy::psrephem&, const Legacy::psrephem&);
270bool operator != ( const Legacy::psrephem&, const Legacy::psrephem&);
272std::ostream& operator<< (std::ostream& ostr, const Legacy::psrephem& eph);
virtual std::string get_name() const Return the pulsar name. Definition Parameters.C:34
virtual Parameters * clone() const =0 Return a new, copy constructed instance of self.
Generated using doxygen 1.14.0
|