Changeset 1439
- Timestamp:
- 08/28/08 14:00:03 (16 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STHeader.cpp
r901 r1439 53 53 conforms = (this->antennaname == other.antennaname 54 54 && this->equinox == other.equinox 55 && this->obstype == other.obstype56 55 && this->fluxunit == other.fluxunit 57 56 ); 58 57 return conforms; 58 } 59 60 String STHeader::diff( const STHeader& other ) 61 { 62 ostringstream thediff; 63 if ( this->equinox != other.equinox ) { 64 thediff << "Equinox: " << this->equinox << " <-> " 65 << other.equinox << endl; 66 } 67 if ( this->obstype != other.obstype ) { 68 thediff << "Obs. Type: " << this->obstype << " <-> " 69 << other.obstype << endl; 70 } 71 if ( this->fluxunit != other.fluxunit ) { 72 thediff << "Flux unit: " << this->fluxunit << " <-> " 73 << other.fluxunit << endl; 74 } 75 return String(thediff); 59 76 } 60 77 -
trunk/src/STHeader.h
r1030 r1439 27 27 //# AUSTRALIA 28 28 //# 29 //# $Id :$29 //# $Id$ 30 30 //#--------------------------------------------------------------------------- 31 31 #ifndef STHEADER_H … … 50 50 51 51 bool conformant(const STHeader& other); 52 casa::String diff( const STHeader& other ); 53 52 54 53 55 casa::Int nchan; -
trunk/src/STMath.cpp
r1416 r1439 1538 1538 while ( it != in.end() ){ 1539 1539 if ( ! (*it)->conformant(*out) ) { 1540 // log message: "ignoring scantable i, as it isn't 1541 // conformant with the other(s)" 1540 // non conformant. 1542 1541 pushLog(String("Warning: Can't merge scantables as header info differs.")); 1543 ++it;1544 continue;1545 1542 } 1546 1543 out->appendToHistoryTable((*it)->history());
Note:
See TracChangeset
for help on using the changeset viewer.