Pulsar::StandardCandles::Entry Class Reference

Standard Candle Database Entry. More...

#include <StandardCandles.h>

Public Member Functions

 Entry ()
 Null constructor.
 
 Entry (std::string &str)
 Construct from an ASCII string.
 
 ~Entry ()
 Destructor.
 
void load (const std::string &str)
 load from ascii string
 
void unload (std::string &str)
 unload ascii string
 
bool matches (const std::string &name) const
 return true if the source name matches
 
double get_flux_mJy (double MHz)
 Return the flux in mJy at the specified frequency in MHz.
 

Public Attributes

std::vector< std::string > source_name
 Name of the flux calibrator source.
 
sky_coord position
 Coordinates of the flux calibrator.
 
double reference_frequency
 Reference frequency in MHz.
 
double reference_flux
 Flux density in mJy.
 
double spectral_index
 Spectral index.
 
std::vector< double > spectral_coeffs
 Stores coefficients.
 

Protected Member Functions

void init ()
 Clean slate. More...
 

Detailed Description

Standard Candle Database Entry.

Entries have two modes of storage:

I. reference_frequency, reference_flux, spectral_index II. log(S) = a_0 + a_1*log(f) + a_2*(log(f))^2 + a_3*(log(f))^4 + ...

If 'spectral_coeffs' is not empty, mode II is used

If the config file line starts with '&', then lines as parsed for mode II coefficients

Member Function Documentation

◆ init()

void Pulsar::StandardCandles::Entry::init ( )
protected

Clean slate.

Initialise all variables.


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

Generated using doxygen 1.8.17