Changeset 1015


Ignore:
Timestamp:
04/18/06 15:48:53 (18 years ago)
Author:
mar637
Message:

Fix for Ticket #20 - rotateLinPolPhase wasn't workin properly. Have add deafult values to STPol constructor, also had to set the focusTable entries in STMath::applyToPol.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STMath.cpp

    r1010 r1015  
    153153      Vector<uChar> flag;
    154154      Double inter,time;
    155       cout << rec.asuInt("POLNO") << endl;
    156155      for (uInt k = 0; k < subt.nrow(); ++k ) {
    157156        flagCol.get(k, flag);
     
    931930  cols[3] = String("CYCLENO");
    932931  TableIterator iter(tout, cols);
    933   STPol* stpol = NULL;
    934   stpol =STPol::getPolClass(out->factories_, out->getPolType() );
     932  STPol* stpol = STPol::getPolClass(out->factories_, out->getPolType() );
    935933  while (!iter.pastEnd()) {
    936934    Table t = iter.table();
    937935    ArrayColumn<Float> speccol(t, "SPECTRA");
     936    ScalarColumn<uInt> focidcol(t, "FOCUS_ID");
     937    ScalarColumn<Float> parancol(t, "PARANGLE");
    938938    Matrix<Float> pols = speccol.getColumn();
    939939    try {
    940940      stpol->setSpectra(pols);
     941      Float fang,fhand,parang;
     942      fang = in->focusTable_.getTotalFeedAngle(focidcol(0));
     943      fhand = in->focusTable_.getFeedHand(focidcol(0));
     944      parang = parancol(0);
     945      /// @todo re-enable this
     946      // disable total feed angle to support paralactifying Caswell style
     947      stpol->setPhaseCorrections(parang, -parang, fhand);
    941948      (stpol->*fptr)(phase);
    942949      speccol.putColumn(stpol->getSpectra());
     950      Matrix<Float> tmp = stpol->getSpectra();
    943951    } catch (AipsError& e) {
    944952      delete stpol;stpol=0;
  • trunk/src/STPol.h

    r957 r1015  
    3535
    3636  typedef  void (STPol::*polOperation)( casa::Float phase );
    37   STPol() {}
     37  STPol(): totalfeed_(0.0),parangle_(0.0),feedhand_(1.0) {}
    3838  virtual ~STPol() {}
    3939
Note: See TracChangeset for help on using the changeset viewer.