Changeset 959


Ignore:
Timestamp:
03/31/06 17:07:18 (18 years ago)
Author:
mar637
Message:

c++ side of Ticket #7; update as requested in Ticket #8 and last revision

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r941 r959  
    9090  historyTable_ = STHistory(*this);
    9191  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());
    9494  originalTable_ = table_;
    9595  attach();
     
    237237}
    238238
    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 }
    252239
    253240void Scantable::attach()
     
    621608      uInt row = uInt(whichrow);
    622609      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);
    626617      arr = stpol->getSpectrum(requestedpol, ptype);
    627618      delete stpol;
Note: See TracChangeset for help on using the changeset viewer.