Changeset 905 for trunk/src/Scantable.cpp
- Timestamp:
- 03/17/06 17:00:16 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r902 r905 298 298 table_.rwKeywordSet().define("FluxUnit", sdh.fluxunit); 299 299 table_.rwKeywordSet().define("Epoch", sdh.epoch); 300 table_.rwKeywordSet().define("POLTYPE", sdh.poltype); 300 301 } 301 302 … … 319 320 table_.keywordSet().get("FluxUnit", sdh.fluxunit); 320 321 table_.keywordSet().get("Epoch", sdh.epoch); 322 table_.keywordSet().get("POLTYPE", sdh.poltype); 321 323 return sdh; 322 324 } … … 596 598 const std::string& poltype ) const 597 599 { 600 String ptype = poltype; 601 if (poltype == "" ) ptype = getPolType(); 598 602 if ( whichrow < 0 || whichrow >= nrow() ) 599 603 throw(AipsError("Illegal row number.")); … … 602 606 uInt requestedpol = polCol_(whichrow); 603 607 String basetype = getPolType(); 604 if ( String(poltype) == basetype) {608 if ( ptype == basetype ) { 605 609 specCol_.get(whichrow, arr); 606 610 } else { … … 613 617 focusTable_.getEntry(frot, fang, ftan, mfocusidCol_(row)); 614 618 stpol->setPhaseCorrections(frot, fang, ftan); 615 arr = stpol->getSpectrum(requestedpol, p oltype);619 arr = stpol->getSpectrum(requestedpol, ptype); 616 620 delete stpol; 617 621 } catch (AipsError& e) {
Note: See TracChangeset
for help on using the changeset viewer.