24 #include <qapplication.h>
25 #include <qmainwindow.h>
31 #include <qbuttongroup.h>
32 #include <qradiobutton.h>
33 #include <qinputdialog.h>
34 #include <qtabwidget.h>
35 #include <qprogressdialog.h>
36 #include <qfiledialog.h>
37 #include <qcheckbox.h>
38 #include <qlistview.h>
39 #include <qtabwidget.h>
42 using Legacy::psrephem;
49 #include "sky_coord.h"
55 #include "Pulsar/Archive.h"
56 #include "Pulsar/Profile.h"
58 #include "Pulsar/StandardSNR.h"
62 class AxisSelector : public QHBox
68 AxisSelector (QWidget* parent);
115 void XChange (toaPlot::AxisQuantity);
116 void YChange (toaPlot::AxisQuantity);
119 class Rhythm : public QMainWindow
125 static bool vverbose;
127 Rhythm (QApplication* master, QWidget* parent, int argc, char** argv);
132 void fit ( const psrephem& eph, bool load_new);
136 void fit_selected ( const psrephem& eph, bool load_new);
140 void setClassVerbose ( bool verbose);
150 std::vector<Tempo::toa> toas;
154 std::vector<QListViewItem*> ltoas;
158 std::string toa_filename;
160 void load_toas ( const char* fname);
161 void add_toas (std::vector<Tempo::toa>);
162 void save_toas ( const char* fname);
168 toaPlot* plot_window;
169 AxisSelector* chooser;
170 toaPlot::AxisQuantity xq;
171 toaPlot::AxisQuantity yq;
178 QButtonGroup* modechanger;
189 QPushButton* clearsel;
191 QPushButton* autoscl;
192 QPushButton* autobin;
194 QPushButton* show_button;
199 std::string dataPath;
205 qt_editParams* fitpopup;
209 void toolbarConstruct ();
213 void menubarConstruct ();
245 void exit ( int value);
246 void command_line_help ();
247 void command_line_parse ( int argc, char** argv);
251 std::vector<double> give_me_data (toaPlot::AxisQuantity);
252 std::vector<double> give_me_errs (toaPlot::AxisQuantity);
254 std::vector<Pulsar::Profile*> the_stds;
258 void scan_selected ();
259 void plot_current ();
261 void request_update ();
268 int prompt_save_toas ();
283 void set_std_tempo();
286 void advancePEPOCH();
289 void setVerbosity ( int id);
291 void showOptions () { opts.show(); };
293 void undo() {fprintf (stderr, "Not implemented\n");};
294 void redo() {fprintf (stderr, "Not implemented\n");};
301 void set_Params ( const psrephem&);
304 void XChange (toaPlot::AxisQuantity);
305 void YChange (toaPlot::AxisQuantity);
308 void change_mode ( int);
316 void select (std::vector<int>);
318 void deselect (std::vector<int>);
320 void clearselection ();
321 void deleteselection ();
323 void colour_selector ();
324 void symbol_selector ();
326 void setselcol ( int);
327 void setseldot ( int);
335 void profileMovie ();
337 void simulateModel ();
void fit(const Pulsar::Parameters *model, std::vector< toa > &data, Pulsar::Parameters *postfit=NULL, bool track=false, Tempo::toa::State min_state=Tempo::toa::Normal)
float get_snr(const Profile *profile) Return the signal to noise ratio based on the shift. Definition: StandardSNR.C:17
double get_parallactic_angle() const
void set_observatory_latitude(double latitude)
void set_source_coordinates(const sky_coord &coords)
Angle get_longitude() const Get the longitude of the antenna. Definition: Telescope.h:106
Any quantity recorded as a function of pulse phase. Definition: Profile.h:45
static Archive * load(const std::string &name) Factory returns a new instance loaded from filename. Definition: Archive_load.C:28
Plots a single pulse profile. Definition: ProfilePlot.h:26
void set_observatory_longitude(double longitude)
void set_epoch(const MJD &epoch)
Contains information about the telescope used for the observation. Definition: Telescope.h:26
bool verbose Definition: timer++.C:25
Print a label with three rows above the plot frame. Definition: InfoLabel.h:28
Angle get_latitude() const Get the latitude of the antenna. Definition: Telescope.h:101
void set_standard(const Profile *profile) Set the standard against which the S/N will be calculated. Definition: StandardSNR.C:11
virtual void plot(const Calibrator *calibrator) Plot the Pulsar::Calibrator. Definition: CalibratorPlotter.C:37
const Profile * get_Profile(const Archive *data, Index subint, Index pol, Index chan) Return the requested profile, cloning and integrating when needed. Definition: Index.C:24
void tempo(const std::string &arguments, const std::string &input)
Calculates the signal-to-noise ratio by fitting against a standard. Definition: StandardSNR.h:27
Generated using doxygen 1.8.17
|