Changeset 2285
- Timestamp:
- 09/01/11 17:20:33 (13 years ago)
- Location:
- branches/parallel/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/parallel/src/STFocus.h
r1586 r2285 65 65 casa::ScalarColumn<casa::Float> rotationCol_, axisCol_, 66 66 tanCol_,handCol_, parangleCol_, 67 mountCol_,userCol_, xyphCol_,xyphoffCol_ ,;67 mountCol_,userCol_, xyphCol_,xyphoffCol_; 68 68 }; 69 69 -
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]; -
branches/parallel/src/STMath.h
r1937 r2285 428 428 429 429 bool insitu_; 430 431 typedef std::map<std::vector<unsigned int>,std::vector<unsigned int> > TcalIDmap; 430 432 }; 431 433 -
branches/parallel/src/Templates.cpp
r1819 r2285 81 81 82 82 //template void convertArray<Bool, uChar>(Array<Bool> &, Array<uChar> const &); 83 template void c onvertArray<uChar, Bool>(Array<uChar> &, Array<Bool> const &);83 template void casa::convertArray<uChar, Bool>(Array<uChar> &, Array<Bool> const &); 84 84 85 template Array<Float>& operator/=<Float>(Array<Float>&, MaskedArray<Float> const&);86 template MaskedArray<Float> const& operator*=<Float>(MaskedArray<Float> const&, Float const&);87 template MaskedArray<Float> const& operator*=<Float>(MaskedArray<Float> const&, Array<Float> const&);88 template MaskedArray<Float> const& operator/=<Float>(MaskedArray<Float> const&, Float const&);89 template MaskedArray<Float> operator+<Float>(MaskedArray<Float> const&, MaskedArray<Float> const&);90 template MaskedArray<Float> operator-<Float>(MaskedArray<Float> const&, MaskedArray<Float> const&);91 template MaskedArray<Float> operator-<Float>(MaskedArray<Float> const&, Array<Float> const&);85 template Array<Float>& casa::operator/=<Float>(Array<Float>&, MaskedArray<Float> const&); 86 template MaskedArray<Float> const& casa::operator*=<Float>(MaskedArray<Float> const&, Float const&); 87 template MaskedArray<Float> const& casa::operator*=<Float>(MaskedArray<Float> const&, Array<Float> const&); 88 template MaskedArray<Float> const& casa::operator/=<Float>(MaskedArray<Float> const&, Float const&); 89 template MaskedArray<Float> casa::operator+<Float>(MaskedArray<Float> const&, MaskedArray<Float> const&); 90 template MaskedArray<Float> casa::operator-<Float>(MaskedArray<Float> const&, MaskedArray<Float> const&); 91 template MaskedArray<Float> casa::operator-<Float>(MaskedArray<Float> const&, Array<Float> const&); 92 92 93 template MaskedArray<Float> operator/<Float>(MaskedArray<Float> const&, MaskedArray<Float> const&);93 template MaskedArray<Float> casa::operator/<Float>(MaskedArray<Float> const&, MaskedArray<Float> const&); 94 94 95 template MaskedArray<Float> operator*<Float>(MaskedArray<Float> const&, MaskedArray<Float> const&);96 template MaskedArray<Float> operator*<Float>(MaskedArray<Float> const&, Array<Float> const&);97 template MaskedArray<Float> operator*<Float>(Array<Float> const&, MaskedArray<Float> const&);98 template MaskedArray<Float> operator*<Float>(Float const&, MaskedArray<Float> const&);99 template Float stddev<Float>(MaskedArray<Float> const&);100 template Float median<Float>(MaskedArray<Float> const&, Bool, Bool);101 template Float sumsquares<Float>(MaskedArray<Float> const&);102 template Float avdev<Float>(MaskedArray<Float> const&);95 template MaskedArray<Float> casa::operator*<Float>(MaskedArray<Float> const&, MaskedArray<Float> const&); 96 template MaskedArray<Float> casa::operator*<Float>(MaskedArray<Float> const&, Array<Float> const&); 97 template MaskedArray<Float> casa::operator*<Float>(Array<Float> const&, MaskedArray<Float> const&); 98 template MaskedArray<Float> casa::operator*<Float>(Float const&, MaskedArray<Float> const&); 99 template Float casa::stddev<Float>(MaskedArray<Float> const&); 100 template Float casa::median<Float>(MaskedArray<Float> const&, Bool, Bool); 101 template Float casa::sumsquares<Float>(MaskedArray<Float> const&); 102 template Float casa::avdev<Float>(MaskedArray<Float> const&); 103 103 104 104 template void LatticeUtilities::bin(MaskedArray<float>&, MaskedArray<float> const&, uInt, uInt);
Note:
See TracChangeset
for help on using the changeset viewer.