Uses tempo orediction mode to produce polynomial ephemerides (polyco) More...

#include <Predict.h>

Inheritance diagram for Tempo::Predict:
Pulsar::Generator Reference::Able Reference::HeapTracked

Public Member Functions

 Predict (const Pulsar::Parameters *parameters=0)
 Default constructor.
 
Predictclone () const
 Return a new, copy constructed instance of self.
 
void set_parameters (const Pulsar::Parameters *)
 Set the parameters used to generate the predictor.
 
void set_time_span (const MJD &start, const MJD &finish)
 Set the range of epochs over which to generate.
 
void set_frequency_span (long double low, long double high)
 Set the range of frequencies over which to generate.
 
void set_site (const std::string &)
 Set the site at which the signal is observed.
 
Pulsar::Predictorgenerate () const
 Return a new Predictor instance.
 
void set_asite (char code)
 Set the observatory site code. More...
 
void set_frequency (double MHz)
 Set the observing frequency. More...
 
void set_maxha (unsigned hours)
 Set the maximum hour angle of observations. More...
 
void set_nspan (unsigned minutes)
 Set the time spanned by each polynomial ephemeris. More...
 
void set_ncoef (unsigned ncoef)
 Set the number of coefficients per polynomial ephemeris. More...
 
void set_verify (bool verify)
 Set flag to verify time spanned by polynomial ephemerides.
 
polyco get_polyco (const MJD &m1, const MJD &m2)
 Returns a polyco valid over the range in MJD specified by m1 and m2.
 
void write_tzin () const
 Write the tz.in file according to the tempo definition. More...
 
- Public Member Functions inherited from Reference::Able
 Able ()
 Default constructor.
 
 Able (const Able &)
 Copy constructor.
 
Ableoperator= (const Able &)
 Assignment operator.
 
virtual ~Able ()
 Destructor.
 
unsigned get_reference_count () const
 Returns the number of references there are to this.
 
- Public Member Functions inherited from Reference::HeapTracked
 HeapTracked ()
 Default constructor.
 
 HeapTracked (const HeapTracked &)
 Copy constructor.
 
HeapTrackedoperator= (const HeapTracked &)
 Assignment operator.
 
virtual ~HeapTracked ()
 Destructor.
 
bool __is_on_heap () const
 Return true if this instance is found in heap addresses.
 

Static Public Member Functions

static Configuration::Parameter< unsigned > & get_minimum_nspan ()
 The minimum value of nspan allowed.
 
static Configuration::Parameter< double > & get_maximum_rms ()
 The maximum rms allowed, in turns.
 
- Static Public Member Functions inherited from Pulsar::Generator
static Generatorget_default ()
 Return a pointer to a new Generator of the default derived type.
 
static Generatorfactory (const Parameters *)
 Return a pointer to a new Generator that can best handle the parameters.
 
- Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
 Returns the current number instances in existence.
 
- Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
 Records the addresses of new instances allocated on the heap.
 
static void operator delete (void *location, void *ptr)
 Placement delete overload to match the placement new overload.
 
static void operator delete (void *location)
 Regular delete overload.
 
static size_t get_heap_queue_size ()
 Return the number of heap addresses awaiting processing.
 

Protected Member Functions

polyco generate_work () const
 Does the work for the two different interfaces.
 
- Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 Add the address of a reference to this object. More...
 
void __dereference (bool auto_delete=true) const
 Remove the address of a reference to this object. More...
 

Protected Attributes

char asite
 The observatory site code.
 
double frequency
 The observing frequency in MHz.
 
unsigned maxha
 The maximum hour angle of observations in hours.
 
unsigned nspan
 The time spanned by each polynomial ephemeris in minutes.
 
unsigned ncoef
 The number of coefficients per polynomial ephemeris.
 
Reference::To< const Pulsar::Parametersparameters
 The pulsar parameters.
 
std::string psrname
 The pulsar name.
 
bool verify
 Verify the time spanned by polynomial ephemerides.
 
MJD m1
 
MJD m2
 

Additional Inherited Members

- Static Protected Member Functions inherited from Pulsar::Generator
static Configuration::Parameter< Generator * > & get_default_generator ()
 Default generator of new predictors.
 

Detailed Description

Uses tempo orediction mode to produce polynomial ephemerides (polyco)

Member Function Documentation

◆ set_asite()

void Tempo::Predict::set_asite ( char  code)

Set the observatory site code.

Correponds to ASITE in tz.in

References Tempo::code().

◆ set_frequency()

void Tempo::Predict::set_frequency ( double  MHz)

Set the observing frequency.

Corresponds to FREQ in tz.in

◆ set_maxha()

void Tempo::Predict::set_maxha ( unsigned  hours)

Set the maximum hour angle of observations.

Corresponds to MAXHA in tz.in

◆ set_ncoef()

void Tempo::Predict::set_ncoef ( unsigned  ncoef)

Set the number of coefficients per polynomial ephemeris.

Corresponds to NCOEFF in tz.in

Referenced by polyco::generator().

◆ set_nspan()

void Tempo::Predict::set_nspan ( unsigned  minutes)

Set the time spanned by each polynomial ephemeris.

Corresponds to NSPAN in tz.in

Referenced by polyco::generator().

◆ write_tzin()

void Tempo::Predict::write_tzin ( ) const

Write the tz.in file according to the tempo definition.

The file tz.in will be written in the directory returned by Tempo::get_directory, according to the following format:

TZ.IN FORMAT

The tz.in file is a free-format, ASCII file. Items on a line may be separated by any number of spaces and tabs.

The first line contains default parameters: ASITE a one-character site code (as in TOA LINES, above) MAXHADEF default maximum hour angle for observations (hr) NSPANDEF default time span per ephemeris entry (minutes) NCOEFFDEF default number of coefficients per ephemeris entry FREQDEF default observing frequency (MHz)


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

Generated using doxygen 1.8.17