Go to the documentation of this file.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 CalFocusRow_CLASS
00035 #define CalFocusRow_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::CalFocusRowIDL;
00047 #endif
00048
00049
00050
00051
00052
00053
00054 #include <ArrayTime.h>
00055 using asdm::ArrayTime;
00056
00057 #include <Temperature.h>
00058 using asdm::Temperature;
00059
00060 #include <Angle.h>
00061 using asdm::Angle;
00062
00063 #include <Tag.h>
00064 using asdm::Tag;
00065
00066 #include <Length.h>
00067 using asdm::Length;
00068
00069 #include <Frequency.h>
00070 using asdm::Frequency;
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082 #include "CReceiverBand.h"
00083 using namespace ReceiverBandMod;
00084
00085
00086
00087
00088
00089 #include "CAtmPhaseCorrection.h"
00090 using namespace AtmPhaseCorrectionMod;
00091
00092
00093
00094 #include "CFocusMethod.h"
00095 using namespace FocusMethodMod;
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105 #include "CPolarizationType.h"
00106 using namespace PolarizationTypeMod;
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141 #include <ConversionException.h>
00142 #include <NoSuchRow.h>
00143 #include <IllegalAccessException.h>
00144
00145
00146
00147
00148
00149
00150 namespace asdm {
00151
00152
00153
00154
00155
00156 class CalDataRow;
00157
00158
00159 class CalReductionRow;
00160
00161
00162 class CalFocusRow;
00163 typedef void (CalFocusRow::*CalFocusAttributeFromBin) (EndianISStream& eiss);
00164
00171 class CalFocusRow {
00172 friend class asdm::CalFocusTable;
00173
00174 public:
00175
00176 virtual ~CalFocusRow();
00177
00181 CalFocusTable &getTable() const;
00182
00187 bool isAdded() const;
00188
00190
00192
00193
00194
00195
00196
00197
00198
00199
00204 ArrayTime getStartValidTime() const;
00205
00206
00207
00208
00216 void setStartValidTime (ArrayTime startValidTime);
00217
00218
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00234 ArrayTime getEndValidTime() const;
00235
00236
00237
00238
00246 void setEndValidTime (ArrayTime endValidTime);
00247
00248
00249
00250
00251
00252
00253
00254
00255
00256
00257
00258
00259
00264 string getAntennaName() const;
00265
00266
00267
00268
00278 void setAntennaName (string antennaName);
00279
00280
00281
00282
00283
00284
00285
00286
00287
00288
00289
00290
00291
00296 ReceiverBandMod::ReceiverBand getReceiverBand() const;
00297
00298
00299
00300
00310 void setReceiverBand (ReceiverBandMod::ReceiverBand receiverBand);
00311
00312
00313
00314
00315
00316
00317
00318
00319
00320
00321
00322
00323
00328 Temperature getAmbientTemperature() const;
00329
00330
00331
00332
00340 void setAmbientTemperature (Temperature ambientTemperature);
00341
00342
00343
00344
00345
00346
00347
00348
00349
00350
00351
00352
00353
00358 AtmPhaseCorrectionMod::AtmPhaseCorrection getAtmPhaseCorrection() const;
00359
00360
00361
00362
00370 void setAtmPhaseCorrection (AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection);
00371
00372
00373
00374
00375
00376
00377
00378
00379
00380
00381
00382
00383
00388 FocusMethodMod::FocusMethod getFocusMethod() const;
00389
00390
00391
00392
00400 void setFocusMethod (FocusMethodMod::FocusMethod focusMethod);
00401
00402
00403
00404
00405
00406
00407
00408
00409
00410
00411
00412
00413
00418 vector<Frequency > getFrequencyRange() const;
00419
00420
00421
00422
00430 void setFrequencyRange (vector<Frequency > frequencyRange);
00431
00432
00433
00434
00435
00436
00437
00438
00439
00440
00441
00442
00443
00448 vector<Angle > getPointingDirection() const;
00449
00450
00451
00452
00460 void setPointingDirection (vector<Angle > pointingDirection);
00461
00462
00463
00464
00465
00466
00467
00468
00469
00470
00471
00472
00473
00478 int getNumReceptor() const;
00479
00480
00481
00482
00490 void setNumReceptor (int numReceptor);
00491
00492
00493
00494
00495
00496
00497
00498
00499
00500
00501
00502
00503
00508 vector<PolarizationTypeMod::PolarizationType > getPolarizationTypes() const;
00509
00510
00511
00512
00520 void setPolarizationTypes (vector<PolarizationTypeMod::PolarizationType > polarizationTypes);
00521
00522
00523
00524
00525
00526
00527
00528
00529
00530
00531
00532
00533
00538 vector<bool > getWereFixed() const;
00539
00540
00541
00542
00550 void setWereFixed (vector<bool > wereFixed);
00551
00552
00553
00554
00555
00556
00557
00558
00559
00560
00561
00562
00563
00568 vector<vector<Length > > getOffset() const;
00569
00570
00571
00572
00580 void setOffset (vector<vector<Length > > offset);
00581
00582
00583
00584
00585
00586
00587
00588
00589
00590
00591
00592
00593
00598 vector<vector<Length > > getOffsetError() const;
00599
00600
00601
00602
00610 void setOffsetError (vector<vector<Length > > offsetError);
00611
00612
00613
00614
00615
00616
00617
00618
00619
00620
00621
00622
00623
00628 vector<vector<bool > > getOffsetWasTied() const;
00629
00630
00631
00632
00640 void setOffsetWasTied (vector<vector<bool > > offsetWasTied);
00641
00642
00643
00644
00645
00646
00647
00648
00649
00650
00651
00652
00653
00658 vector<vector<double > > getReducedChiSquared() const;
00659
00660
00661
00662
00670 void setReducedChiSquared (vector<vector<double > > reducedChiSquared);
00671
00672
00673
00674
00675
00676
00677
00678
00679
00680
00681
00686 bool isPolarizationsAveragedExists() const;
00687
00688
00689
00695 bool getPolarizationsAveraged() const;
00696
00697
00698
00699
00706 void setPolarizationsAveraged (bool polarizationsAveraged);
00707
00708
00709
00710
00714 void clearPolarizationsAveraged ();
00715
00716
00717
00718
00719
00720
00721
00722
00727 bool isFocusCurveWidthExists() const;
00728
00729
00730
00736 vector<vector<Length > > getFocusCurveWidth() const;
00737
00738
00739
00740
00747 void setFocusCurveWidth (vector<vector<Length > > focusCurveWidth);
00748
00749
00750
00751
00755 void clearFocusCurveWidth ();
00756
00757
00758
00759
00760
00761
00762
00763
00768 bool isFocusCurveWidthErrorExists() const;
00769
00770
00771
00777 vector<vector<Length > > getFocusCurveWidthError() const;
00778
00779
00780
00781
00788 void setFocusCurveWidthError (vector<vector<Length > > focusCurveWidthError);
00789
00790
00791
00792
00796 void clearFocusCurveWidthError ();
00797
00798
00799
00800
00801
00802
00803
00804
00809 bool isFocusCurveWasFixedExists() const;
00810
00811
00812
00818 vector<bool > getFocusCurveWasFixed() const;
00819
00820
00821
00822
00829 void setFocusCurveWasFixed (vector<bool > focusCurveWasFixed);
00830
00831
00832
00833
00837 void clearFocusCurveWasFixed ();
00838
00839
00840
00841
00842
00843
00844
00845
00850 bool isOffIntensityExists() const;
00851
00852
00853
00859 vector<Temperature > getOffIntensity() const;
00860
00861
00862
00863
00870 void setOffIntensity (vector<Temperature > offIntensity);
00871
00872
00873
00874
00878 void clearOffIntensity ();
00879
00880
00881
00882
00883
00884
00885
00886
00891 bool isOffIntensityErrorExists() const;
00892
00893
00894
00900 vector<Temperature > getOffIntensityError() const;
00901
00902
00903
00904
00911 void setOffIntensityError (vector<Temperature > offIntensityError);
00912
00913
00914
00915
00919 void clearOffIntensityError ();
00920
00921
00922
00923
00924
00925
00926
00927
00932 bool isOffIntensityWasFixedExists() const;
00933
00934
00935
00941 bool getOffIntensityWasFixed() const;
00942
00943
00944
00945
00952 void setOffIntensityWasFixed (bool offIntensityWasFixed);
00953
00954
00955
00956
00960 void clearOffIntensityWasFixed ();
00961
00962
00963
00964
00965
00966
00967
00968
00973 bool isPeakIntensityExists() const;
00974
00975
00976
00982 vector<Temperature > getPeakIntensity() const;
00983
00984
00985
00986
00993 void setPeakIntensity (vector<Temperature > peakIntensity);
00994
00995
00996
00997
01001 void clearPeakIntensity ();
01002
01003
01004
01005
01006
01007
01008
01009
01014 bool isPeakIntensityErrorExists() const;
01015
01016
01017
01023 vector<Temperature > getPeakIntensityError() const;
01024
01025
01026
01027
01034 void setPeakIntensityError (vector<Temperature > peakIntensityError);
01035
01036
01037
01038
01042 void clearPeakIntensityError ();
01043
01044
01045
01046
01047
01048
01049
01050
01055 bool isPeakIntensityWasFixedExists() const;
01056
01057
01058
01064 bool getPeakIntensityWasFixed() const;
01065
01066
01067
01068
01075 void setPeakIntensityWasFixed (bool peakIntensityWasFixed);
01076
01077
01078
01079
01083 void clearPeakIntensityWasFixed ();
01084
01085
01086
01088
01090
01091
01092
01093
01094
01095
01096
01097
01102 Tag getCalDataId() const;
01103
01104
01105
01106
01116 void setCalDataId (Tag calDataId);
01117
01118
01119
01120
01121
01122
01123
01124
01125
01126
01127
01128
01129
01134 Tag getCalReductionId() const;
01135
01136
01137
01138
01148 void setCalReductionId (Tag calReductionId);
01149
01150
01151
01152
01153
01154
01156
01158
01159
01160
01161
01162
01169 CalDataRow* getCalDataUsingCalDataId();
01170
01171
01172
01173
01174
01175
01176
01177
01184 CalReductionRow* getCalReductionUsingCalReductionId();
01185
01186
01187
01188
01189
01190
01191
01233 bool compareNoAutoInc(string antennaName, ReceiverBandMod::ReceiverBand receiverBand, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, Temperature ambientTemperature, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, FocusMethodMod::FocusMethod focusMethod, vector<Frequency > frequencyRange, vector<Angle > pointingDirection, int numReceptor, vector<PolarizationTypeMod::PolarizationType > polarizationTypes, vector<bool > wereFixed, vector<vector<Length > > offset, vector<vector<Length > > offsetError, vector<vector<bool > > offsetWasTied, vector<vector<double > > reducedChiSquared);
01234
01235
01236
01237
01271 bool compareRequiredValue(ArrayTime startValidTime, ArrayTime endValidTime, Temperature ambientTemperature, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, FocusMethodMod::FocusMethod focusMethod, vector<Frequency > frequencyRange, vector<Angle > pointingDirection, int numReceptor, vector<PolarizationTypeMod::PolarizationType > polarizationTypes, vector<bool > wereFixed, vector<vector<Length > > offset, vector<vector<Length > > offsetError, vector<vector<bool > > offsetWasTied, vector<vector<double > > reducedChiSquared);
01272
01273
01282 bool equalByRequiredValue(CalFocusRow* x) ;
01283
01284 #ifndef WITHOUT_ACS
01285
01289 CalFocusRowIDL *toIDL() const;
01290 #endif
01291
01292 #ifndef WITHOUT_ACS
01293
01298 void setFromIDL (CalFocusRowIDL x) ;
01299 #endif
01300
01305 string toXML() const;
01306
01313 void setFromXML (string rowDoc) ;
01314
01315 private:
01319 CalFocusTable &table;
01323 bool hasBeenAdded;
01324
01325
01326 void isAdded(bool added);
01327
01328
01337 CalFocusRow (CalFocusTable &table);
01338
01356 CalFocusRow (CalFocusTable &table, CalFocusRow &row);
01357
01359
01361
01362
01363
01364
01365
01366
01367 ArrayTime startValidTime;
01368
01369
01370
01371
01372
01373
01374
01375
01376
01377
01378 ArrayTime endValidTime;
01379
01380
01381
01382
01383
01384
01385
01386
01387
01388
01389 string antennaName;
01390
01391
01392
01393
01394
01395
01396
01397
01398
01399
01400 ReceiverBandMod::ReceiverBand receiverBand;
01401
01402
01403
01404
01405
01406
01407
01408
01409
01410
01411 Temperature ambientTemperature;
01412
01413
01414
01415
01416
01417
01418
01419
01420
01421
01422 AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection;
01423
01424
01425
01426
01427
01428
01429
01430
01431
01432
01433 FocusMethodMod::FocusMethod focusMethod;
01434
01435
01436
01437
01438
01439
01440
01441
01442
01443
01444 vector<Frequency > frequencyRange;
01445
01446
01447
01448
01449
01450
01451
01452
01453
01454
01455 vector<Angle > pointingDirection;
01456
01457
01458
01459
01460
01461
01462
01463
01464
01465
01466 int numReceptor;
01467
01468
01469
01470
01471
01472
01473
01474
01475
01476
01477 vector<PolarizationTypeMod::PolarizationType > polarizationTypes;
01478
01479
01480
01481
01482
01483
01484
01485
01486
01487
01488 vector<bool > wereFixed;
01489
01490
01491
01492
01493
01494
01495
01496
01497
01498
01499 vector<vector<Length > > offset;
01500
01501
01502
01503
01504
01505
01506
01507
01508
01509
01510 vector<vector<Length > > offsetError;
01511
01512
01513
01514
01515
01516
01517
01518
01519
01520
01521 vector<vector<bool > > offsetWasTied;
01522
01523
01524
01525
01526
01527
01528
01529
01530
01531
01532 vector<vector<double > > reducedChiSquared;
01533
01534
01535
01536
01537
01538
01539
01540
01541
01542 bool polarizationsAveragedExists;
01543
01544
01545 bool polarizationsAveraged;
01546
01547
01548
01549
01550
01551
01552
01553
01554
01555 bool focusCurveWidthExists;
01556
01557
01558 vector<vector<Length > > focusCurveWidth;
01559
01560
01561
01562
01563
01564
01565
01566
01567
01568 bool focusCurveWidthErrorExists;
01569
01570
01571 vector<vector<Length > > focusCurveWidthError;
01572
01573
01574
01575
01576
01577
01578
01579
01580
01581 bool focusCurveWasFixedExists;
01582
01583
01584 vector<bool > focusCurveWasFixed;
01585
01586
01587
01588
01589
01590
01591
01592
01593
01594 bool offIntensityExists;
01595
01596
01597 vector<Temperature > offIntensity;
01598
01599
01600
01601
01602
01603
01604
01605
01606
01607 bool offIntensityErrorExists;
01608
01609
01610 vector<Temperature > offIntensityError;
01611
01612
01613
01614
01615
01616
01617
01618
01619
01620 bool offIntensityWasFixedExists;
01621
01622
01623 bool offIntensityWasFixed;
01624
01625
01626
01627
01628
01629
01630
01631
01632
01633 bool peakIntensityExists;
01634
01635
01636 vector<Temperature > peakIntensity;
01637
01638
01639
01640
01641
01642
01643
01644
01645
01646 bool peakIntensityErrorExists;
01647
01648
01649 vector<Temperature > peakIntensityError;
01650
01651
01652
01653
01654
01655
01656
01657
01658
01659 bool peakIntensityWasFixedExists;
01660
01661
01662 bool peakIntensityWasFixed;
01663
01664
01665
01666
01667
01669
01671
01672
01673
01674
01675
01676
01677 Tag calDataId;
01678
01679
01680
01681
01682
01683
01684
01685
01686
01687
01688 Tag calReductionId;
01689
01690
01691
01692
01693
01695
01697
01698
01699
01700
01701
01702
01703
01704
01705
01706
01707
01708
01709
01710
01711
01712
01714
01716 map<string, CalFocusAttributeFromBin> fromBinMethods;
01717 void antennaNameFromBin( EndianISStream& eiss);
01718 void receiverBandFromBin( EndianISStream& eiss);
01719 void calDataIdFromBin( EndianISStream& eiss);
01720 void calReductionIdFromBin( EndianISStream& eiss);
01721 void startValidTimeFromBin( EndianISStream& eiss);
01722 void endValidTimeFromBin( EndianISStream& eiss);
01723 void ambientTemperatureFromBin( EndianISStream& eiss);
01724 void atmPhaseCorrectionFromBin( EndianISStream& eiss);
01725 void focusMethodFromBin( EndianISStream& eiss);
01726 void frequencyRangeFromBin( EndianISStream& eiss);
01727 void pointingDirectionFromBin( EndianISStream& eiss);
01728 void numReceptorFromBin( EndianISStream& eiss);
01729 void polarizationTypesFromBin( EndianISStream& eiss);
01730 void wereFixedFromBin( EndianISStream& eiss);
01731 void offsetFromBin( EndianISStream& eiss);
01732 void offsetErrorFromBin( EndianISStream& eiss);
01733 void offsetWasTiedFromBin( EndianISStream& eiss);
01734 void reducedChiSquaredFromBin( EndianISStream& eiss);
01735
01736 void polarizationsAveragedFromBin( EndianISStream& eiss);
01737 void focusCurveWidthFromBin( EndianISStream& eiss);
01738 void focusCurveWidthErrorFromBin( EndianISStream& eiss);
01739 void focusCurveWasFixedFromBin( EndianISStream& eiss);
01740 void offIntensityFromBin( EndianISStream& eiss);
01741 void offIntensityErrorFromBin( EndianISStream& eiss);
01742 void offIntensityWasFixedFromBin( EndianISStream& eiss);
01743 void peakIntensityFromBin( EndianISStream& eiss);
01744 void peakIntensityErrorFromBin( EndianISStream& eiss);
01745 void peakIntensityWasFixedFromBin( EndianISStream& eiss);
01746
01747
01752 void toBin(EndianOSStream& eoss);
01753
01761 static CalFocusRow* fromBin(EndianISStream& eiss, CalFocusTable& table, const vector<string>& attributesSeq);
01762
01763 };
01764
01765 }
01766
01767 #endif