10 #ifndef LOFAR_PARMDB_SOURCEINFO_H
11 #define LOFAR_PARMDB_SOURCEINFO_H
13 #include <casacore/casa/Arrays/Array.h>
14 #include <casacore/measures/Measures/MDirection.h>
46 const std::string& refType =
"J2000",
bool useLogarithmicSI =
true,
47 unsigned int spectralIndexNTerms = 0,
48 double spectralIndexRefFreqHz = 0.,
49 bool useRotationMeasure =
false,
50 bool positionAngleIsAbsolute =
false);
59 const std::string&
getName()
const {
return itsName; }
65 const std::string&
getRefType()
const {
return itsRefType; }
91 return itsShapeletCoeffI;
94 return itsShapeletCoeffQ;
97 return itsShapeletCoeffU;
100 return itsShapeletCoeffV;
107 const casacore::Array<double>& Q,
108 const casacore::Array<double>& U,
109 const casacore::Array<double>& V);
124 uint32_t itsNSpTerms;
125 double itsSpTermsRefFreq;
126 bool itsHasLogarithmicSI;
129 bool itsPositionAngleIsAbsolute;
133 double itsShapeletScaleI;
134 double itsShapeletScaleQ;
135 double itsShapeletScaleU;
136 double itsShapeletScaleV;
137 casacore::Array<double> itsShapeletCoeffI;
138 casacore::Array<double> itsShapeletCoeffQ;
139 casacore::Array<double> itsShapeletCoeffU;
140 casacore::Array<double> itsShapeletCoeffV;
Input stream for a blob.
Definition: BlobIStream.h:43
Output stream for a blob.
Definition: BlobOStream.h:40
Info about a source.
Definition: SourceInfo.h:29
double getSpectralTermsRefFreq() const
Get the reference frequency (in Hz) for the spectral index.
Definition: SourceInfo.h:82
bool getUseRotationMeasure() const
Definition: SourceInfo.h:86
double getShapeletScaleQ() const
Definition: SourceInfo.h:103
const casacore::Array< double > & getShapeletCoeffU() const
Definition: SourceInfo.h:96
SourceInfo(const SourceInfo &)
Copy constructor.
double getShapeletScaleV() const
Definition: SourceInfo.h:105
unsigned int getNSpectralTerms() const
Definition: SourceInfo.h:79
void read(dp3::blob::BlobIStream &)
Read from a blob.
const std::string & getRefType() const
Get the reference type.
Definition: SourceInfo.h:65
void setShapeletCoeff(const casacore::Array< double > &I, const casacore::Array< double > &Q, const casacore::Array< double > &U, const casacore::Array< double > &V)
double getShapeletScaleU() const
Definition: SourceInfo.h:104
void write(dp3::blob::BlobOStream &) const
Write into a blob.
bool getHasLogarithmicSI() const
Definition: SourceInfo.h:70
const casacore::Array< double > & getShapeletCoeffQ() const
Definition: SourceInfo.h:93
bool getPositionAngleIsAbsolute() const
Definition: SourceInfo.h:75
const casacore::Array< double > & getShapeletCoeffV() const
Definition: SourceInfo.h:99
const casacore::Array< double > & getShapeletCoeffI() const
Definition: SourceInfo.h:90
void setShapeletScale(double scaleI, double scaleQ, double scaleU, double scaleV)
SourceInfo & operator=(const SourceInfo &)
Assignment.
const std::string & getName() const
Get the source name.
Definition: SourceInfo.h:59
Type getType() const
Get the source type.
Definition: SourceInfo.h:62
SourceInfo(const std::string &name, Type type, const std::string &refType="J2000", bool useLogarithmicSI=true, unsigned int spectralIndexNTerms=0, double spectralIndexRefFreqHz=0., bool useRotationMeasure=false, bool positionAngleIsAbsolute=false)
double getShapeletScaleI() const
Definition: SourceInfo.h:102
Type
Definition: SourceInfo.h:33
@ SHAPELET
Definition: SourceInfo.h:33
@ DISK
Definition: SourceInfo.h:33
@ POINT
Definition: SourceInfo.h:33
@ GAUSSIAN
Definition: SourceInfo.h:33
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53