Describes a pulse Time of Arrival (TOA) More...

#include <toa.h>

Public Types

enum  Format {
  Unspecified, Comment, Princeton, Parkes,
  ITOA, Psrclock, Command, Tempo2
}
 TOA output format.
 
enum  State {
  Undefined = -2, Deleted = -1, Hidden = 0, Normal = 1,
  Selected = 2
}
 

Public Member Functions

 toa (Format fmt=Psrclock)
 
 toa (const toa &in_toa)
 
toaoperator= (const toa &in_toa)
 
 toa (FILE *instream)
 
 toa (char *indata)
 
void set_format (Format fmt)
 
void set_StoN (float sn)
 
void set_pa (float p)
 
void set_bw (float b)
 
void set_dur (float d)
 
void set_dm (float d)
 
void set_state (State st)
 
void set_frequency (double freq)
 
void set_arrival (MJD arrived)
 
void set_error (float err)
 
void set_reduced_chisq (float x)
 
void set_flux (Estimate< float > x)
 
void set_telescope (const std::string &telcode)
 
void set_auxilliary_text (const std::string &text)
 
void set_channel (unsigned chan)
 
void set_subint (unsigned sub)
 
void set_phase_shift (double shift)
 
void set_phase_info (bool info)
 
Format get_format () const
 
float get_StoN () const
 
float get_pa () const
 
float get_bw () const
 
float get_dur () const
 
float get_dm () const
 
State get_state () const
 
double get_frequency () const
 
MJD get_arrival () const
 
float get_error () const
 
float get_reduced_chisq () const
 
Estimate< float > get_flux () const
 
std::string get_telescope () const
 
std::string get_auxilliary_text () const
 
double get_phase_shift () const
 
unsigned get_channel () const
 
unsigned get_subint () const
 
int load (FILE *instream)
 
int load (const char *instring)
 
int unload (FILE *outstream, Format fmt=Unspecified) const
 
int unload (char *outstring, Format fmt=Unspecified) const
 
int parkes_parse (const char *instring)
 
int parkes_out (char *outstring) const
 
int Parkes_load (const char *instring)
 
int Parkes_unload (FILE *outstream) const
 
int Parkes_unload (char *outstring) const
 
int Princeton_load (const char *instring)
 
int Princeton_unload (FILE *outstream) const
 
int Princeton_unload (char *outstring) const
 
int Psrclock_load (const char *instring)
 
int Psrclock_unload (FILE *outstream) const
 
int Psrclock_unload (char *outstring) const
 
std::string Psrclock_unload () const
 
int Command_load (const char *instring)
 
int Command_unload (FILE *outstream) const
 
int Command_unload (char *outstring) const
 
int Comment_unload (FILE *outstream) const
 
int Comment_unload (char *outstring) const
 
int Tempo2_unload (FILE *outstream) const
 
int Tempo2_unload (char *outstring) const
 
int Tempo_unload (FILE *outstream) const
 
int Tempo_unload (char *outstring) const
 

Static Public Member Functions

static int load (const char *filename, std::vector< toa > *toas)
 
static int load (FILE *instream, std::vector< toa > *toas)
 
static int unload (const char *filename, const std::vector< toa > &toas, Format fmt=Unspecified)
 
static int unload (FILE *outstream, const std::vector< toa > &toas, Format fmt=Unspecified)
 

Public Attributes

residual resid
 
int ci
 
int di
 

Static Public Attributes

static const float UNSET = -999.0
 
static bool verbose = false
 

Protected Attributes

double frequency
 
MJD arrival
 
float error
 
float reduced_chisq
 
std::string telescope
 
unsigned channel
 
unsigned subint
 
double phase_shift
 
float phs
 
float dmc
 
char observatory [2]
 
std::string auxinfo
 
float ston
 
float pa
 
float bw
 
float dur
 
float dm
 
Estimate< float > flux
 
bool phase_info
 
Format format
 
State state
 

Friends

int operator< (const toa &t1, const toa &t2)
 

Detailed Description

Describes a pulse Time of Arrival (TOA)


The documentation for this class was generated from the following files:

Generated using doxygen 1.8.17