Changeset 2285 for branches/parallel/src/STMath.cpp
- Timestamp:
- 09/01/11 17:20:33 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/parallel/src/STMath.cpp
r2267 r2285 989 989 Vector<Float> tcalout2; //debug 990 990 991 const Table& subtcal = caloff->tcal().table(); 992 static STMath::TcalIDmap mt1; 993 const Table& tout_const = caloff->table(); 994 ROScalarColumn<uInt> outTcalIdCol(tout_const, "TCAL_ID"); 995 Vector<uInt> vinID = outTcalIdCol.getColumn(); 996 vector<unsigned int> vint,vintsub; 997 ROScalarColumn<uInt> outtcalSubIdCol(subtcal, "ID"); 998 Vector<uInt> vinSubRowNo = outtcalSubIdCol.getColumn(); 999 ROArrayColumn<Float> TCAL_Col(subtcal, "TCAL"); 1000 vector<unsigned int>::iterator ite_vint=vint.begin(),ite_vintsub=vintsub.begin(); 1001 vint.insert(ite_vint,vinID.begin(),vinID.end()); 1002 vintsub.insert(ite_vintsub,vinSubRowNo.begin(),vinSubRowNo.end()); 1003 mt1.insert(pair<vector<unsigned int>,vector<unsigned int> > (vint,vintsub) ); 1004 TcalIDmap::iterator ite_p; 1005 ite_p = mt1.find(vint); 1006 991 1007 if ( tout.nrow() != tcon.nrow() ) { 992 1008 throw(AipsError("Mismatch in number of rows to form cal on - off pair.")); … … 1062 1078 tcalUsed = tcal; 1063 1079 if ( tcal <= 0.0 ) { 1064 caloff->tcal().getEntry(tcalt, tcalout, tcalId); 1080 // caloff->tcal().getEntry(tcalt, tcalout, tcalId); 1081 uInt intTCAL = ite_p->second[(unsigned int)tcalId]; 1082 TCAL_Col.get(intTCAL,tcalout); 1065 1083 // if (polno<=3) { 1066 1084 // tcalUsed = tcalout[polno];
Note: See TracChangeset
for help on using the changeset viewer.