- Timestamp:
- 03/02/11 16:09:10 (14 years ago)
- Location:
- trunk/src
- Files:
-
- 2 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 ; -
trunk/src/MSWriter.cpp
r2021 r2022 503 503 fillSysCal() ; 504 504 505 // ASDM tables 506 const TableRecord &stKeys = table_->table().keywordSet() ; 507 TableRecord &msKeys = mstable_->rwKeywordSet() ; 508 uInt nfields = stKeys.nfields() ; 509 for ( uInt ifield = 0 ; ifield < nfields ; ifield++ ) { 510 String kname = stKeys.name( ifield ) ; 511 if ( kname.find( "ASDM" ) != String::npos ) { 512 String asdmpath = stKeys.asString( ifield ) ; 513 os_ << "found ASDM table: " << asdmpath << LogIO::POST ; 514 if ( Table::isReadable( asdmpath ) ) { 515 Table newAsdmTab( asdmpath, Table::Old ) ; 516 newAsdmTab.copy( filename_+"/"+kname, Table::New ) ; 517 os_ << "add subtable: " << kname << LogIO::POST ; 518 msKeys.defineTable( kname, Table( filename_+"/"+kname, Table::Old ) ) ; 519 } 520 } 521 } 522 505 523 // replace POINTING table with original one if exists 506 524 if ( ptTabName_ != "" ) {
Note:
See TracChangeset
for help on using the changeset viewer.