Changeset 1586 for trunk/src/STMath.cpp


Ignore:
Timestamp:
06/30/09 15:46:14 (15 years ago)
Author:
Malte Marquarding
Message:

Ticket #165: have removed the hard-coding of parallactifying the data. NOTE THIS breaks the Table structure as I have moved the PARANGLE column from the main table into the FOCUS table. We need to have a new release. Also one needs to explicitly tell the scantable via rc or member function to enable parallactifying

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STMath.cpp

    r1579 r1586  
    15761576          id = out->molecules().addEntry(rf, name, fname);
    15771577          molidcol.put(k, id);
    1578           Float frot,fax,ftan,fhand,fmount,fuser, fxy, fxyp;
    1579           (*it)->focus().getEntry(fax, ftan, frot, fhand,
     1578          Float fpa,frot,fax,ftan,fhand,fmount,fuser, fxy, fxyp;
     1579          (*it)->focus().getEntry(fpa, fax, ftan, frot, fhand,
    15801580                                  fmount,fuser, fxy, fxyp,
    15811581                                  rec.asuInt("FOCUS_ID"));
    1582           id = out->focus().addEntry(fax, ftan, frot, fhand,
     1582          id = out->focus().addEntry(fpa, fax, ftan, frot, fhand,
    15831583                                     fmount,fuser, fxy, fxyp);
    15841584          focusidcol.put(k, id);
     
    16301630    ArrayColumn<Float> speccol(t, "SPECTRA");
    16311631    ScalarColumn<uInt> focidcol(t, "FOCUS_ID");
    1632     ScalarColumn<Float> parancol(t, "PARANGLE");
    16331632    Matrix<Float> pols(speccol.getColumn());
    16341633    try {
    16351634      stpol->setSpectra(pols);
    1636       Float fang,fhand,parang;
    1637       fang = in->focusTable_.getTotalFeedAngle(focidcol(0));
     1635      Float fang,fhand;
     1636      fang = in->focusTable_.getTotalAngle(focidcol(0));
    16381637      fhand = in->focusTable_.getFeedHand(focidcol(0));
    1639       parang = parancol(0);
    1640       /// @todo re-enable this
    1641       // disable total feed angle to support paralactifying Caswell style
    1642       stpol->setPhaseCorrections(parang, -parang, fhand);
     1638      stpol->setPhaseCorrections(fang, fhand);
    16431639      // use a member function pointer in STPol.  This only works on
    16441640      // the STPol pointer itself, not the Counted Pointer so
     
    19061902      uInt row = tab.rowNumbers()[0];
    19071903      stpol->setSpectra(in->getPolMatrix(row));
    1908       Float fang,fhand,parang;
    1909       fang = in->focusTable_.getTotalFeedAngle(in->mfocusidCol_(row));
     1904      Float fang,fhand;
     1905      fang = in->focusTable_.getTotalAngle(in->mfocusidCol_(row));
    19101906      fhand = in->focusTable_.getFeedHand(in->mfocusidCol_(row));
    1911       parang = in->paraCol_(row);
    1912       /// @todo re-enable this
    1913       // disable total feed angle to support paralactifying Caswell style
    1914       stpol->setPhaseCorrections(parang, -parang, fhand);
     1907      stpol->setPhaseCorrections(fang, fhand);
    19151908      Int npolout = 0;
    19161909      for (uInt i=0; i<tab.nrow(); ++i) {
Note: See TracChangeset for help on using the changeset viewer.