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>
73 Q_PROPERTY(QString
key
75 Q_PROPERTY(QString
name
83 Q_PROPERTY(QDateTime
tFirst
85 Q_PROPERTY(QDateTime
tLast
93 Q_PROPERTY(
double wrms
95 Q_PROPERTY(
double chi2
215 Q_PROPERTY(QString
sId
532 bool estK=
false,
bool estB=
false,
bool estR=
false)
538 inline void setK_i(
int i,
double d) {
if (0<=i && i<
src()->sModel().size())
src()->
sModel()[i].setK(d);};
539 inline void setB_i(
int i,
double d) {
if (0<=i && i<
src()->sModel().size())
src()->
sModel()[i].setB(d);};
540 inline void setX_i(
int i,
double d) {
if (0<=i && i<
src()->sModel().size())
src()->
sModel()[i].setX(d);};
541 inline void setY_i(
int i,
double d) {
if (0<=i && i<
src()->sModel().size())
src()->
sModel()[i].setY(d);};
583 Q_PROPERTY(QString
name
621 Q_PROPERTY(QDateTime
tStart
623 Q_PROPERTY(QDateTime
tFinis
625 Q_PROPERTY(QDateTime
tMean
772 double threshold,
double upperLimit)
797 QMap<QString, NsScrPrx4Station*>
799 QMap<QString, NsScrPrx4Baseline*>
801 QMap<QString, NsScrPrx4Source*>
850 inline QScriptValue toScriptValue4Band(QScriptEngine *eng,
NsScrPrx4Band*
const &in)
852 return eng->newQObject(in);
855 inline void fromScriptValue4Band(
const QScriptValue &obj,
NsScrPrx4Band* &out)
857 out = qobject_cast<NsScrPrx4Band*>(obj.toQObject());
863 inline QScriptValue toScriptValue4Stn(QScriptEngine *eng,
NsScrPrx4Station*
const &in)
865 return eng->newQObject(in);
868 inline void fromScriptValue4Stn(
const QScriptValue &obj,
NsScrPrx4Station* &out)
870 out = qobject_cast<NsScrPrx4Station*>(obj.toQObject());
876 inline QScriptValue toScriptValue4Bln(QScriptEngine *eng,
NsScrPrx4Baseline*
const &in)
878 return eng->newQObject(in);
881 inline void fromScriptValue4Bln(
const QScriptValue &obj,
NsScrPrx4Baseline* &out)
883 out = qobject_cast<NsScrPrx4Baseline*>(obj.toQObject());
890 inline QScriptValue toScriptValue4Src(QScriptEngine *eng,
NsScrPrx4Source*
const &in)
892 return eng->newQObject(in);
895 inline void fromScriptValue4Src(
const QScriptValue &obj,
NsScrPrx4Source* &out)
897 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
int getInputFileVersion() const
const QList< NsScrPrx4Station * > stations
double getRefFreq() const
SgVlbiBaselineInfo * bln()
const SgVlbiBaselineInfo * bln() const
bool getEstimateClocks() const
void setEstimateClocks(bool is)
NsScrPrx4Baseline(SgVlbiBaselineInfo &bln, QObject *parent=0)
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
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
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 checkClockBreaks(int bandIdx)
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)
double getLongitude() const
const SgVlbiStationInfo * stn() const
int getClocksModelOrder() const
void setEstimateTroposphere(bool is)
const QList< NsScrPrx4VlbiAuxObservation * > & getAuxObs() const
NsScrPrx4Station(SgVlbiStationInfo &stn, QObject *parent=0)
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 getRreferenceClocks() 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;
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
bool writeUserData2File(const QString &fileName)
QMap< QString, SgVlbiBand * > & bandByKey()
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 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)
void checkBandForClockBreaks(int, bool)
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_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;
double getCableCalMultiplierDBCal() const
void setClocksModelOrder(int n)
int getClocksModelOrder() const
const char * getSid() const