Changeset 685


Ignore:
Timestamp:
09/22/05 12:12:20 (19 years ago)
Author:
mar637
Message:

forgot to change some hardcoded axes. Now using asap::AxisNo everywhere.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDContainer.cc

    r483 r685  
    8787
    8888SDContainer::SDContainer(IPosition shp)
    89   : nBeam_(shp(0)),
    90     nIF_(shp(1)),
    91     nPol_(shp(2)),
    92     nChan_(shp(3)),
     89  : nBeam_(shp(asap::BeamAxis)),
     90    nIF_(shp(asap::IFAxis)),
     91    nPol_(shp(asap::PolAxis)),
     92    nChan_(shp(asap::ChanAxis)),
    9393    spectrum_(shp),
    9494    flags_(shp),
    9595    tsys_(shp),
    96     freqidx_(shp(1)),
    97     restfreqidx_(shp(1)) {
    98   IPosition ip(2,shp(0),2);
     96    freqidx_(shp(asap::IFAxis)),
     97    restfreqidx_(shp(asap::IFAxis)) {
     98  IPosition ip(2,shp(asap::BeamAxis),2);
    9999  direction_.resize(ip);
    100100  uChar x = 0;
     
    107107
    108108Bool SDContainer::resize(IPosition shp) {
    109   nBeam_ = shp(0);
    110   nIF_ = shp(1);
    111   nPol_ = shp(2);
    112   nChan_ = shp(3);
     109  nBeam_ = shp(asap::BeamAxis);
     110  nIF_ = shp(asap::IFAxis);
     111  nPol_ = shp(asap::PolAxis);
     112  nChan_ = shp(asap::ChanAxis);
    113113  spectrum_.resize(shp);
    114114  flags_.resize(shp);
    115115  tsys_.resize(shp);
    116   freqidx_.resize(shp(1));
    117   restfreqidx_.resize(shp(1));
    118   IPosition ip(2,shp(0),2);
     116  freqidx_.resize(shp(asap::IFAxis));
     117  restfreqidx_.resize(shp(asap::IFAxis));
     118  IPosition ip(2,shp(asap::BeamAxis),2);
    119119  direction_.resize(ip);
    120120}
     
    148148  Bool xPol = True;
    149149  IPosition start, end;
    150   setSlice (start, end, spec.shape(), spectrum_.shape(),
     150  setSlice(start, end, spec.shape(), spectrum_.shape(),
    151151            whichBeam, whichIF, tSys, xPol);
    152152
     
    194194
    195195  IPosition start, end;
    196   setSlice (start, end, spec.shape(), spectrum_.shape(),
     196  setSlice(start, end, spec.shape(), spectrum_.shape(),
    197197            whichBeam, whichIF, False, False);
    198198
     
    221221}
    222222
    223 
    224 
    225 
    226223Bool SDContainer::setFlags(const Matrix<uChar>& flags,
    227224                           uInt whichBeam, uInt whichIF,
     
    241238
    242239  IPosition start, end;
    243   setSlice (start, end, flags.shape(), flags_.shape(),
     240  setSlice(start, end, flags.shape(), flags_.shape(),
    244241            whichBeam, whichIF, False, hasXPol);
    245242
     
    310307
    311308  IPosition start, end;
    312   setSlice (start, end, tsys.shape(), tsys_.shape(),
     309  setSlice(start, end, tsys.shape(), tsys_.shape(),
    313310            whichBeam, whichIF, True, hasXpol);
    314311
     
    350347
    351348  IPosition start, end;
    352   setSlice (start, end, spectrum_.shape(), whichBeam, whichIF);
     349  setSlice(start, end, spectrum_.shape(), whichBeam, whichIF);
    353350//
    354351  Array<Float> dataIn = spectrum_(start,end);
     
    379376
    380377  IPosition start, end;
    381   setSlice (start, end, flags_.shape(), whichBeam, whichIF);
     378  setSlice(start, end, flags_.shape(), whichBeam, whichIF);
    382379//
    383380  Array<uChar> dataIn = flags_(start,end);
     
    405402
    406403  IPosition start, end;
    407   setSlice (start, end, spectrum_.shape(), whichBeam, whichIF);
     404  setSlice(start, end, spectrum_.shape(), whichBeam, whichIF);
    408405//
    409406  Array<Float> dataIn = tsys_(start,end);
Note: See TracChangeset for help on using the changeset viewer.