CARMA C++
FluxSource.h
Go to the documentation of this file.
1 
9 #ifndef CARMA_SERVICES_FLUXSOURCE_H
10 #define CARMA_SERVICES_FLUXSOURCE_H
11 
15 #include <string>
16 
17 namespace carma {
18 namespace services {
19 
26  class FluxSource : public carma::services::CatalogEntry {
27  public:
28  FluxSource();
29  virtual ~FluxSource();
30 
36  void setMJD(const std::string &date);
37 
42  const std::string getDate() ;
43 
47  double getMJD() const;
48 
53  void setMJD(double mjd);
54 
59  void setFrequency(const Frequency& freq);
60 
65  Frequency getFrequency() const;
66 
71  void setFlux(const FluxDensity& flux);
72 
77  FluxDensity getFlux() const;
78 
83  void setRms(const float rms);
84 
89  float getRms() const;
90 
96  void setRefAnt(const std::string &ref);
97 
103  std::string getRefAnt() const;
104 
105  //double t3;
106  private:
107  double mjd_;
108  Frequency freq_;
109  FluxDensity flux_;
110  float rms_;
111  std::string refAnt_;
112  static const std::string fmt_;
113 
114  // for parsing or producing the unconventional flux catalog
115  // date string format: YYYY-MMM-DD.D
116  const std::string parseMJD(double mjd);
117  double parseDate(const std::string& date);
118  };
119 } // end namespace services
120 } // end namespace carma
121 
122 #endif // CARMA_SERVICES_FLUXSOURCE_H
void setFrequency(const Frequency &freq)
Set frequency of flux source.
void setMJD(const std::string &date)
Set the MJD of flux measurement, the date string will be parsed to compute the MJD.
The FluxDensity class is used to represent a flux density in any units.
Definition: FluxDensity.h:20
void setFlux(const FluxDensity &flux)
Set flux of flux source.
carma/services/Frequency.h Representation of Frequency.
const std::string getDate()
Get the date string representation of flux measurement.
Frequency getFrequency() const
Get frequency of flux source.
The Frequency class can represent any frequency in any units.
Definition: Frequency.h:39
void setRefAnt(const std::string &ref)
Set name of reference antenna used in solution of flux measurement.
float getRms() const
Get RMS for flux measurement.
std::string getRefAnt() const
Get name of reference antenna used in solution of flux measurement.
void setRms(const float rms)
Set RMS for flux measurement.
FluxSource holds a measurement of a flux calibrator source.
Definition: FluxSource.h:26
FluxDensity getFlux() const
Get flux of flux source.