- Timestamp:
- 03/31/06 17:07:18 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r941 r959 90 90 historyTable_ = STHistory(*this); 91 91 table_.rwKeywordSet().defineTable("HISTORY", historyTable_.table()); 92 setupFitTable();93 fitTable_ = table_.keywordSet().asTable("FITS");92 fitTable_ = STFit(*this); 93 table_.rwKeywordSet().defineTable("FIT", fitTable_.table()); 94 94 originalTable_ = table_; 95 95 attach(); … … 237 237 } 238 238 239 void Scantable::setupFitTable()240 {241 TableDesc td("", "1", TableDesc::Scratch);242 td.addColumn(ScalarColumnDesc<uInt>("FIT_ID"));243 td.addColumn(ArrayColumnDesc<String>("FUNCTIONS"));244 td.addColumn(ArrayColumnDesc<Int>("COMPONENTS"));245 td.addColumn(ArrayColumnDesc<Double>("PARAMETERS"));246 td.addColumn(ArrayColumnDesc<Bool>("PARMASK"));247 td.addColumn(ArrayColumnDesc<String>("FRAMEINFO"));248 SetupNewTable aNewTab("fits", td, Table::Scratch);249 Table aTable(aNewTab, Table::Memory);250 table_.rwKeywordSet().defineTable("FITS", aTable);251 }252 239 253 240 void Scantable::attach() … … 621 608 uInt row = uInt(whichrow); 622 609 stpol->setSpectra(getPolMatrix(row)); 623 Float frot,fang,ftan; 624 focusTable_.getEntry(frot, fang, ftan, mfocusidCol_(row)); 625 stpol->setPhaseCorrections(frot, fang, ftan); 610 Float fang,fhand,parang; 611 fang = focusTable_.getTotalFeedAngle(mfocusidCol_(row)); 612 fhand = focusTable_.getFeedHand(mfocusidCol_(row)); 613 parang = paraCol_(row); 614 /// @todo re-enable this 615 // disable total feed angle to support paralactifying Caswell style 616 stpol->setPhaseCorrections(parang, -parang, fhand); 626 617 arr = stpol->getSpectrum(requestedpol, ptype); 627 618 delete stpol;
Note:
See TracChangeset
for help on using the changeset viewer.