- Timestamp:
- 09/20/11 11:32:55 (13 years ago)
- Location:
- branches/casa-prerelease/pre-asap
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/casa-prerelease/pre-asap
-
branches/casa-prerelease/pre-asap/external-alma
- Property svn:mergeinfo changed
/trunk/external-alma merged: 2305
- Property svn:mergeinfo changed
-
branches/casa-prerelease/pre-asap/external-alma/asdm2ASAP/ASDMReader.cc
r2302 r2306 866 866 srcdir[1] = limitedAngle( srcdirA[1].get() ) ; 867 867 if ( srow->isDirectionCodeExists() ) { 868 DirectionReferenceCode dircode = srow->getDirectionCode() ;868 DirectionReferenceCodeMod::DirectionReferenceCode dircode = srow->getDirectionCode() ; 869 869 //logsink_->postLocally( LogMessage("dircode="+CDirectionReferenceCode::toString(dircode),LogOrigin(className_,funcName,WHERE)) ) ; 870 if ( dircode != J2000 ) {870 if ( dircode != DirectionReferenceCodeMod::J2000 ) { 871 871 // if not J2000, need direction conversion 872 872 String ref( CDirectionReferenceCode::toString( dircode ) ) ; … … 920 920 int srctype = SrcType::NOTYPE ; 921 921 ScanRow *scanrow = asdm_->getScan().getRowByKey( execBlockTag_, (int)scan ) ; 922 ScanIntent scanIntent = scanrow->getScanIntent()[0] ;922 ScanIntentMod::ScanIntent scanIntent = scanrow->getScanIntent()[0] ; 923 923 SubscanRow *subrow = asdm_->getSubscan().getRowByKey( execBlockTag_, (int)scan, (int)subscan ) ; 924 SubscanIntent subIntent = subrow->getSubscanIntent() ;925 SwitchingMode swmode =NO_SWITCHING ;924 SubscanIntentMod::SubscanIntent subIntent = subrow->getSubscanIntent() ; 925 SwitchingModeMod::SwitchingMode swmode = SwitchingModeMod::NO_SWITCHING ; 926 926 if ( subrow->isSubscanModeExists() ) 927 927 swmode = subrow->getSubscanMode() ; 928 if ( scanIntent == OBSERVE_TARGET ) {928 if ( scanIntent == ScanIntentMod::OBSERVE_TARGET ) { 929 929 // on sky scan 930 if ( swmode == NO_SWITCHING || swmode ==POSITION_SWITCHING ) {930 if ( swmode == SwitchingModeMod::NO_SWITCHING || swmode == SwitchingModeMod::POSITION_SWITCHING ) { 931 931 // position switching 932 932 // tentatively set NO_SWITCHING = POSITION_SWITCHING 933 if ( subIntent == ON_SOURCE ) {933 if ( subIntent == SubscanIntentMod::ON_SOURCE ) { 934 934 srctype = SrcType::PSON ; 935 935 } 936 else if ( subIntent == OFF_SOURCE ) {936 else if ( subIntent == SubscanIntentMod::OFF_SOURCE ) { 937 937 srctype = SrcType::PSOFF ; 938 938 } 939 939 } 940 else if ( swmode == FREQUENCY_SWITCHING ) {940 else if ( swmode == SwitchingModeMod::FREQUENCY_SWITCHING ) { 941 941 // frequency switching 942 if ( subIntent == ON_SOURCE ) {942 if ( subIntent == SubscanIntentMod::ON_SOURCE ) { 943 943 srctype = SrcType::FSON ; 944 944 } 945 else if ( subIntent == OFF_SOURCE ) {945 else if ( subIntent == SubscanIntentMod::OFF_SOURCE ) { 946 946 srctype = SrcType::FSOFF ; 947 947 } 948 948 } 949 else if ( swmode == NUTATOR_SWITCHING ) {949 else if ( swmode == SwitchingModeMod::NUTATOR_SWITCHING ) { 950 950 // nutator switching 951 if ( subIntent == ON_SOURCE ) {951 if ( subIntent == SubscanIntentMod::ON_SOURCE ) { 952 952 srctype = SrcType::PSON ; 953 953 } 954 else if ( subIntent == OFF_SOURCE ) {954 else if ( subIntent == SubscanIntentMod::OFF_SOURCE ) { 955 955 srctype = SrcType::PSOFF ; 956 956 } … … 958 958 else { 959 959 // other switching mode 960 if ( subIntent == ON_SOURCE ) {960 if ( subIntent == SubscanIntentMod::ON_SOURCE ) { 961 961 srctype = SrcType::SIG ; 962 962 } 963 else if ( subIntent == OFF_SOURCE ) {963 else if ( subIntent == SubscanIntentMod::OFF_SOURCE ) { 964 964 srctype = SrcType::REF ; 965 965 } 966 966 } 967 967 } 968 else if ( scanIntent == CALIBRATE_ATMOSPHERE ) {969 if ( swmode == NO_SWITCHING || swmode ==POSITION_SWITCHING ) {968 else if ( scanIntent == ScanIntentMod::CALIBRATE_ATMOSPHERE ) { 969 if ( swmode == SwitchingModeMod::NO_SWITCHING || swmode == SwitchingModeMod::POSITION_SWITCHING ) { 970 970 // position switching 971 971 // tentatively set NO_SWITCHING = POSITION_SWITCHING 972 if ( subIntent == ON_SOURCE ) {972 if ( subIntent == SubscanIntentMod::ON_SOURCE ) { 973 973 srctype = SrcType::PONCAL ; 974 974 } 975 else if ( subIntent == OFF_SOURCE ) {975 else if ( subIntent == SubscanIntentMod::OFF_SOURCE ) { 976 976 srctype = SrcType::POFFCAL ; 977 977 } 978 978 } 979 else if ( swmode == FREQUENCY_SWITCHING ) {979 else if ( swmode == SwitchingModeMod::FREQUENCY_SWITCHING ) { 980 980 // frequency switching 981 if ( subIntent == ON_SOURCE ) {981 if ( subIntent == SubscanIntentMod::ON_SOURCE ) { 982 982 srctype = SrcType::FONCAL ; 983 983 } 984 else if ( subIntent == OFF_SOURCE ) {984 else if ( subIntent == SubscanIntentMod::OFF_SOURCE ) { 985 985 srctype = SrcType::FOFFCAL ; 986 986 } 987 987 } 988 else if ( swmode == NUTATOR_SWITCHING ) {988 else if ( swmode == SwitchingModeMod::NUTATOR_SWITCHING ) { 989 989 // nutator switching 990 if ( subIntent == ON_SOURCE ) {990 if ( subIntent == SubscanIntentMod::ON_SOURCE ) { 991 991 srctype = SrcType::PONCAL ; 992 992 } 993 else if ( subIntent == OFF_SOURCE ) {993 else if ( subIntent == SubscanIntentMod::OFF_SOURCE ) { 994 994 srctype = SrcType::POFFCAL ; 995 995 } … … 997 997 else { 998 998 // other switching mode 999 if ( subIntent == ON_SOURCE ) {999 if ( subIntent == SubscanIntentMod::ON_SOURCE ) { 1000 1000 srctype = SrcType::CAL ; 1001 1001 } 1002 else if ( subIntent == OFF_SOURCE ) {1002 else if ( subIntent == SubscanIntentMod::OFF_SOURCE ) { 1003 1003 srctype = SrcType::CAL ; 1004 1004 } … … 1007 1007 else { 1008 1008 // off sky (e.g. calibrator device) scan 1009 if ( subIntent == ON_SOURCE ) {1009 if ( subIntent == SubscanIntentMod::ON_SOURCE ) { 1010 1010 srctype = SrcType::SIG ; 1011 1011 } 1012 else if ( subIntent == OFF_SOURCE ) {1012 else if ( subIntent == SubscanIntentMod::OFF_SOURCE ) { 1013 1013 srctype = SrcType::REF ; 1014 1014 } 1015 else if ( subIntent == HOT ) {1015 else if ( subIntent == SubscanIntentMod::HOT ) { 1016 1016 srctype = SrcType::HOT ; 1017 1017 } 1018 else if ( subIntent == AMBIENT ) {1018 else if ( subIntent == SubscanIntentMod::AMBIENT ) { 1019 1019 srctype = SrcType::SKY ; 1020 1020 } … … 1239 1239 //|| atmrow->getReceiverBand() != rb 1240 1240 //|| atmrow->getBasebandName() != bbname 1241 || atmrow->getCalDataUsingCalDataId()->getCalType() != C AL_ATMOSPHERE )1241 || atmrow->getCalDataUsingCalDataId()->getCalType() != CalTypeMod::CAL_ATMOSPHERE ) 1242 1242 continue ; 1243 1243 else { … … 1342 1342 vector<StationRow *> srows = stab.get() ; 1343 1343 for ( unsigned int irow = 0 ; irow < srows.size() ; irow++ ) { 1344 StationType stype = srows[irow]->getType() ;1344 StationTypeMod::StationType stype = srows[irow]->getType() ; 1345 1345 Tag stag = srows[irow]->getStationId() ; 1346 if ( stype == ANTENNA_PAD )1346 if ( stype == StationTypeMod::ANTENNA_PAD ) 1347 1347 antennaPad_.push_back( stag ) ; 1348 else if ( stype == WEATHER_STATION )1348 else if ( stype == StationTypeMod::WEATHER_STATION ) 1349 1349 weatherStation_.push_back( stag ) ; 1350 1350 } … … 1724 1724 SpectralWindowTable &spwtab = asdm_->getSpectralWindow() ; 1725 1725 vector<SpectralWindowRow *> rows = spwtab.get() ; 1726 vector<FrequencyReferenceCode > measFreqRef( rows.size() ) ;1726 vector<FrequencyReferenceCodeMod::FrequencyReferenceCode> measFreqRef( rows.size() ) ; 1727 1727 int nref = 0 ; 1728 1728 for ( unsigned int irow = 0 ; irow < rows.size() ; irow++ ) {
Note:
See TracChangeset
for help on using the changeset viewer.