General Purpose Geodetic Library
SgStnLogReadings Class Reference

#include <SgStnLogCollector.h>

Public Types

enum  InputType {
  IT_UNDEF = 0 , IT_FSLG = 1 , IT_CDMS = 2 , IT_PCMT = 3 ,
  IT_METE = 4
}
 

Public Member Functions

 SgStnLogReadings ()
 
 SgStnLogReadings (const QString &stationName)
 
 ~SgStnLogReadings ()
 
InputType getItType () const
 
double getCableCalAmbig () const
 
int getCableSign () const
 
QList< SgOnSourceRecord * > & onSourceRecords ()
 
QList< SgCableCalReading * > & cableCals ()
 
QList< SgCableCalReading * > & cableLongs ()
 
QList< SgMeteoReading * > & meteoPars ()
 
QList< SgTsysReading * > & tSyses ()
 
QList< SgDbbc3TpReading * > & dbbc3Tps ()
 
QList< SgTraklReading * > & trakls ()
 
QList< SgPcalReading * > & pcals ()
 
QList< SgSefdReading * > & sefds ()
 
QList< SgDot2xpsReading * > & dot2xpses ()
 
bool areMeteosPresent () const
 
bool areCableCalsPresent () const
 
const QString & getExperimentName () const
 
const QString & getFsVersionLabel () const
 
const QString & getBackEndInfo () const
 
const QString & getRecorderInfo () const
 
const SgChannelSetupgetChannelSetup () const
 
SgChannelSetupchannelSetup ()
 
void setItType (InputType t)
 
void setCableCalAmbig (double a)
 
void setCableSign (int n)
 
void setStationName (const QString &name)
 
void setExperimentName (const QString &name)
 
void setFsVersionLabel (const QString &ver)
 
void setBackEndInfo (const QString &info)
 
void setRecorderInfo (const QString &info)
 
void verifyReadings (SgVlbiStationInfo *stn, const QMap< QString, int > *defaultCableSignByStn)
 
bool propagateData (SgVlbiStationInfo *stn)
 
void allocateCableReadings ()
 
bool createAntabFile (const QString &inputLogFileName, const QString &outputFileName, const QString &stnKey, const SgChannelSkeded *channelSkeded, bool useSkededChannelSetup, bool have2overwrite, bool reportAllTsysData)
 
bool createAntCalFile (const QString &inputLogFileName, const QString &outputFileName, const QString &stnKey, const SgChannelSkeded *channelSkeded, bool useSkededChannelSetup, bool have2overwrite, bool reportAllReadings, bool supressNonUsedSensors, int antcalOutputData, const QString &ext4compress, const QString &userCommand)
 

Static Public Member Functions

static const QString className ()
 

Private Member Functions

void removeCableCalReadings ()
 
void removeMeteoReadings ()
 
void removeTsysReadings ()
 
int determineCableSignFromLong ()
 
void lookupScanName (SgOnSourceRecord *osRec, const QMap< QString, SgVlbiAuxObservation * > &auxObsByScan)
 
void cleanCableCalibrations ()
 
void cleanMeteoParameters ()
 
void interpolateMeteoParameters (SgVlbiAuxObservation *aux)
 
void export2antabFrqs_nativeSetup (QTextStream &s)
 
void export2antabFrqs_vgosSetup (QTextStream &s)
 
void export2antabFrqs_skededSetup (QTextStream &s, const SgChannelSkeded::StnCfg &sCfg)
 
void export2antabFrqs_missedSetup (QTextStream &s)
 
void export2antCalFrqs_nativeSetup (QTextStream &s)
 
void export2antCalFrqs_vgosSetup (QTextStream &s)
 
void export2antCalFrqs_skededSetup (QTextStream &s, const SgChannelSkeded::StnCfg &sCfg)
 
void export2antCalPcal_vgosSetup (QTextStream &s)
 
bool compareChannelSetups (const SgChannelSkeded::StnCfg &sCfg)
 
bool compareChannelNumbers (const SgChannelSkeded::StnCfg &sCfg)
 

Private Attributes

InputType itType_
 
bool areMeteosPresent_
 
bool areCableCalsPresent_
 
bool areTsysesPresent_
 
bool tSensorsPrinted2AntCal_
 
double cableCalAmbig_
 
int cableSign_
 
QString stationName_
 
QString experimentName_
 
QString fsVersionLabel_
 
QString backEndInfo_
 
QString recorderInfo_
 
QList< SgOnSourceRecord * > onSourceRecords_
 
QList< SgCableCalReading * > cableCals_
 
QList< SgCableCalReading * > cableLongs_
 
QList< SgMeteoReading * > meteoPars_
 
QList< SgTsysReading * > tSyses_
 
QList< SgDbbc3TpReading * > dbbc3Tps_
 
QList< SgTraklReading * > trakls_
 
QList< SgPcalReading * > pcals_
 
QList< SgSefdReading * > sefds_
 
QList< SgDot2xpsReading * > dot2xpses_
 
QMap< QString, SgOnSourceRecord * > recordByScan_
 
SgChannelSetup channelSetup_
 

Static Private Attributes

static const QString sFiller_
 
static const int nFiller_ = -999
 
static const double dFiller_ = -99.9
 

Detailed Description

SgStnLogReadings: ====================================================================================================

Definition at line 1157 of file SgStnLogCollector.h.

Member Enumeration Documentation

◆ InputType

Enumerator
IT_UNDEF 
IT_FSLG 
IT_CDMS 
IT_PCMT 
IT_METE 

Definition at line 1160 of file SgStnLogCollector.h.

Constructor & Destructor Documentation

◆ SgStnLogReadings() [1/2]

SgStnLogReadings::SgStnLogReadings ( )

A constructor. Creates an object.

Definition at line 789 of file SgStnLogCollector.cpp.

References areCableCalsPresent_, areMeteosPresent_, areTsysesPresent_, cableCalAmbig_, cableSign_, IT_UNDEF, itType_, and tSensorsPrinted2AntCal_.

◆ SgStnLogReadings() [2/2]

SgStnLogReadings::SgStnLogReadings ( const QString &  stationName)

A constructor. Creates an object.

Definition at line 817 of file SgStnLogCollector.cpp.

References areCableCalsPresent_, areMeteosPresent_, areTsysesPresent_, cableCalAmbig_, cableSign_, and tSensorsPrinted2AntCal_.

◆ ~SgStnLogReadings()

SgStnLogReadings::~SgStnLogReadings ( )

A destructor. Frees allocated memory.

Definition at line 843 of file SgStnLogCollector.cpp.

References cableCals_, cableLongs_, dbbc3Tps_, dot2xpses_, meteoPars_, onSourceRecords_, pcals_, recordByScan_, sefds_, trakls_, and tSyses_.

Member Function Documentation

◆ allocateCableReadings()

◆ areCableCalsPresent()

bool SgStnLogReadings::areCableCalsPresent ( ) const
inline

Definition at line 1208 of file SgStnLogCollector.h.

References areCableCalsPresent_.

◆ areMeteosPresent()

bool SgStnLogReadings::areMeteosPresent ( ) const
inline

Definition at line 1207 of file SgStnLogCollector.h.

References areMeteosPresent_.

◆ cableCals()

QList<SgCableCalReading*>& SgStnLogReadings::cableCals ( )
inline

Definition at line 1197 of file SgStnLogCollector.h.

References cableCals_.

Referenced by SgStnLogCollector::readLogFile(), and SgVlbaLogCollector::readLogFile().

◆ cableLongs()

QList<SgCableCalReading*>& SgStnLogReadings::cableLongs ( )
inline

Definition at line 1198 of file SgStnLogCollector.h.

References cableLongs_.

Referenced by SgStnLogCollector::readLogFile().

◆ channelSetup()

◆ className()

◆ cleanCableCalibrations()

◆ cleanMeteoParameters()

◆ compareChannelNumbers()

◆ compareChannelSetups()

◆ createAntabFile()

bool SgStnLogReadings::createAntabFile ( const QString &  inputLogFileName,
const QString &  outputFileName,
const QString &  stnKey,
const SgChannelSkeded channelSkeded,
bool  useSkededChannelSetup,
bool  have2overwrite,
bool  reportAllTsysData 
)

◆ createAntCalFile()

bool SgStnLogReadings::createAntCalFile ( const QString &  inputLogFileName,
const QString &  outputFileName,
const QString &  stnKey,
const SgChannelSkeded channelSkeded,
bool  useSkededChannelSetup,
bool  have2overwrite,
bool  reportAllReadings,
bool  supressNonUsedSensors,
int  antcalOutputData,
const QString &  ext4compress,
const QString &  userCommand 
)

Definition at line 3433 of file SgStnLogCollector.cpp.

References AOD_CABLE_CAL, AOD_CABLE_SIGN, AOD_DATA_ON, AOD_DBBC3TP, AOD_FMTGPS, AOD_METEO, AOD_PCAL, AOD_SEFD, AOD_TPI, AOD_TSYS, backEndInfo_, SgChannelSetup::BET_DBBC3, cableCals_, cableSign_, channelSetup_, className(), SgIoExtFilterHandler::closeFlt(), compareChannelNumbers(), compareChannelSetups(), compressors, DAY2SEC, dbbc3Tps_, SgLogger::DBG, dFiller_, dot2xpses_, driverVersion, experimentName_, export2antabFrqs_missedSetup(), export2antCalFrqs_skededSetup(), export2antCalFrqs_vgosSetup(), export2antCalPcal_vgosSetup(), SgMJD::F_SOLVE_SPLFL, SgMJD::F_SOLVE_SPLFL_V3, FLTD_Output, fsVersionLabel_, SgTraklReading::getAz(), SgSefdReading::getAz(), SgChannelSetup::getBackEndType(), SgIoExternalFilter::getDefaultExtension(), SgDot2xpsReading::getDot2gpsByBrd(), SgTraklReading::getEl(), SgSefdReading::getEl(), SgChannelSetup::getHwType(), SgOnSourceRecord::getIdx(), SgMeteoReading::getM(), SgCableCalReading::getOsRec(), SgMeteoReading::getOsRec(), SgTsysReading::getOsRec(), SgDbbc3TpReading::getOsRec(), SgPcalReading::getOsRec(), SgDot2xpsReading::getOsRec(), SgPcalReading::getPcal(), SgMeteoData::getPressure(), SgMeteoData::getRelativeHumidity(), SgOnSourceRecord::getScanName(), SgOnSourceRecord::getSourceName(), SgSefdReading::getSrcName(), SgCableCalReading::getT(), SgMeteoReading::getT(), SgTsysReading::getT(), SgDbbc3TpReading::getT(), SgPcalReading::getT(), SgSefdReading::getT(), SgDot2xpsReading::getT(), SgOnSourceRecord::getTdataOn(), SgMeteoData::getTemperature(), SgOnSourceRecord::getTfinis(), SgDbbc3TpReading::getTpBySensor(), SgTsysReading::getTpcont(), SgTsysReading::getTsys(), SgCableCalReading::getV(), SgSefdReading::getValByChanKey(), SgChannelSetup::HT_VGOS, SgChannelSetup::ifIdBySensorKey(), SgLogger::IO, SgLogger::IO_TXT, SgChannelSkeded::isOk(), libraryVersion, logger, SgIoExtFilterHandler::lookupFilterByFileName(), meteoPars_, SgVersion::name(), nFiller_, onSourceRecords_, SgIoExtFilterHandler::openFlt(), SgChannelSetup::pcalIdByKey(), pcals_, RAD2DEG, recorderInfo_, sefds_, SgChannelSetup::selfCheck(), sFiller_, SgChannelSkeded::stnCfgByKey_, SgMJD::toString(), SgTsysReading::trakls(), tSensorsPrinted2AntCal_, tSyses_, SgLogger::write(), SgLogger::WRN, and SgChannelSetup::xpsIdByKey().

Referenced by SgStnLogCollector::createAntCalFile().

◆ dbbc3Tps()

QList<SgDbbc3TpReading*>& SgStnLogReadings::dbbc3Tps ( )
inline

◆ determineCableSignFromLong()

int SgStnLogReadings::determineCableSignFromLong ( )
private

◆ dot2xpses()

QList<SgDot2xpsReading*>& SgStnLogReadings::dot2xpses ( )
inline

Definition at line 1205 of file SgStnLogCollector.h.

References dot2xpses_.

Referenced by SgStnLogCollector::readLogFile().

◆ export2antabFrqs_missedSetup()

◆ export2antabFrqs_nativeSetup()

◆ export2antabFrqs_skededSetup()

◆ export2antabFrqs_vgosSetup()

◆ export2antCalFrqs_nativeSetup()

◆ export2antCalFrqs_skededSetup()

◆ export2antCalFrqs_vgosSetup()

◆ export2antCalPcal_vgosSetup()

◆ getBackEndInfo()

const QString& SgStnLogReadings::getBackEndInfo ( ) const
inline

Definition at line 1211 of file SgStnLogCollector.h.

References backEndInfo_.

Referenced by SgStnLogCollector::readLogFile().

◆ getCableCalAmbig()

double SgStnLogReadings::getCableCalAmbig ( ) const
inline

Definition at line 1194 of file SgStnLogCollector.h.

References cableCalAmbig_.

◆ getCableSign()

int SgStnLogReadings::getCableSign ( ) const
inline

Definition at line 1195 of file SgStnLogCollector.h.

References cableSign_.

Referenced by SgStnLogCollector::readLogFile().

◆ getChannelSetup()

const SgChannelSetup& SgStnLogReadings::getChannelSetup ( ) const
inline

Definition at line 1214 of file SgStnLogCollector.h.

References channelSetup_.

◆ getExperimentName()

const QString& SgStnLogReadings::getExperimentName ( ) const
inline

Definition at line 1209 of file SgStnLogCollector.h.

References experimentName_.

Referenced by SgStnLogCollector::readLogFile().

◆ getFsVersionLabel()

const QString& SgStnLogReadings::getFsVersionLabel ( ) const
inline

Definition at line 1210 of file SgStnLogCollector.h.

References fsVersionLabel_.

◆ getItType()

InputType SgStnLogReadings::getItType ( ) const
inline

Definition at line 1193 of file SgStnLogCollector.h.

References itType_.

◆ getRecorderInfo()

const QString& SgStnLogReadings::getRecorderInfo ( ) const
inline

Definition at line 1212 of file SgStnLogCollector.h.

References recorderInfo_.

Referenced by SgStnLogCollector::readLogFile().

◆ interpolateMeteoParameters()

◆ lookupScanName()

◆ meteoPars()

QList<SgMeteoReading*>& SgStnLogReadings::meteoPars ( )
inline

◆ onSourceRecords()

QList<SgOnSourceRecord*>& SgStnLogReadings::onSourceRecords ( )
inline

◆ pcals()

QList<SgPcalReading*>& SgStnLogReadings::pcals ( )
inline

Definition at line 1203 of file SgStnLogCollector.h.

References pcals_.

Referenced by SgStnLogCollector::readLogFile().

◆ propagateData()

bool SgStnLogReadings::propagateData ( SgVlbiStationInfo stn)

Definition at line 1660 of file SgStnLogCollector.cpp.

References SgAttribute::addAttr(), areCableCalsPresent_, areMeteosPresent_, areTsysesPresent_, SgVlbiStationInfo::Attr_CABLE_CAL_MODIFIED, SgVlbiStationInfo::Attr_HAS_CABLE_CAL, SgVlbiStationInfo::Attr_HAS_METEO, SgVlbiStationInfo::Attr_HAS_TSYS, SgVlbiStationInfo::Attr_METEO_MODIFIED, SgVlbiStationInfo::Attr_TSYS_MODIFIED, SgVlbiStationInfo::auxObservationByScanId(), SgOnSourceRecord::cableCals(), cableCals_, cableSign_, channelSetup_, className(), SgLogger::ERR, SgChannelSetup::getHwType(), SgObjectInfo::getKey(), SgVlbiAuxObservation::getOwner(), SgVlbiObservation::getScanName(), SgOnSourceRecord::getSourceName(), SgTsysReading::getTsys(), SgChannelSetup::HT_VGOS, SgChannelSetup::ifFreqBySensorKey(), SgChannelSetup::ifIdBySensorKey(), SgChannelSetup::ifPolarizationById(), SgChannelSetup::ifSideBandById(), SgLogger::INF, interpolateMeteoParameters(), SgLogger::IO, SgAttribute::isAttr(), IT_CDMS, IT_FSLG, IT_PCMT, itType_, logger, SgVlbiObservation::observableByKey(), recordByScan_, SgVlbiAuxObservation::setCableCalibration(), SgVlbiStationInfo::setCableCalMultiplierDBCal(), SgVector::setElement(), SgVlbiAuxObservation::setTsyses(), SgVlbiObservation::src(), stationName_, SgOnSourceRecord::tSyses(), SgVlbiStationInfo::tsysIfFreqs(), SgVlbiStationInfo::tsysIfIds(), SgVlbiStationInfo::tsysIfPolarizations(), SgVlbiStationInfo::tsysIfSideBands(), tZero, SgLogger::write(), and SgLogger::WRN.

Referenced by SgVlbaLogCollector::propagateData(), and SgStnLogCollector::propagateData().

◆ removeCableCalReadings()

void SgStnLogReadings::removeCableCalReadings ( )
private

Definition at line 882 of file SgStnLogCollector.cpp.

References areCableCalsPresent_, cableCals_, and onSourceRecords_.

Referenced by verifyReadings().

◆ removeMeteoReadings()

void SgStnLogReadings::removeMeteoReadings ( )
private

Definition at line 898 of file SgStnLogCollector.cpp.

References areMeteosPresent_, meteoPars_, and onSourceRecords_.

Referenced by verifyReadings().

◆ removeTsysReadings()

void SgStnLogReadings::removeTsysReadings ( )
private

Definition at line 912 of file SgStnLogCollector.cpp.

References areTsysesPresent_, and tSyses_.

Referenced by verifyReadings().

◆ sefds()

QList<SgSefdReading*>& SgStnLogReadings::sefds ( )
inline

Definition at line 1204 of file SgStnLogCollector.h.

References sefds_.

Referenced by SgStnLogCollector::readLogFile().

◆ setBackEndInfo()

void SgStnLogReadings::setBackEndInfo ( const QString &  info)
inline

Definition at line 1223 of file SgStnLogCollector.h.

References backEndInfo_.

Referenced by SgStnLogCollector::readLogFile().

◆ setCableCalAmbig()

void SgStnLogReadings::setCableCalAmbig ( double  a)
inline

Definition at line 1218 of file SgStnLogCollector.h.

References cableCalAmbig_.

Referenced by SgVlbaLogCollector::readLogFile().

◆ setCableSign()

void SgStnLogReadings::setCableSign ( int  n)
inline

Definition at line 1219 of file SgStnLogCollector.h.

References cableSign_.

Referenced by SgStnLogCollector::readLogFile(), and SgVlbaLogCollector::readLogFile().

◆ setExperimentName()

void SgStnLogReadings::setExperimentName ( const QString &  name)
inline

Definition at line 1221 of file SgStnLogCollector.h.

References experimentName_.

Referenced by SgStnLogCollector::readLogFile().

◆ setFsVersionLabel()

void SgStnLogReadings::setFsVersionLabel ( const QString &  ver)
inline

Definition at line 1222 of file SgStnLogCollector.h.

References fsVersionLabel_.

Referenced by SgStnLogCollector::readLogFile().

◆ setItType()

void SgStnLogReadings::setItType ( InputType  t)
inline

Definition at line 1217 of file SgStnLogCollector.h.

References itType_.

Referenced by SgStnLogCollector::readLogFile().

◆ setRecorderInfo()

void SgStnLogReadings::setRecorderInfo ( const QString &  info)
inline

Definition at line 1224 of file SgStnLogCollector.h.

References recorderInfo_.

Referenced by SgStnLogCollector::readLogFile().

◆ setStationName()

void SgStnLogReadings::setStationName ( const QString &  name)
inline

Definition at line 1220 of file SgStnLogCollector.h.

References stationName_.

Referenced by SgStnLogCollector::propagateData().

◆ trakls()

QList<SgTraklReading*>& SgStnLogReadings::trakls ( )
inline

Definition at line 1202 of file SgStnLogCollector.h.

References trakls_.

Referenced by SgStnLogCollector::readLogFile().

◆ tSyses()

QList<SgTsysReading*>& SgStnLogReadings::tSyses ( )
inline

Definition at line 1200 of file SgStnLogCollector.h.

References tSyses_.

Referenced by SgStnLogCollector::readLogFile().

◆ verifyReadings()

Member Data Documentation

◆ areCableCalsPresent_

bool SgStnLogReadings::areCableCalsPresent_
private

◆ areMeteosPresent_

bool SgStnLogReadings::areMeteosPresent_
private

◆ areTsysesPresent_

bool SgStnLogReadings::areTsysesPresent_
private

◆ backEndInfo_

QString SgStnLogReadings::backEndInfo_
private

Definition at line 1265 of file SgStnLogCollector.h.

Referenced by createAntCalFile(), getBackEndInfo(), and setBackEndInfo().

◆ cableCalAmbig_

double SgStnLogReadings::cableCalAmbig_
private

◆ cableCals_

◆ cableLongs_

QList<SgCableCalReading*> SgStnLogReadings::cableLongs_
private

◆ cableSign_

int SgStnLogReadings::cableSign_
private

◆ channelSetup_

◆ dbbc3Tps_

QList<SgDbbc3TpReading*> SgStnLogReadings::dbbc3Tps_
private

Definition at line 1272 of file SgStnLogCollector.h.

Referenced by ~SgStnLogReadings(), createAntCalFile(), and dbbc3Tps().

◆ dFiller_

const double SgStnLogReadings::dFiller_ = -99.9
staticprivate

◆ dot2xpses_

QList<SgDot2xpsReading*> SgStnLogReadings::dot2xpses_
private

Definition at line 1276 of file SgStnLogCollector.h.

Referenced by ~SgStnLogReadings(), createAntCalFile(), and dot2xpses().

◆ experimentName_

QString SgStnLogReadings::experimentName_
private

Definition at line 1263 of file SgStnLogCollector.h.

Referenced by createAntCalFile(), getExperimentName(), and setExperimentName().

◆ fsVersionLabel_

QString SgStnLogReadings::fsVersionLabel_
private

Definition at line 1264 of file SgStnLogCollector.h.

Referenced by createAntCalFile(), getFsVersionLabel(), and setFsVersionLabel().

◆ itType_

InputType SgStnLogReadings::itType_
private

◆ meteoPars_

◆ nFiller_

const int SgStnLogReadings::nFiller_ = -999
staticprivate

Definition at line 1278 of file SgStnLogCollector.h.

Referenced by createAntCalFile(), and export2antCalPcal_vgosSetup().

◆ onSourceRecords_

◆ pcals_

QList<SgPcalReading*> SgStnLogReadings::pcals_
private

Definition at line 1274 of file SgStnLogCollector.h.

Referenced by ~SgStnLogReadings(), createAntCalFile(), and pcals().

◆ recordByScan_

QMap<QString, SgOnSourceRecord*> SgStnLogReadings::recordByScan_
private

Definition at line 1283 of file SgStnLogCollector.h.

Referenced by ~SgStnLogReadings(), propagateData(), and verifyReadings().

◆ recorderInfo_

QString SgStnLogReadings::recorderInfo_
private

Definition at line 1266 of file SgStnLogCollector.h.

Referenced by createAntCalFile(), getRecorderInfo(), and setRecorderInfo().

◆ sefds_

QList<SgSefdReading*> SgStnLogReadings::sefds_
private

Definition at line 1275 of file SgStnLogCollector.h.

Referenced by ~SgStnLogReadings(), createAntCalFile(), and sefds().

◆ sFiller_

const QString SgStnLogReadings::sFiller_
staticprivate

◆ stationName_

◆ trakls_

QList<SgTraklReading*> SgStnLogReadings::trakls_
private

Definition at line 1273 of file SgStnLogCollector.h.

Referenced by ~SgStnLogReadings(), and trakls().

◆ tSensorsPrinted2AntCal_

bool SgStnLogReadings::tSensorsPrinted2AntCal_
private

◆ tSyses_

QList<SgTsysReading*> SgStnLogReadings::tSyses_
private

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