- Timestamp:
- 07/13/07 12:08:18 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STMath.cpp
r1373 r1384 1175 1175 cols[3] = String("CYCLENO"); 1176 1176 TableIterator iter(tout, cols); 1177 STPol* stpol = STPol::getPolClass(out->factories_, out->getPolType() ); 1177 CountedPtr<STPol> stpol = STPol::getPolClass(out->factories_, 1178 out->getPolType() ); 1178 1179 while (!iter.pastEnd()) { 1179 1180 Table t = iter.table(); … … 1181 1182 ScalarColumn<uInt> focidcol(t, "FOCUS_ID"); 1182 1183 ScalarColumn<Float> parancol(t, "PARANGLE"); 1183 Matrix<Float> pols = speccol.getColumn();1184 Matrix<Float> pols(speccol.getColumn()); 1184 1185 try { 1185 1186 stpol->setSpectra(pols); … … 1191 1192 // disable total feed angle to support paralactifying Caswell style 1192 1193 stpol->setPhaseCorrections(parang, -parang, fhand); 1193 (stpol->*fptr)(phase); 1194 // use a member function pointer in STPol. This only works on 1195 // the STPol pointer itself, not the Counted Pointer so 1196 // derefernce it. 1197 (&(*(stpol))->*fptr)(phase); 1194 1198 speccol.putColumn(stpol->getSpectra()); 1195 Matrix<Float> tmp = stpol->getSpectra();1196 1199 } catch (AipsError& e) { 1197 delete stpol;stpol=0;1200 //delete stpol;stpol=0; 1198 1201 throw(e); 1199 1202 } 1200 1203 ++iter; 1201 1204 } 1202 delete stpol;stpol=0;1205 //delete stpol;stpol=0; 1203 1206 return out; 1204 1207 }
Note:
See TracChangeset
for help on using the changeset viewer.