Changeset 996 for trunk/src/STMath.cpp


Ignore:
Timestamp:
04/06/06 13:45:58 (18 years ago)
Author:
mar637
Message:

more fixes after compiling with -Wall.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STMath.cpp

    r992 r996  
    128128
    129129  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 ) {
    131131      const Table& tin = in[j]->table();
    132132      const TableRecord& rec = row.get(i);
     
    425425//
    426426{
    427   InterpolateArray1D<Double,Float>::InterpolationMethod interp;
     427  //InterpolateArray1D<Double,Float>::InterpolationMethod interp;
    428428  Int interpMethod(stringToIMethod(method));
    429429
     
    621621  // Interpolate (and extrapolate) with desired method
    622622
    623    //InterpolateArray1D<Double,Float>::InterpolationMethod method;
    624    Int intmethod(stringToIMethod(method));
     623  InterpolateArray1D<Double,Float>::InterpolationMethod interp = stringToIMethod(method);
    625624
    626625   Vector<Float> yout;
    627626   Vector<Bool> maskout;
    628627   InterpolateArray1D<Float,Float>::interpolate(yout, maskout, xout,
    629                                                 xin, yin, maskin, intmethod,
     628                                                xin, yin, maskin, interp,
    630629                                                True, True);
    631630
     
    706705    STAttr sda;
    707706    if (d < 0) d = sda.diameter(inst);
    708     Float jyPerk = STAttr::findJyPerK(etaap, d);
     707    jyperk = STAttr::findJyPerK(etaap, d);
    709708    ostringstream oss;
    710709    oss << "Jy/K = " << jyperk;
     
    898897  STMath::invertPhase( const CountedPtr < Scantable >& in )
    899898{
    900   applyToPol(in, &STPol::invertPhase, Float(0.0));
     899  return applyToPol(in, &STPol::invertPhase, Float(0.0));
    901900}
    902901
     
    10251024  MPosition refPos = in->getAntennaPosition();
    10261025
    1027   InterpolateArray1D<Double,Float>::InterpolationMethod interp;
    1028   Int interpMethod(stringToIMethod(method));
     1026  InterpolateArray1D<Double,Float>::InterpolationMethod interp = stringToIMethod(method);
    10291027  // test if user frame is different to base frame
    10301028  if ( in->frequencies().getFrameString(true)
     
    10951093        bool first = true;
    10961094        // 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) {
    10981096          // input values
    10991097          Vector<uChar> flag = flagCol(i);
Note: See TracChangeset for help on using the changeset viewer.