Changeset 2022 for trunk/src/MSWriter.cpp
- Timestamp:
- 03/02/11 16:09:10 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.