General Purpose Geodetic Library
SgVlbiSourceInfo Class Reference

#include <SgVlbiSourceInfo.h>

Inheritance diagram for SgVlbiSourceInfo:
SgObjectInfo SgAttribute

Classes

class  StructModel
 
class  StructModelMp
 

Public Types

enum  Attributes {
  Attr_NOT_VALID = 1<<0 , Attr_ESTIMATE_COO = 1<<1 , Attr_ESTIMATE_VEL = 1<<2 , Attr_CONSTRAIN_COO = 1<<3 ,
  Attr_CONSTRAIN_VEL = 1<<4 , Attr_APPLY_SSM = 1<<5 , Attr_HAS_A_PRIORI_POS = 1<<10 , Attr_TEST = 1<<31
}
 

Public Member Functions

 SgVlbiSourceInfo (int idx=-1, const QString &key="Unknown", const QString &aka="Unknown too")
 
 SgVlbiSourceInfo (const SgVlbiSourceInfo &)
 
 ~SgVlbiSourceInfo ()
 
const QString & getAprioriReference () const
 
const QString & getAprioriComments () const
 
int getTotalScanNum () const
 
int getProcdScanNum () const
 
SgParameterpRA ()
 
SgParameterpDN ()
 
double getRA () const
 
double getDN () const
 
double getRA_ea () const
 
double getDN_ea () const
 
double getAl2ExtA () const
 
double getAl2Estd () const
 
void setAprioriReference (const QString &ref)
 
void setAprioriComments (const QString &str)
 
void setRA (double ra)
 
void setDN (double dn)
 
void setRA_ea (double ra)
 
void setDN_ea (double dn)
 
void setAl2ExtA (double l)
 
void setAl2Estd (double l)
 
void setTotalScanNum (int n)
 
void setProcdScanNum (int n)
 
void createParameters ()
 
void releaseParameters ()
 
double tauS (double f, double u, double v)
 
void processPartials4SrcStructModel (QList< SgParameter * > &parameters, double f, double u, double v)
 
void incTotalScanNum (int n=1)
 
void incProcdScanNum (int n=1)
 
void resetAllEditings ()
 
bool getIsSsModelEstimating () const
 
void setIsSsModelEstimating (bool is)
 
bool saveIntermediateResults (QDataStream &) const
 
bool loadIntermediateResults (QDataStream &)
 
short calculateStatusBits ()
 
void applyStatusBits (short bitArray)
 
QList< StructModelMp > & sModel ()
 
const QList< StructModelMp > & sModel () const
 
void addSrcStructPoint (double k, double b, double x, double y, bool estK=false, bool estB=false, bool estR=false)
 
void clearSrcStructPoints ()
 
int calcNumOfEstimatedSsmParameters () const
 
- Public Member Functions inherited from SgObjectInfo
 SgObjectInfo (int idx=-1, const QString &key="Unknown", const QString &aka="")
 
 SgObjectInfo (const SgObjectInfo &)
 
 ~SgObjectInfo ()
 
const QString & getKey () const
 
const QString & getAka () const
 
int getIdx () const
 
int numTotal (DataType dType) const
 
int numProcessed (DataType dType) const
 
int numUsable (DataType) const
 
double getSigma2add (DataType) const
 
const SgMJDtFirst (DataType) const
 
const SgMJDtLast (DataType) const
 
double normedResid (DataType) const
 
double getSFF_NrmRes (DataType) const
 
double getSFF_NrmRes_plus_15 (DataType) const
 
double chi2 (DataType) const
 
double reducedChi2 (DataType) const
 
double weightScaleCoefficient (DataType) const
 
double dispersion (DataType, bool=false) const
 
void setKey (const QString &key)
 
void setAka (const QString &aka)
 
void setIdx (int idx)
 
void setNumUsable (DataType dType, int n)
 
void setNormedResid (DataType dType, double d)
 
void setSigma2add (DataType dType, double d)
 
void setSFF_NrmRes (DataType dType, double d)
 
void setSFF_NrmRes_plus_15 (DataType dType, double d)
 
void incNumTotal (DataType, int=1)
 
void decNumTotal (DataType, int=1)
 
void incNumUsable (DataType, int=1)
 
void decNumUsable (DataType, int=1)
 
void addWrms (DataType, const SgMJD &t, double o_c, double w, double auxSum)
 
double wrms (DataType) const
 
double dof (DataType) const
 
void clearWrms ()
 
void copyStatistics (SgObjectInfo *)
 
void copySigmas2add (SgObjectInfo *)
 
void resetAllEditings ()
 
void recalcSigma2add (const SgTaskConfig *cfg)
 
void calcNormalizedResiduals (const QList< SgVlbiObservable * > &observables, const SgTaskConfig *cfg)
 
bool saveIntermediateResults (QDataStream &) const
 
bool loadIntermediateResults (QDataStream &)
 
- Public Member Functions inherited from SgAttribute
 SgAttribute ()
 
 SgAttribute (const SgAttribute &a)
 
 ~SgAttribute ()
 
SgAttributeoperator= (const SgAttribute &a)
 
unsigned int getAttributes () const
 
void setAttributes (unsigned int a)
 
void addAttr (uint a)
 
void delAttr (uint a)
 
void assignAttr (uint a, bool b)
 
void xorAttr (uint a)
 
bool isAttr (uint a) const
 
void clearAll ()
 

Static Public Member Functions

static const QString className ()
 
static double arcLength (double ra_1, double dn_1, double ra_2, double dn_2)
 
static QString ra2String (double ra)
 
static QString dn2String (double dn, bool mandatorySign=false)
 
- Static Public Member Functions inherited from SgObjectInfo
static const QString className ()
 
- Static Public Member Functions inherited from SgAttribute
static const QString className ()
 

Private Attributes

QString aprioriReference_
 
QString aprioriComments_
 
int totalScanNum_
 
int procdScanNum_
 total number of scans for the source; More...
 
double RA_
 number of processed scans for the source; More...
 
double DN_
 
double RA_ea_
 
double DN_ea_
 
double al2ExtA_
 
double al2Estd_
 
SgParameterpRA_
 
SgParameterpDN_
 
QList< StructModelMpsModel_
 
bool isSsModelEstimating_
 

Detailed Description

Definition at line 59 of file SgVlbiSourceInfo.h.

Member Enumeration Documentation

◆ Attributes

Enumerator
Attr_NOT_VALID 

omit the source;

Attr_ESTIMATE_COO 

estimate source position;

Attr_ESTIMATE_VEL 

estimate source velocity;

Attr_CONSTRAIN_COO 

constrain source position in estimation;

Attr_CONSTRAIN_VEL 

constrain source velocity in estimation;

Attr_APPLY_SSM 

apply the source structure model;

Attr_HAS_A_PRIORI_POS 

indicates that the source has a priori position;

Attr_TEST 

for testing purposes.

Definition at line 62 of file SgVlbiSourceInfo.h.

Constructor & Destructor Documentation

◆ SgVlbiSourceInfo() [1/2]

SgVlbiSourceInfo::SgVlbiSourceInfo ( int  idx = -1,
const QString &  key = "Unknown",
const QString &  aka = "Unknown too" 
)

A constructor. Creates an object.

Definition at line 93 of file SgVlbiSourceInfo.cpp.

References al2Estd_, al2ExtA_, Attr_ESTIMATE_COO, SgAttribute::delAttr(), DN_, DN_ea_, isSsModelEstimating_, pDN_, pRA_, procdScanNum_, RA_, RA_ea_, and totalScanNum_.

◆ SgVlbiSourceInfo() [2/2]

SgVlbiSourceInfo::SgVlbiSourceInfo ( const SgVlbiSourceInfo src)

A constructor. Creates a copy of an object.

Definition at line 116 of file SgVlbiSourceInfo.cpp.

References al2Estd_, al2ExtA_, DN_, DN_ea_, isSsModelEstimating_, pDN_, pRA_, procdScanNum_, RA_, RA_ea_, and totalScanNum_.

◆ ~SgVlbiSourceInfo()

SgVlbiSourceInfo::~SgVlbiSourceInfo ( )
inline

A destructor. Frees allocated memory.

Definition at line 358 of file SgVlbiSourceInfo.h.

References releaseParameters(), and sModel_.

Member Function Documentation

◆ addSrcStructPoint()

void SgVlbiSourceInfo::addSrcStructPoint ( double  k,
double  b,
double  x,
double  y,
bool  estK = false,
bool  estB = false,
bool  estR = false 
)
inline

Definition at line 335 of file SgVlbiSourceInfo.h.

References sModel_.

Referenced by NsScrPrx4Source::addSrcStructPoint(), and SgVlbiSession::collectAPriories().

◆ applyStatusBits()

void SgVlbiSourceInfo::applyStatusBits ( short  bitArray)

◆ arcLength()

double SgVlbiSourceInfo::arcLength ( double  ra_1,
double  dn_1,
double  ra_2,
double  dn_2 
)
static

Definition at line 147 of file SgVlbiSourceInfo.cpp.

References RAD2MAS.

Referenced by SgVlbiSession::collectAPriories(), and SgSingleSessionTaskManager::run().

◆ calcNumOfEstimatedSsmParameters()

int SgVlbiSourceInfo::calcNumOfEstimatedSsmParameters ( ) const

◆ calculateStatusBits()

short SgVlbiSourceInfo::calculateStatusBits ( )

◆ className()

const QString SgVlbiSourceInfo::className ( )
static

Returns name of the class (for debug output).

Definition at line 85 of file SgVlbiSourceInfo.cpp.

◆ clearSrcStructPoints()

void SgVlbiSourceInfo::clearSrcStructPoints ( )
inline

◆ createParameters()

void SgVlbiSourceInfo::createParameters ( )

Allocates necessary memory for estimated parameters.

Definition at line 209 of file SgVlbiSourceInfo.cpp.

References SgObjectInfo::getKey(), pDN_, pRA_, releaseParameters(), and sModel_.

◆ dn2String()

QString SgVlbiSourceInfo::dn2String ( double  dn,
bool  mandatorySign = false 
)
static

◆ getAl2Estd()

double SgVlbiSourceInfo::getAl2Estd ( ) const
inline

◆ getAl2ExtA()

double SgVlbiSourceInfo::getAl2ExtA ( ) const
inline

◆ getAprioriComments()

◆ getAprioriReference()

const QString& SgVlbiSourceInfo::getAprioriReference ( ) const
inline

Definition at line 180 of file SgVlbiSourceInfo.h.

References aprioriReference_.

Referenced by SgAgvDriver::fillSessVars(), and SgVlbiSession::putDataIntoVgosDb().

◆ getDN()

◆ getDN_ea()

double SgVlbiSourceInfo::getDN_ea ( ) const
inline

◆ getIsSsModelEstimating()

bool SgVlbiSourceInfo::getIsSsModelEstimating ( ) const
inline

◆ getProcdScanNum()

int SgVlbiSourceInfo::getProcdScanNum ( ) const
inline

Definition at line 183 of file SgVlbiSourceInfo.h.

References procdScanNum_.

◆ getRA()

◆ getRA_ea()

double SgVlbiSourceInfo::getRA_ea ( ) const
inline

◆ getTotalScanNum()

int SgVlbiSourceInfo::getTotalScanNum ( ) const
inline

◆ incProcdScanNum()

void SgVlbiSourceInfo::incProcdScanNum ( int  n = 1)
inline

Definition at line 285 of file SgVlbiSourceInfo.h.

References procdScanNum_.

◆ incTotalScanNum()

void SgVlbiSourceInfo::incTotalScanNum ( int  n = 1)
inline

Definition at line 284 of file SgVlbiSourceInfo.h.

References totalScanNum_.

◆ loadIntermediateResults()

bool SgVlbiSourceInfo::loadIntermediateResults ( QDataStream s)

Definition at line 287 of file SgVlbiSourceInfo.cpp.

References SgObjectInfo::loadIntermediateResults(), and sModel_.

◆ pDN()

◆ pRA()

◆ processPartials4SrcStructModel()

void SgVlbiSourceInfo::processPartials4SrcStructModel ( QList< SgParameter * > &  parameters,
double  f,
double  u,
double  v 
)

Definition at line 360 of file SgVlbiSourceInfo.cpp.

References SgPartial::Attr_IS_IN_RUN, and sModel_.

Referenced by SgVlbiObservation::fillPartials4delay().

◆ ra2String()

QString SgVlbiSourceInfo::ra2String ( double  ra)
static

◆ releaseParameters()

void SgVlbiSourceInfo::releaseParameters ( )

Frees previously allocated memory for estimated parameters.

Definition at line 228 of file SgVlbiSourceInfo.cpp.

References pDN_, pRA_, and sModel_.

Referenced by ~SgVlbiSourceInfo(), and createParameters().

◆ resetAllEditings()

◆ saveIntermediateResults()

◆ setAl2Estd()

void SgVlbiSourceInfo::setAl2Estd ( double  l)
inline

Definition at line 245 of file SgVlbiSourceInfo.h.

References al2Estd_.

◆ setAl2ExtA()

void SgVlbiSourceInfo::setAl2ExtA ( double  l)
inline

Definition at line 244 of file SgVlbiSourceInfo.h.

References al2ExtA_.

Referenced by SgVlbiSession::collectAPriories().

◆ setAprioriComments()

void SgVlbiSourceInfo::setAprioriComments ( const QString &  str)
inline

Definition at line 222 of file SgVlbiSourceInfo.h.

References aprioriComments_.

Referenced by SgVlbiSession::collectAPriories().

◆ setAprioriReference()

void SgVlbiSourceInfo::setAprioriReference ( const QString &  ref)
inline

◆ setDN()

void SgVlbiSourceInfo::setDN ( double  dn)
inline

Sets declination of the source.

Parameters
&ndash;dn new value of the right ascension;

Definition at line 426 of file SgVlbiSourceInfo.h.

References DN_.

Referenced by SgVlbiSession::getDataFromDbhImage(), SgVlbiSession::getDataFromVgosDb(), SgAgvDriver::initSession(), VcCalc2SessionIfc::putR_star2000(), and NsScrPrx4Source::setDn().

◆ setDN_ea()

void SgVlbiSourceInfo::setDN_ea ( double  dn)
inline

Sets declination of the source (ext. a priori file value).

Parameters
&ndash;dn new value of the right ascension;

Definition at line 441 of file SgVlbiSourceInfo.h.

References DN_ea_.

Referenced by SgVlbiSession::collectAPriories().

◆ setIsSsModelEstimating()

void SgVlbiSourceInfo::setIsSsModelEstimating ( bool  is)
inline

Definition at line 290 of file SgVlbiSourceInfo.h.

References isSsModelEstimating_.

Referenced by SgTaskManager::fillParameterList().

◆ setProcdScanNum()

void SgVlbiSourceInfo::setProcdScanNum ( int  n)
inline

Definition at line 249 of file SgVlbiSourceInfo.h.

References procdScanNum_.

◆ setRA()

void SgVlbiSourceInfo::setRA ( double  ra)
inline

Sets right ascension of the source.

Parameters
&ndash;ra new value of the right ascension;

Definition at line 418 of file SgVlbiSourceInfo.h.

References RA_.

Referenced by SgVlbiSession::getDataFromDbhImage(), SgVlbiSession::getDataFromVgosDb(), SgAgvDriver::initSession(), VcCalc2SessionIfc::putR_star2000(), and NsScrPrx4Source::setRa().

◆ setRA_ea()

void SgVlbiSourceInfo::setRA_ea ( double  ra)
inline

Sets right ascension of the source (ext. a priori file value).

Parameters
&ndash;ra new value of the right ascension;

Definition at line 433 of file SgVlbiSourceInfo.h.

References RA_ea_.

Referenced by SgVlbiSession::collectAPriories().

◆ setTotalScanNum()

void SgVlbiSourceInfo::setTotalScanNum ( int  n)
inline

Definition at line 248 of file SgVlbiSourceInfo.h.

References totalScanNum_.

Referenced by SgVlbiBand::selfCheck(), and SgVlbiSession::selfCheck().

◆ sModel() [1/2]

◆ sModel() [2/2]

const QList<StructModelMp>& SgVlbiSourceInfo::sModel ( ) const
inline

Definition at line 334 of file SgVlbiSourceInfo.h.

References sModel_.

◆ tauS()

double SgVlbiSourceInfo::tauS ( double  f,
double  u,
double  v 
)

Definition at line 310 of file SgVlbiSourceInfo.cpp.

References sModel_.

Referenced by SgVlbiObservation::evaluateTheoreticalValues().

Member Data Documentation

◆ al2Estd_

double SgVlbiSourceInfo::al2Estd_
private

Definition at line 323 of file SgVlbiSourceInfo.h.

Referenced by SgVlbiSourceInfo(), getAl2Estd(), and setAl2Estd().

◆ al2ExtA_

double SgVlbiSourceInfo::al2ExtA_
private

Definition at line 322 of file SgVlbiSourceInfo.h.

Referenced by SgVlbiSourceInfo(), getAl2ExtA(), and setAl2ExtA().

◆ aprioriComments_

QString SgVlbiSourceInfo::aprioriComments_
private

Definition at line 311 of file SgVlbiSourceInfo.h.

Referenced by getAprioriComments(), and setAprioriComments().

◆ aprioriReference_

QString SgVlbiSourceInfo::aprioriReference_
private

Definition at line 310 of file SgVlbiSourceInfo.h.

Referenced by getAprioriReference(), and setAprioriReference().

◆ DN_

double SgVlbiSourceInfo::DN_
private

Definition at line 317 of file SgVlbiSourceInfo.h.

Referenced by SgVlbiSourceInfo(), getDN(), and setDN().

◆ DN_ea_

double SgVlbiSourceInfo::DN_ea_
private

Definition at line 320 of file SgVlbiSourceInfo.h.

Referenced by SgVlbiSourceInfo(), getDN_ea(), and setDN_ea().

◆ isSsModelEstimating_

bool SgVlbiSourceInfo::isSsModelEstimating_
private

◆ pDN_

SgParameter* SgVlbiSourceInfo::pDN_
private

Definition at line 327 of file SgVlbiSourceInfo.h.

Referenced by SgVlbiSourceInfo(), createParameters(), pDN(), and releaseParameters().

◆ pRA_

SgParameter* SgVlbiSourceInfo::pRA_
private

Definition at line 326 of file SgVlbiSourceInfo.h.

Referenced by SgVlbiSourceInfo(), createParameters(), pRA(), and releaseParameters().

◆ procdScanNum_

int SgVlbiSourceInfo::procdScanNum_
private

total number of scans for the source;

Definition at line 313 of file SgVlbiSourceInfo.h.

Referenced by SgVlbiSourceInfo(), getProcdScanNum(), incProcdScanNum(), resetAllEditings(), and setProcdScanNum().

◆ RA_

double SgVlbiSourceInfo::RA_
private

number of processed scans for the source;

Definition at line 316 of file SgVlbiSourceInfo.h.

Referenced by SgVlbiSourceInfo(), getRA(), and setRA().

◆ RA_ea_

double SgVlbiSourceInfo::RA_ea_
private

Definition at line 319 of file SgVlbiSourceInfo.h.

Referenced by SgVlbiSourceInfo(), getRA_ea(), and setRA_ea().

◆ sModel_

◆ totalScanNum_

int SgVlbiSourceInfo::totalScanNum_
private

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