14#include "Pulsar/PlotFactory.h"
15#include "Pulsar/Plot.h"
17#include "Pulsar/Archive.h"
18#include "Pulsar/Interpreter.h"
20#include "Pulsar/GaussianBaseline.h"
21#include "Pulsar/PhaseWeight.h"
22#include "Pulsar/Profile.h"
24#include <Pulsar/Integration.h>
25#include <Pulsar/IntegrationOrder.h>
26#include <Pulsar/PeriastronOrder.h>
27#include <Pulsar/BinaryPhaseOrder.h>
28#include <Pulsar/BinLngPeriOrder.h>
29#include <Pulsar/BinLngAscOrder.h>
31#include <Pulsar/StokesPlot.h>
32#include <Pulsar/StokesCylindrical.h>
34#include "TextInterface.h"
64 int run(
int argc,
char *argv[] );
67 static Option<string> default_plot_device;
72 Reference::To<Archive> archive;
73 vector< Reference::To<Plot> > plots;
76 vector< FilePlots > plots;
78 template<
class PC >
void SetPlotOptions(
string cmd )
80 vector< FilePlots >::iterator
fit;
81 for( fit = plots.begin(); fit != plots.end(); fit ++ )
83 vector< Reference::To<Plot> >::iterator pit;
84 for( pit = (*fit).plots.begin(); pit != (*fit).plots.end(); pit ++ )
86 Reference::To<PC> sp =
dynamic_cast<PC*
>( (*pit).get() );
89 try { sp->configure( cmd ); }
catch( Error& e ) {}
95 std::string GetBandpassOrSpectrumPlot( Reference::To<Archive> archive );
97 void PrintUsage(
void );
99 void SetStokesPlotToQU(
void );
100 void SetPhaseZoom(
double min_phase,
double max_phase );
101 void SetFreqZoom(
double min_freq,
double max_freq );
102 void PavSpecificOptions(
void );
103 void PavSpecificLabels( Pulsar::Archive* archive );
104 void CreatePlotsList( vector< string > filenames, vector< string > plot_ids );
105 void SetCmdLineOptions( vector< string > options );
106 bool CheckColour(
void );
107 float PADegreesToTurns(
const int deg );
124 double reference_position_angle;
125 double position_angle_height;
142 bool freq_under_name;
144 float user_character_height;
146 float pa_min, pa_max;
150 bool remove_baseline;
The primary interface to pulsar observational data.
Definition Archive.h:46
Configuration option.
Definition Config.h:69
Base class of all plotters.
Definition Plot.h:23
Name
Available colour map names.
Definition ColourMap.h:25
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)