Changeset 209 for trunk/src/SDMath.cc


Ignore:
Timestamp:
01/18/05 17:31:59 (19 years ago)
Author:
mar637
Message:
  • now using asap::AxisNo? enum instead of fixed axis indeces
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMath.cc

    r185 r209  
    5959
    6060#include "MathUtils.h"
     61#include "Definitions.h"
    6162#include "SDContainer.h"
    6263#include "SDMemTable.h"
     
    109110// Setup
    110111
    111   const uInt axis = 3;                                     // Spectral axis
     112  const uInt axis = asap::ChanAxis;                      // Spectral axis
    112113  IPosition shp = in[0]->rowAsMaskedArray(0).shape();      // Must not change
    113114  Array<Float> arr(shp);
     
    479480// Loop over rows and bin along channel axis
    480481 
    481   const uInt axis = 3;
     482  const uInt axis = asap::ChanAxis;
    482483  for (uInt i=0; i < in.nRow(); ++i) {
    483484    SDContainer sc = in.getSDContainer(i);
     
    588589
    589590   const uInt nRows = in.nRow();
    590    const uInt polAxis = 2;                     // Polarization axis
    591    const uInt chanAxis = 3;                    // Spectrum axis
     591   const uInt polAxis = asap::PolAxis;                     // Polarization axis
     592   const uInt chanAxis = asap::ChanAxis;                    // Spectrum axis
    592593
    593594// Create output Table and reshape number of polarizations
     
    719720// Number of channels
    720721
    721    const uInt chanAxis = 3;                                     // Spectral axis
     722   const uInt chanAxis = asap::ChanAxis;  // Spectral axis
    722723   SDHeader sh = in.getSDHeader();
    723724   const uInt nChan = sh.nchan;
Note: See TracChangeset for help on using the changeset viewer.