Changeset 996 for trunk/src/STMath.cpp
- Timestamp:
- 04/06/06 13:45:58 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STMath.cpp
r992 r996 128 128 129 129 for (uInt i=0; i < tout.nrow(); ++i) { 130 for ( int j=0; j < in .size(); ++j ) {130 for ( int j=0; j < int(in.size()); ++j ) { 131 131 const Table& tin = in[j]->table(); 132 132 const TableRecord& rec = row.get(i); … … 425 425 // 426 426 { 427 InterpolateArray1D<Double,Float>::InterpolationMethod interp;427 //InterpolateArray1D<Double,Float>::InterpolationMethod interp; 428 428 Int interpMethod(stringToIMethod(method)); 429 429 … … 621 621 // Interpolate (and extrapolate) with desired method 622 622 623 //InterpolateArray1D<Double,Float>::InterpolationMethod method; 624 Int intmethod(stringToIMethod(method)); 623 InterpolateArray1D<Double,Float>::InterpolationMethod interp = stringToIMethod(method); 625 624 626 625 Vector<Float> yout; 627 626 Vector<Bool> maskout; 628 627 InterpolateArray1D<Float,Float>::interpolate(yout, maskout, xout, 629 xin, yin, maskin, int method,628 xin, yin, maskin, interp, 630 629 True, True); 631 630 … … 706 705 STAttr sda; 707 706 if (d < 0) d = sda.diameter(inst); 708 Float jyPerk = STAttr::findJyPerK(etaap, d);707 jyperk = STAttr::findJyPerK(etaap, d); 709 708 ostringstream oss; 710 709 oss << "Jy/K = " << jyperk; … … 898 897 STMath::invertPhase( const CountedPtr < Scantable >& in ) 899 898 { 900 applyToPol(in, &STPol::invertPhase, Float(0.0));899 return applyToPol(in, &STPol::invertPhase, Float(0.0)); 901 900 } 902 901 … … 1025 1024 MPosition refPos = in->getAntennaPosition(); 1026 1025 1027 InterpolateArray1D<Double,Float>::InterpolationMethod interp; 1028 Int interpMethod(stringToIMethod(method)); 1026 InterpolateArray1D<Double,Float>::InterpolationMethod interp = stringToIMethod(method); 1029 1027 // test if user frame is different to base frame 1030 1028 if ( in->frequencies().getFrameString(true) … … 1095 1093 bool first = true; 1096 1094 // these rows should be just be POLNO 1097 for (int i=0; i< tab.nrow(); ++i) {1095 for (int i=0; i<int(tab.nrow()); ++i) { 1098 1096 // input values 1099 1097 Vector<uChar> flag = flagCol(i);
Note: See TracChangeset
for help on using the changeset viewer.