#include <SourceInfo.h>
|
| | SourceInfo (const SourceInfo &) |
| | Copy constructor. More...
|
| |
| | 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) |
| |
| bool | getHasLogarithmicSI () const |
| |
| const std::string & | getName () const |
| | Get the source name. More...
|
| |
| unsigned int | getNSpectralTerms () const |
| |
| bool | getPositionAngleIsAbsolute () const |
| |
| const std::string & | getRefType () const |
| | Get the reference type. More...
|
| |
| double | getSpectralTermsRefFreq () const |
| | Get the reference frequency (in Hz) for the spectral index. More...
|
| |
| Type | getType () const |
| | Get the source type. More...
|
| |
| bool | getUseRotationMeasure () const |
| |
| SourceInfo & | operator= (const SourceInfo &) |
| | Assignment. More...
|
| |
|
| const casacore::Array< double > & | getShapeletCoeffI () const |
| |
| const casacore::Array< double > & | getShapeletCoeffQ () const |
| |
| const casacore::Array< double > & | getShapeletCoeffU () const |
| |
| const casacore::Array< double > & | getShapeletCoeffV () const |
| |
| double | getShapeletScaleI () const |
| |
| double | getShapeletScaleQ () const |
| |
| double | getShapeletScaleU () const |
| |
| double | getShapeletScaleV () const |
| |
| void | setShapeletCoeff (const casacore::Array< double > &I, const casacore::Array< double > &Q, const casacore::Array< double > &U, const casacore::Array< double > &V) |
| |
| void | setShapeletScale (double scaleI, double scaleQ, double scaleU, double scaleV) |
| |
◆ Type
Define the source types. The values should never be changed.
| Enumerator |
|---|
| POINT | |
| GAUSSIAN | |
| DISK | |
| SHAPELET | |
◆ SourceInfo() [1/2]
| dp3::sky_model::SourceInfo::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 |
|
) |
| |
Create from source name, type, reference type and other info.
The 'type' argument tells the source type (point, gaussian, etc.).
The 'refType' argument tells the MDirection reference frame (J2000, SUN, etc.).
A positive spectralIndexSize means that BBS will take a spectral index with size terms into account when calculating the flux. The values of the terms are in the associated ParmDB. It uses the given reference frequency (in Hz).
useRotationMeasure indicates that Q and U have to be calculated using a rotation measure, polarization angle, and polarized fraction.
◆ SourceInfo() [2/2]
| dp3::sky_model::SourceInfo::SourceInfo |
( |
const SourceInfo & |
| ) |
|
◆ getHasLogarithmicSI()
| bool dp3::sky_model::SourceInfo::getHasLogarithmicSI |
( |
| ) |
const |
|
inline |
Whether the standard logarithmic spectral function is used (where the first terms is thus the SI) or a polynomial spectral function (as used in e.g. cleaning).
◆ getName()
| const std::string& dp3::sky_model::SourceInfo::getName |
( |
| ) |
const |
|
inline |
◆ getNSpectralTerms()
| unsigned int dp3::sky_model::SourceInfo::getNSpectralTerms |
( |
| ) |
const |
|
inline |
Get the number of terms in the spectral index function. A value 0 means that the spectral index is not used.
◆ getPositionAngleIsAbsolute()
| bool dp3::sky_model::SourceInfo::getPositionAngleIsAbsolute |
( |
| ) |
const |
|
inline |
Whether the position angle (rotation) is absolute, i.e. with respect to the North Celestial pole. False means that it is given with respect to North at the phase center, the default until 2022.
◆ getRefType()
| const std::string& dp3::sky_model::SourceInfo::getRefType |
( |
| ) |
const |
|
inline |
◆ getShapeletCoeffI()
| const casacore::Array<double>& dp3::sky_model::SourceInfo::getShapeletCoeffI |
( |
| ) |
const |
|
inline |
Set or get the shapelet info.
◆ getShapeletCoeffQ()
| const casacore::Array<double>& dp3::sky_model::SourceInfo::getShapeletCoeffQ |
( |
| ) |
const |
|
inline |
◆ getShapeletCoeffU()
| const casacore::Array<double>& dp3::sky_model::SourceInfo::getShapeletCoeffU |
( |
| ) |
const |
|
inline |
◆ getShapeletCoeffV()
| const casacore::Array<double>& dp3::sky_model::SourceInfo::getShapeletCoeffV |
( |
| ) |
const |
|
inline |
◆ getShapeletScaleI()
| double dp3::sky_model::SourceInfo::getShapeletScaleI |
( |
| ) |
const |
|
inline |
◆ getShapeletScaleQ()
| double dp3::sky_model::SourceInfo::getShapeletScaleQ |
( |
| ) |
const |
|
inline |
◆ getShapeletScaleU()
| double dp3::sky_model::SourceInfo::getShapeletScaleU |
( |
| ) |
const |
|
inline |
◆ getShapeletScaleV()
| double dp3::sky_model::SourceInfo::getShapeletScaleV |
( |
| ) |
const |
|
inline |
◆ getSpectralTermsRefFreq()
| double dp3::sky_model::SourceInfo::getSpectralTermsRefFreq |
( |
| ) |
const |
|
inline |
Get the reference frequency (in Hz) for the spectral index.
◆ getType()
| Type dp3::sky_model::SourceInfo::getType |
( |
| ) |
const |
|
inline |
◆ getUseRotationMeasure()
| bool dp3::sky_model::SourceInfo::getUseRotationMeasure |
( |
| ) |
const |
|
inline |
Tell if Q,U are directly given or have to be calculated from rotation measure, polarisation fraction and angle.
◆ operator=()
◆ setShapeletCoeff()
| void dp3::sky_model::SourceInfo::setShapeletCoeff |
( |
const casacore::Array< double > & |
I, |
|
|
const casacore::Array< double > & |
Q, |
|
|
const casacore::Array< double > & |
U, |
|
|
const casacore::Array< double > & |
V |
|
) |
| |
◆ setShapeletScale()
| void dp3::sky_model::SourceInfo::setShapeletScale |
( |
double |
scaleI, |
|
|
double |
scaleQ, |
|
|
double |
scaleU, |
|
|
double |
scaleV |
|
) |
| |
The documentation for this class was generated from the following file: