Changeset 845 for trunk/src/Scantable.cpp
- Timestamp:
- 02/23/06 11:25:32 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r837 r845 244 244 } 245 245 246 void Scantable:: putSDHeader(const SDHeader& sdh)246 void Scantable::setHeader(const SDHeader& sdh) 247 247 { 248 248 table_.rwKeywordSet().define("nIF", sdh.nif); … … 264 264 } 265 265 266 SDHeader Scantable::get SDHeader() const266 SDHeader Scantable::getHeader() const 267 267 { 268 268 SDHeader sdh; … … 286 286 } 287 287 288 bool Scantable::conformant( const Scantable& other ) 289 { 290 return this->getHeader().conformant(other.getHeader()); 291 } 292 293 288 294 int Scantable::rowToScanIndex( int therow ) 289 295 { … … 433 439 } 434 440 435 int Scantable::n row( int scanno ) const441 int Scantable::ncycle( int scanno ) const 436 442 { 437 443 if ( scanno < 0 ) { … … 457 463 458 464 459 int Scantable::nchan( int scanno, int ifno ) const 460 { 461 if ( scanno < 0 || ifno < 0 ) { 465 int Scantable::nrow( int scanno ) const 466 { 467 return int(table_.nrow()); 468 } 469 470 int Scantable::nchan( int ifno ) const 471 { 472 if ( ifno < 0 ) { 462 473 Int n; 463 474 table_.keywordSet().get("nChan",n); 464 475 return int(n); 465 476 } else { 466 // take the first POLNO,IFNO,CYCLENO as nbeam shouldn't vary with these467 Table tab = table_(table_.col("SCANNO") == scanno477 // take the first SCANNO,POLNO,BEAMNO,CYCLENO as nbeam shouldn't vary with these 478 Table tab = table_(table_.col("SCANNO") == 0 468 479 && table_.col("IFNO") == ifno 469 480 && table_.col("BEAMNO") == 0
Note: See TracChangeset
for help on using the changeset viewer.