Changeset 2022 for trunk/src/MSFiller.cpp
- Timestamp:
- 03/02/11 16:09:10 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MSFiller.cpp
r2021 r2022 120 120 121 121 os_ << "Parsing MS options" << endl ; 122 rec.print(cout) ;123 122 os_ << " getPt = " << getPt_ << endl ; 124 123 os_ << " antenna = " << antenna_ << endl ; … … 950 949 951 950 // save path to POINTING table 952 //Path datapath(mstable_.tableName()) ; 951 // 2011/3/2 TN 952 // So far, path to original POINTING table is always stored 953 // since sd tasks and regressions don't support getpt control 954 //if ( !getPt_ ) { 953 955 Path datapath( tablename_ ) ; 954 956 String pTabName = datapath.absoluteName() + "/POINTING" ; 955 957 stab.rwKeywordSet().define( "POINTING", pTabName ) ; 958 //} 956 959 957 960 // for GBT 958 if ( antennaName == "GBT") {961 if ( antennaName.matches( "GBT" ) ) { 959 962 String goTabName = datapath.absoluteName() + "/GBT_GO" ; 960 963 stab.rwKeywordSet().define( "GBT_GO", goTabName ) ; 961 964 } 965 966 // for MS created from ASDM 967 //mstable_.keywordSet().print(cout) ; 968 const TableRecord &msKeys = mstable_.keywordSet() ; 969 uInt nfields = msKeys.nfields() ; 970 for ( uInt ifield = 0 ; ifield < nfields ; ifield++ ) { 971 String name = msKeys.name( ifield ) ; 972 //os_ << "name = " << name << LogIO::POST ; 973 if ( name.find( "ASDM" ) != String::npos ) { 974 String asdmpath = msKeys.asTable( ifield ).tableName() ; 975 os_ << "ASDM table: " << asdmpath << LogIO::POST ; 976 stab.rwKeywordSet().define( name, asdmpath ) ; 977 } 978 } 979 962 980 // double endSec = gettimeofday_sec() ; 963 981 // os_ << "end MSFiller::fill() endSec=" << endSec << " (" << endSec-startSec << "sec)" << LogIO::POST ; … … 1416 1434 } 1417 1435 if ( tidx[i] == -1 ) { 1418 Double tsc = scTime[scnrow-1].get( "s" ).getValue() ;1419 Double dt = scInterval[scnrow-1] ;1436 // Double tsc = scTime[scnrow-1].get( "s" ).getValue() ; 1437 // Double dt = scInterval[scnrow-1] ; 1420 1438 // if ( t <= tsc+0.5*dt ) { 1421 1439 // tidx[i] = scnrow-1 ;
Note: See TracChangeset
for help on using the changeset viewer.