00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
#ifndef CalPhaseRow_CLASS
00035
#define CalPhaseRow_CLASS
00036
00037
#include <vector>
00038
#include <string>
00039
#include <set>
00040
using std::vector;
00041
using std::string;
00042
using std::set;
00043
00044
#ifndef WITHOUT_ACS
00045
#include <asdmIDLC.h>
00046
using asdmIDL::CalPhaseRowIDL;
00047
#endif
00048
00049
#include <Angle.h>
00050
#include <AngularRate.h>
00051
#include <ArrayTime.h>
00052
#include <ArrayTimeInterval.h>
00053
#include <Complex.h>
00054
#include <Entity.h>
00055
#include <EntityId.h>
00056
#include <EntityRef.h>
00057
#include <Flux.h>
00058
#include <Frequency.h>
00059
#include <Humidity.h>
00060
#include <Interval.h>
00061
#include <Length.h>
00062
#include <Pressure.h>
00063
#include <Speed.h>
00064
#include <Tag.h>
00065
#include <Temperature.h>
00066
#include <ConversionException.h>
00067
#include <NoSuchRow.h>
00068
#include <IllegalAccessException.h>
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
#include "CBasebandName.h"
00080
using namespace BasebandNameMod;
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
#include "CReceiverBand.h"
00091
using namespace ReceiverBandMod;
00092
00093
00094
00095
00096
00097
#include "CAtmPhaseCorrection.h"
00098
using namespace AtmPhaseCorrectionMod;
00099
00100
00101
00102
#include "CPolarizationType.h"
00103
using namespace PolarizationTypeMod;
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
using asdm::Angle;
00131
using asdm::AngularRate;
00132
using asdm::ArrayTime;
00133
using asdm::Complex;
00134
using asdm::Entity;
00135
using asdm::EntityId;
00136
using asdm::EntityRef;
00137
using asdm::Flux;
00138
using asdm::Frequency;
00139
using asdm::Humidity;
00140
using asdm::Interval;
00141
using asdm::Length;
00142
using asdm::Pressure;
00143
using asdm::Speed;
00144
using asdm::Tag;
00145
using asdm::Temperature;
00146
using asdm::ConversionException;
00147
using asdm::NoSuchRow;
00148
using asdm::IllegalAccessException;
00149
00150
00151
00152
00153
00154
namespace asdm {
00155
00156
00157
00158
00159
00160
class CalDataRow;
00161
00162
00163
class CalReductionRow;
00164
00165
00172 class CalPhaseRow {
00173
friend class asdm::CalPhaseTable;
00174
00175
public:
00176
00177
virtual ~
CalPhaseRow();
00178
00182
CalPhaseTable &
getTable()
const;
00183
00184
#ifndef WITHOUT_ACS
00185
00189 CalPhaseRowIDL *
toIDL()
const;
00190
#endif
00191
00192
#ifndef WITHOUT_ACS
00193
00197
void setFromIDL (CalPhaseRowIDL x)
throw(
ConversionException);
00198
#endif
00199
00204 string
toXML()
const;
00205
00211
void setFromXML (string rowDoc)
throw(
ConversionException);
00212
00214
00216
00217
00218
00219
00220
00221
00222
00223
00228 BasebandNameMod::BasebandName
getBasebandName()
const;
00229
00230
00231
00232
00242
void setBasebandName (BasebandNameMod::BasebandName basebandName);
00243
00244
00245
00246
00247
00248
00249
00250
00251
00252
00253
00254
00255
00260
int getNumBaseline()
const;
00261
00262
00263
00264
00272
void setNumBaseline (
int numBaseline);
00273
00274
00275
00276
00277
00278
00279
00280
00281
00282
00283
00284
00285
00290
int getNumAPC()
const;
00291
00292
00293
00294
00302
void setNumAPC (
int numAPC);
00303
00304
00305
00306
00307
00308
00309
00310
00311
00312
00313
00314
00315
00320
int getNumReceptor()
const;
00321
00322
00323
00324
00332
void setNumReceptor (
int numReceptor);
00333
00334
00335
00336
00337
00338
00339
00340
00341
00342
00343
00344
00345
00350 ReceiverBandMod::ReceiverBand
getReceiverBand()
const;
00351
00352
00353
00354
00362
void setReceiverBand (ReceiverBandMod::ReceiverBand receiverBand);
00363
00364
00365
00366
00367
00368
00369
00370
00371
00372
00373
00374
00375
00380 vector<vector<string > >
getAntennaNames()
const;
00381
00382
00383
00384
00392
void setAntennaNames (vector<vector<string > > antennaNames);
00393
00394
00395
00396
00397
00398
00399
00400
00401
00402
00403
00404
00405
00410 vector<AtmPhaseCorrectionMod::AtmPhaseCorrection >
getAtmPhaseCorrections()
const;
00411
00412
00413
00414
00422
void setAtmPhaseCorrections (vector<AtmPhaseCorrectionMod::AtmPhaseCorrection > atmPhaseCorrections);
00423
00424
00425
00426
00427
00428
00429
00430
00431
00432
00433
00434
00435
00440 vector<PolarizationTypeMod::PolarizationType >
getPolarizationTypes()
const;
00441
00442
00443
00444
00452
void setPolarizationTypes (vector<PolarizationTypeMod::PolarizationType > polarizationTypes);
00453
00454
00455
00456
00457
00458
00459
00460
00461
00462
00463
00464
00465
00470
ArrayTime getStartValidTime()
const;
00471
00472
00473
00474
00482
void setStartValidTime (
ArrayTime startValidTime);
00483
00484
00485
00486
00487
00488
00489
00490
00491
00492
00493
00494
00495
00500
ArrayTime getEndValidTime()
const;
00501
00502
00503
00504
00512
void setEndValidTime (
ArrayTime endValidTime);
00513
00514
00515
00516
00517
00518
00519
00520
00521
00522
00523
00524
00525
00530 vector<Frequency >
getFrequencyRange()
const;
00531
00532
00533
00534
00542
void setFrequencyRange (vector<Frequency > frequencyRange);
00543
00544
00545
00546
00547
00548
00549
00550
00551
00552
00553
00554
00555
00560 vector<vector<vector<float > > >
getAmpli()
const;
00561
00562
00563
00564
00572
void setAmpli (vector<vector<vector<float > > > ampli);
00573
00574
00575
00576
00577
00578
00579
00580
00581
00582
00583
00584
00585
00590 vector<vector<vector<float > > >
getPhase()
const;
00591
00592
00593
00594
00602
void setPhase (vector<vector<vector<float > > > phase);
00603
00604
00605
00606
00607
00608
00609
00610
00611
00612
00613
00614
00615
00620 vector<vector<vector<Angle > > >
getPhaseRms()
const;
00621
00622
00623
00624
00632
void setPhaseRms (vector<vector<vector<Angle > > > phaseRms);
00633
00634
00635
00636
00637
00638
00639
00640
00641
00642
00643
00644
00645
00650 vector<vector<Angle > >
getStatPhaseRms()
const;
00651
00652
00653
00654
00662
void setStatPhaseRms (vector<vector<Angle > > statPhaseRms);
00663
00664
00665
00666
00667
00668
00669
00670
00671
00672
00673
00678
bool isCorrectionValidityExists()
const;
00679
00680
00681
00687 vector<bool >
getCorrectionValidity()
const throw(
IllegalAccessException);
00688
00689
00690
00691
00698
void setCorrectionValidity (vector<bool > correctionValidity);
00699
00700
00701
00702
00706
void clearCorrectionValidity ();
00707
00708
00709
00710
00711
00712
00713
00714
00715
00716
00721 vector<vector<float > >
getDecorrelationFactor()
const;
00722
00723
00724
00725
00733
void setDecorrelationFactor (vector<vector<float > > decorrelationFactor);
00734
00735
00736
00737
00738
00739
00740
00741
00742
00743
00744
00745
00746
00751 vector<Length >
getBaselineLengths()
const;
00752
00753
00754
00755
00763
void setBaselineLengths (vector<Length > baselineLengths);
00764
00765
00766
00767
00768
00769
00770
00771
00772
00773
00774
00775
00776
00781 vector<Angle >
getDirection()
const;
00782
00783
00784
00785
00793
void setDirection (vector<Angle > direction);
00794
00795
00796
00797
00798
00799
00801
00803
00804
00805
00806
00807
00808
00809
00810
00815
Tag getCalDataId()
const;
00816
00817
00818
00819
00829
void setCalDataId (
Tag calDataId);
00830
00831
00832
00833
00834
00835
00836
00837
00838
00839
00840
00841
00842
00847
Tag getCalReductionId()
const;
00848
00849
00850
00851
00861
void setCalReductionId (
Tag calReductionId);
00862
00863
00864
00865
00866
00867
00869
00871
00872
00873
00874
00875
00882
CalDataRow*
getCalDataUsingCalDataId();
00883
00884
00885
00886
00887
00888
00889
00890
00897
CalReductionRow*
getCalReductionUsingCalReductionId();
00898
00899
00900
00901
00902
00903
00904
00909
bool compareNoAutoInc(
Tag calDataId,
Tag calReductionId, BasebandNameMod::BasebandName basebandName,
int numBaseline,
int numAPC,
int numReceptor, ReceiverBandMod::ReceiverBand receiverBand, vector<vector<string > > antennaNames, vector<AtmPhaseCorrectionMod::AtmPhaseCorrection > atmPhaseCorrections, vector<PolarizationTypeMod::PolarizationType > polarizationTypes,
ArrayTime startValidTime,
ArrayTime endValidTime, vector<Frequency > frequencyRange, vector<vector<vector<float > > > ampli, vector<vector<vector<float > > > phase, vector<vector<vector<Angle > > > phaseRms, vector<vector<Angle > > statPhaseRms, vector<vector<float > > decorrelationFactor, vector<Length > baselineLengths, vector<Angle > direction);
00910
00911
00912
00913
00914
bool compareRequiredValue(
int numBaseline,
int numAPC,
int numReceptor, ReceiverBandMod::ReceiverBand receiverBand, vector<vector<string > > antennaNames, vector<AtmPhaseCorrectionMod::AtmPhaseCorrection > atmPhaseCorrections, vector<PolarizationTypeMod::PolarizationType > polarizationTypes,
ArrayTime startValidTime,
ArrayTime endValidTime, vector<Frequency > frequencyRange, vector<vector<vector<float > > > ampli, vector<vector<vector<float > > > phase, vector<vector<vector<Angle > > > phaseRms, vector<vector<Angle > > statPhaseRms, vector<vector<float > > decorrelationFactor, vector<Length > baselineLengths, vector<Angle > direction);
00915
00916
00925
bool equalByRequiredValue(
CalPhaseRow* x) ;
00926
00927
private:
00931
CalPhaseTable &table;
00935
bool hasBeenAdded;
00936
00937
00938
void isAdded();
00939
00940
00949
CalPhaseRow (
CalPhaseTable &table);
00950
00968
CalPhaseRow (
CalPhaseTable &table,
CalPhaseRow &row);
00969
00971
00973
00974
00975
00976
00977
00978
00979 BasebandNameMod::BasebandName basebandName;
00980
00981
00982
00983
00984
00985
00986
00987
00988
00989
00990
int numBaseline;
00991
00992
00993
00994
00995
00996
00997
00998
00999
01000
01001
int numAPC;
01002
01003
01004
01005
01006
01007
01008
01009
01010
01011
01012
int numReceptor;
01013
01014
01015
01016
01017
01018
01019
01020
01021
01022
01023 ReceiverBandMod::ReceiverBand receiverBand;
01024
01025
01026
01027
01028
01029
01030
01031
01032
01033
01034 vector<vector<string > > antennaNames;
01035
01036
01037
01038
01039
01040
01041
01042
01043
01044
01045 vector<AtmPhaseCorrectionMod::AtmPhaseCorrection > atmPhaseCorrections;
01046
01047
01048
01049
01050
01051
01052
01053
01054
01055
01056 vector<PolarizationTypeMod::PolarizationType > polarizationTypes;
01057
01058
01059
01060
01061
01062
01063
01064
01065
01066
01067
ArrayTime startValidTime;
01068
01069
01070
01071
01072
01073
01074
01075
01076
01077
01078
ArrayTime endValidTime;
01079
01080
01081
01082
01083
01084
01085
01086
01087
01088
01089 vector<Frequency > frequencyRange;
01090
01091
01092
01093
01094
01095
01096
01097
01098
01099
01100 vector<vector<vector<float > > > ampli;
01101
01102
01103
01104
01105
01106
01107
01108
01109
01110
01111 vector<vector<vector<float > > > phase;
01112
01113
01114
01115
01116
01117
01118
01119
01120
01121
01122 vector<vector<vector<Angle > > > phaseRms;
01123
01124
01125
01126
01127
01128
01129
01130
01131
01132
01133 vector<vector<Angle > > statPhaseRms;
01134
01135
01136
01137
01138
01139
01140
01141
01142
01143
bool correctionValidityExists;
01144
01145
01146 vector<bool > correctionValidity;
01147
01148
01149
01150
01151
01152
01153
01154
01155
01156
01157 vector<vector<float > > decorrelationFactor;
01158
01159
01160
01161
01162
01163
01164
01165
01166
01167
01168 vector<Length > baselineLengths;
01169
01170
01171
01172
01173
01174
01175
01176
01177
01178
01179 vector<Angle > direction;
01180
01181
01182
01183
01184
01186
01188
01189
01190
01191
01192
01193
01194
Tag calDataId;
01195
01196
01197
01198
01199
01200
01201
01202
01203
01204
01205
Tag calReductionId;
01206
01207
01208
01209
01210
01212
01214
01215
01216
01217
01218
01219
01220
01221
01222
01223
01224
01225
01226
01227
01228
01229
01230 };
01231
01232 }
01233
01234
#endif