22 #ifndef NS_SCR_PRX_4_SESSION_H
23 #define NS_SCR_PRX_4_SESSION_H
31 #include <QtCore/QtGlobal>
34 #include <QtCore/QDateTime>
35 #include <QtCore/QMap>
36 #include <QtCore/QList>
37 #include <QtCore/QObject>
38 #include <QtCore/QString>
39 #include <QtCore/QStringList>
43 # include <QtScript/QScriptEngine>
44 # include <QtScript/QScriptValue>
75 Q_PROPERTY(QString
key
77 Q_PROPERTY(QString
name
85 Q_PROPERTY(QDateTime
tFirst
87 Q_PROPERTY(QDateTime
tLast
95 Q_PROPERTY(
double wrms
97 Q_PROPERTY(
double chi2
101 Q_PROPERTY(
double dof
217 Q_PROPERTY(QString
sId
441 bool estK=
false,
bool estB=
false,
bool estR=
false)
446 inline void setK_i(
int i,
double d) {
if (0<=i && i<
src()->sModel().size())
src()->
sModel()[i].setK(d);};
447 inline void setB_i(
int i,
double d) {
if (0<=i && i<
src()->sModel().size())
src()->
sModel()[i].setB(d);};
448 inline void setX_i(
int i,
double d) {
if (0<=i && i<
src()->sModel().size())
src()->
sModel()[i].setX(d);};
449 inline void setY_i(
int i,
double d) {
if (0<=i && i<
src()->sModel().size())
src()->
sModel()[i].setY(d);};
491 Q_PROPERTY(QString
name
529 Q_PROPERTY(QDateTime
tStart
531 Q_PROPERTY(QDateTime
tFinis
533 Q_PROPERTY(QDateTime
tMean
684 double threshold,
double upperLimit)
709 QMap<QString, NsScrPrx4Station*>
711 QMap<QString, NsScrPrx4Baseline*>
713 QMap<QString, NsScrPrx4Source*>
762 inline QScriptValue toScriptValue4Band(QScriptEngine *eng,
NsScrPrx4Band*
const &in)
764 return eng->newQObject(in);
767 inline void fromScriptValue4Band(
const QScriptValue &obj,
NsScrPrx4Band* &out)
769 out = qobject_cast<NsScrPrx4Band*>(obj.toQObject());
775 inline QScriptValue toScriptValue4Stn(QScriptEngine *eng,
NsScrPrx4Station*
const &in)
777 return eng->newQObject(in);
780 inline void fromScriptValue4Stn(
const QScriptValue &obj,
NsScrPrx4Station* &out)
782 out = qobject_cast<NsScrPrx4Station*>(obj.toQObject());
788 inline QScriptValue toScriptValue4Bln(QScriptEngine *eng,
NsScrPrx4Baseline*
const &in)
790 return eng->newQObject(in);
793 inline void fromScriptValue4Bln(
const QScriptValue &obj,
NsScrPrx4Baseline* &out)
795 out = qobject_cast<NsScrPrx4Baseline*>(obj.toQObject());
802 inline QScriptValue toScriptValue4Src(QScriptEngine *eng,
NsScrPrx4Source*
const &in)
804 return eng->newQObject(in);
807 inline void fromScriptValue4Src(
const QScriptValue &obj,
NsScrPrx4Source* &out)
809 out = qobject_cast<NsScrPrx4Source*>(obj.toQObject());
const QList< NsScrPrx4Station * > & getStations()
int getNumOfChannels() const
const QList< NsScrPrx4Baseline * > & getBaselines()
QDateTime getTCreation() const
const QString & getCorrelatorType() const
const SgVlbiBand * bnd() const
NsScrPrx4Band(SgVlbiBand &band, QObject *parent=0)
QList< NsScrPrx4Baseline * > prxBaselines_
QList< NsScrPrx4Source * > prxSources_
double getGroupDelaysAmbigSpacing() const
const QList< NsScrPrx4Source * > & getSources()
const QList< NsScrPrx4Source * > sources
QList< NsScrPrx4Station * > prxStations_
const QList< NsScrPrx4Baseline * > baselines
double groupDelaysAmbigSpacing
void postLoad(NsScrPrx4Session *)
int getInputFileVersion() const
const QList< NsScrPrx4Station * > stations
double getRefFreq() const
SgVlbiBaselineInfo * bln()
const SgVlbiBaselineInfo * bln() const
bool getEstimateClocks() const
void setEstimateClocks(bool is)
double getClockOffset() const
const QList< NsScrPrx4VlbiObservation * > observations
NsScrPrx4Baseline(SgVlbiBaselineInfo &bln, QObject *parent=0)
QList< NsScrPrx4VlbiObservation * > prxObservations_
double getClockOffsetStdDev() const
const QList< NsScrPrx4VlbiObservation * > & getObservations()
const QString & getKey() const
double getReducedChi2() const
QDateTime getTlast() const
int getNumProcessed() const
NsScrPrx4Object(SgObjectInfo &obj, QObject *parent=0)
double getSigma2add() const
QDateTime getTfirst() const
void setSigma2add(double d)
void scanAmbiguityMultipliers(int bandIdx)
bool hasReferenceClocksStation()
bool hasReferenceCoordinatesStation
QMap< QString, NsScrPrx4Baseline * > baselinesByKey_
QDateTime getTFinis() const
int checkClockBreaks(int bandIdx)
const QString & getCorrelatorType() const
const QList< NsScrPrx4Source * > & getSources()
const QList< NsScrPrx4Station * > stations
QList< NsScrPrx4Baseline * > prxBaselines_
NsScrPrx4Session(SgVlbiSession &session, QObject *parent=0)
QDateTime getTStart() const
NsScrPrx4Baseline * lookUpBaseline(const QString &key)
QDateTime getTMean() const
NsScrPrx4Station * lookUpStation(const QString &key)
QDateTime getTCreation() const
int getNumOfBaselines() const
const QString & getNetworkID() const
QMap< QString, NsScrPrx4Station * > stationsByKey_
const QString & getSubmitterName() const
void pickupReferenceClocksStation()
void dispatchChangeOfZenithParameterModel(SgParameterCfg::PMode)
const QString & getNetworkSuffix() const
const QList< NsScrPrx4Band * > & getBands()
void pickupReferenceCoordinatesStation()
void checkUseOfManualPhaseCals()
const QList< NsScrPrx4VlbiObservation * > & getObservations()
bool writeUserData2File(const QString &fileName)
const QString & getSessionCode() const
int restoreOutliers(int bandIdx)
void calcIono(bool sbdOnly=false)
QList< NsScrPrx4VlbiObservation * > prxObservations_
void dispatchChangeOfClocksParameterModel(SgParameterCfg::PMode)
const QString & getOfficialName() const
QDateTime getLastProcessed() const
const QString & getCorrelatorName() const
const QList< NsScrPrx4Source * > sources
double dUt1Correction() const
const QString & getName() const
QMap< QString, NsScrPrx4Source * > sourcesByKey_
const QList< NsScrPrx4Baseline * > & getBaselines()
void eliminateLargeOutliers(int bandIdx, int maxNumOfPasses, double wrmsRatio)
double dUt1StdDev() const
bool hasReferenceClocksStation
void setReferenceClocksStation(const QString &stnKey)
const QString & getUserFlag() const
QList< NsScrPrx4Source * > prxSources_
int getPrimaryBandIdx() const
int eliminateOutliers(int bandIdx)
void eliminateOutliersSimpleMode(int bandIdx, int maxNumOfPasses, double threshold, double upperLimit)
const QString & getSchedulerName() const
const QList< NsScrPrx4Band * > bands
int getNumOfObservations() const
int getNumOfBands() const
const QList< NsScrPrx4Station * > & getStations()
int getNumOfStations() const
const QString & getPiAgencyName() const
void suppressNotSoGoodObs()
bool hasReferenceCoordinatesStation()
NsScrPrx4Source * lookUpSource(const QString &key)
const QList< NsScrPrx4VlbiObservation * > observations
const QString & getDescription() const
const QList< NsScrPrx4Baseline * > baselines
int getNumOfSources() const
void setNumOfClockPolynoms4Stations(int n)
QList< NsScrPrx4Band * > prxBands_
QList< NsScrPrx4Station * > prxStations_
double getB_iSig(int i) const
void setEstimateCoords(bool is)
bool getEstimateCoords() const
int numOfSrcStructPoints()
void setK_i(int i, double d)
void setX_i(int i, double d)
void setB_i(int i, double d)
void setApplySsm(bool is)
bool getConstrainCoords() const
double getK_i(int i) const
NsScrPrx4Source(SgVlbiSourceInfo &src, QObject *parent=0)
void setY_i(int i, double d)
void clearSrcStructPoints()
void setConstrainCoords(bool is)
void setTestAttr(bool is)
const QString & getAprioriComments() const
double getK_iSig(int i) const
double getY_iSig(int i) const
double getY_i(int i) const
double getB_i(int i) const
double getX_iSig(int i) const
double getX_i(int i) const
void addSrcStructPoint(double k, double b, double x, double y, bool estK=false, bool estB=false, bool estR=false)
void setBadMeteo(bool is)
double getLongitude() const
bool getHasCccCdms() const
const SgVlbiStationInfo * stn() const
int getClocksModelOrder() const
NsScrPrx4TaskConfig::CableCalSource getFlybyCableCalSource() const
void setEstimateTroposphere(bool is)
NsScrPrx4TaskConfig::CableCalSource flybyCableCalSource
const QList< NsScrPrx4VlbiAuxObservation * > & getAuxObs() const
NsScrPrx4Station(SgVlbiStationInfo &stn, QObject *parent=0)
bool getHasCccFslg() const
SgVlbiStationInfo * stn()
void setClocksModelOrder(int m)
bool getEstimateTroposphere() const
void setRreferenceClocks(bool is)
void setConstrainCoords(bool is)
bool getEstimateCoords() const
const QList< NsScrPrx4VlbiAuxObservation * > auxObs
bool getConstrainCoords() const
void setEstimateCoords(bool is)
double getLatitude() const
int getNumOfScans() const
QList< NsScrPrx4VlbiAuxObservation * > prxAuxes_
bool setFlybyCableCalSource(NsScrPrx4TaskConfig::CableCalSource s)
bool getRreferenceClocks() const
bool getHasCccPcmt() const
void setUseCableCal(bool is)
bool getUseCableCal() const
double getCableCalSign() const
bool isAttr(uint a) const
void assignAttr(uint a, bool b)
QDateTime toQDateTime() const
double getSigma2add(DataType) const
const QString & getKey() const
int numProcessed(DataType dType) const
const SgMJD & tFirst(DataType) const
int numUsable(DataType) const
void setSigma2add(DataType dType, double d)
const SgMJD & tLast(DataType) const
double dof(DataType) const
double chi2(DataType) const
double wrms(DataType) const
int numTotal(DataType dType) const
double reducedChi2(DataType) const
int getInputFileVersion() const
const SgMJD & getTCreation() const
int getMaxNumOfChannels() const
double typicalGrdAmbigSpacing() const
double getFrequency() const
const QString & getCorrelatorType() const
@ Attr_ESTIMATE_CLOCKS
estimate baseline clocks;
@ Attr_NOT_VALID
omit the baseline;
double dClockSigma() const
const QString & getCorrelatorType() const
const SgMJD & getTFinis() const
const QString & getName() const
const QString & getNetworkID() const
const SgMJD & getTStart() const
const QString & getSubmitterName() const
const QString & getUserFlag() const
const QString & getCorrelatorName() const
const QString & getOfficialName() const
const QString & getPiAgencyName() const
const QString & getDescription() const
const QString & getSchedulerName() const
const QString & getNetworkSuffix() const
const QString & getSessionCode() const
const SgMJD & getTMean() const
const SgMJD & getTCreation() const
int checkBandForClockBreaks(int, bool)
bool writeUserData2File(const QString &fileName)
QMap< QString, SgVlbiBand * > & bandByKey()
const SgMJD & getLastProcessed() const
void calculateIonoCorrections(const SgTaskConfig *)
int restoreOutliers(int bandIdx)
QMap< QString, SgVlbiStationInfo * > & stationsByName()
QList< SgVlbiObservation * > & observations()
void process(bool haveProcessAllBands, bool interactWithGui)
bool hasReferenceCoordinatesStation()
void pickupReferenceCoordinatesStation()
void scanBaselines4GrDelayAmbiguities(int bandIdx)
void checkUseOfManualPhaseCals()
void resetAllEditings(bool have2resetConfig)
void eliminateLargeOutliers(int bandIdx, int maxNumOfPasses, double wrmsRatio)
SgTaskConfig * getConfig()
void zerofyIonoCorrections(const SgTaskConfig *)
double dUt1StdDev() const
QMap< QString, SgVlbiSourceInfo * > & sourcesByName()
int eliminateOutliers(int bandIdx)
void eliminateOutliersSimpleMode(int bandIdx, int maxNumOfPasses, double threshold, double=0.0)
void pickupReferenceClocksStation()
int suppressNotSoGoodObs()
void setReferenceClocksStation(const QString &stnKey)
void setClockModelOrder4Stations(int)
QMap< QString, SgVlbiBaselineInfo * > & baselinesByName()
double dUt1Correction() const
bool hasReferenceClocksStation()
const QString & getAprioriComments() const
void addSrcStructPoint(double k, double b, double x, double y, bool estK=false, bool estB=false, bool estR=false)
QList< StructModelMp > & sModel()
void clearSrcStructPoints()
@ Attr_TEST
for testing purposes.
@ Attr_APPLY_SSM
apply the source structure model;
@ Attr_CONSTRAIN_COO
constrain source position in estimation;
@ Attr_NOT_VALID
omit the source;
@ Attr_ESTIMATE_COO
estimate source position;
double getLatitude() const
QMap< QString, SgVlbiAuxObservation * > * auxObservationByScanId()
double getLongitude() const
@ Attr_NOT_VALID
omit the station;
@ Attr_HAS_CCC_FSLG
a station has cable calibrations from FS log file
@ Attr_CONSTRAIN_COO
constrain station position in estimation;
@ Attr_REFERENCE_CLOCKS
the clocks are the reference ones;
@ Attr_DONT_ESTIMATE_TRPS
do not estimate parameters of troposphere delay for station;
@ Attr_IGNORE_CABLE_CAL
do not apply cable calibration;
@ Attr_ESTIMATE_COO
estimate station position;
@ Attr_BAD_METEO
indicates that the station has bad meteo parameters;
@ Attr_HAS_CCC_CDMS
a station has cable calibrations from CDMS
@ Attr_HAS_CCC_PCMT
a station has cable calibrations from PCMT
double getCableCalMultiplierDBCal() const
SgTaskConfig::CableCalSource getFlybyCableCalSource() const
void setClocksModelOrder(int n)
int getClocksModelOrder() const
const char * getSid() const