- Timestamp:
- 04/18/06 15:48:53 (19 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STMath.cpp
r1010 r1015 153 153 Vector<uChar> flag; 154 154 Double inter,time; 155 cout << rec.asuInt("POLNO") << endl;156 155 for (uInt k = 0; k < subt.nrow(); ++k ) { 157 156 flagCol.get(k, flag); … … 931 930 cols[3] = String("CYCLENO"); 932 931 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() ); 935 933 while (!iter.pastEnd()) { 936 934 Table t = iter.table(); 937 935 ArrayColumn<Float> speccol(t, "SPECTRA"); 936 ScalarColumn<uInt> focidcol(t, "FOCUS_ID"); 937 ScalarColumn<Float> parancol(t, "PARANGLE"); 938 938 Matrix<Float> pols = speccol.getColumn(); 939 939 try { 940 940 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); 941 948 (stpol->*fptr)(phase); 942 949 speccol.putColumn(stpol->getSpectra()); 950 Matrix<Float> tmp = stpol->getSpectra(); 943 951 } catch (AipsError& e) { 944 952 delete stpol;stpol=0; -
trunk/src/STPol.h
r957 r1015 35 35 36 36 typedef void (STPol::*polOperation)( casa::Float phase ); 37 STPol() {}37 STPol(): totalfeed_(0.0),parangle_(0.0),feedhand_(1.0) {} 38 38 virtual ~STPol() {} 39 39
Note:
See TracChangeset
for help on using the changeset viewer.