Changeset 184 for trunk/src


Ignore:
Timestamp:
01/10/05 16:45:34 (20 years ago)
Author:
mar637
Message:

Bug fix: scanAv wasn't working properly, as 'nPts' wasn't rest after each scan.
Bug fix: scanid was not reflecting the case of across table quotients.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMath.cc

    r183 r184  
    274274           timeSum = 0.0;
    275275           intSum = 0.0;
     276           nPts = 0.0; // reset this too!!!
    276277
    277278// Increment
     
    284285           oldScanID = scanID;
    285286           outScanID += 1;               // Scan ID for next accumulation period
    286         }
     287
     288}
    287289
    288290// Accumulate
     
    294296       oldSourceName = sourceName;
    295297       oldFreqID = freqID;
    296     }
     298     }
    297299  }
    298300
     
    303305//
    304306// Normalize data in 'sum' accumulation array according to weighting scheme
    305 
    306307  normalize (sum, sumSq, nPts, wtType, axis, nAxesSub);
    307308
     
    382383// Fill container for this row
    383384
    384      SDContainer sc = on->getSDContainer();
     385     SDContainer sc = on->getSDContainer(i);
    385386//
    386387     putDataInSDC (sc, out, outflagsb);
    387388     sc.putTsys(tsarr);
    388      sc.scanid = 0;
     389     sc.scanid = i;
    389390
    390391// Put new row in output Table
Note: See TracChangeset for help on using the changeset viewer.