Tempo Namespace Reference

Interface to Tempo. More...

Classes

class  Observatory
 Observatory data available from TEMPO. More...
 
class  Predict
 Uses tempo orediction mode to produce polynomial ephemerides (polyco) More...
 
class  toa
 Describes a pulse Time of Arrival (TOA) More...
 

Functions

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)
 Run tempo to fit the model to the data.
 
std::ostream & operator<< (std::ostream &, toa::Format format)
 
std::istream & operator>> (std::istream &, toa::Format &format)
 
int config ()
 Call this global method to ensure that configuration is loaded.
 
const Observatoryobservatory (const std::string &telescope_name)
 Return the Observatory data given the telescope name.
 
char code (const std::string &telescope_name)
 Convert a telescope name to a single-character tempo code. More...
 
float get_version ()
 
std::string get_configuration (const std::string &parameter)
 
void set_system (const std::string &system_call)
 
std::string get_system ()
 
void set_directory (const std::string &directory)
 
void tempo (const std::string &arguments, const std::string &input)
 Run tempo using the given arguments and input. More...
 
void load_obsys ()
 
std::string itoa_code (const std::string &telescope_name)
 

Variables

bool verbose = false
 
bool debug = false
 
std::string extension
 
MJD unspecified
 
std::string tmpdir = "/tmp/tempo/"
 
std::string stdout_filename = "stdout.txt"
 
std::string stderr_filename = "stderr.txt"
 
std::string ephem_filename = "pulsar.eph"
 
Warning warning
 
std::vector< Reference::To< Observatory > > antennae
 

Detailed Description

Interface to Tempo.

Function Documentation

◆ code()

char Tempo::code ( const std::string &  telescope_name)

Convert a telescope name to a single-character tempo code.

Convert a telescope name to a code.

References Tempo::Observatory::get_code(), and observatory().

Referenced by Tempo::Observatory::get_code(), Tempo::Observatory::Observatory(), Tempo::Predict::set_asite(), and Tempo::Predict::set_site().

◆ tempo()

void Tempo::tempo ( const std::string &  arguments,
const std::string &  input 
)

Run tempo using the given arguments and input.

tempo is run with a working directory given by Tempo::get_directory, so input files should be written here and output files (created by tempo) can be found here.

References SystemCall::run().

Referenced by Tempo::Predict::generate_work().


Generated using doxygen 1.8.17