Changeset 685
- Timestamp:
- 09/22/05 12:12:20 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDContainer.cc
r483 r685 87 87 88 88 SDContainer::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)), 93 93 spectrum_(shp), 94 94 flags_(shp), 95 95 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); 99 99 direction_.resize(ip); 100 100 uChar x = 0; … … 107 107 108 108 Bool 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); 113 113 spectrum_.resize(shp); 114 114 flags_.resize(shp); 115 115 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); 119 119 direction_.resize(ip); 120 120 } … … 148 148 Bool xPol = True; 149 149 IPosition start, end; 150 setSlice 150 setSlice(start, end, spec.shape(), spectrum_.shape(), 151 151 whichBeam, whichIF, tSys, xPol); 152 152 … … 194 194 195 195 IPosition start, end; 196 setSlice 196 setSlice(start, end, spec.shape(), spectrum_.shape(), 197 197 whichBeam, whichIF, False, False); 198 198 … … 221 221 } 222 222 223 224 225 226 223 Bool SDContainer::setFlags(const Matrix<uChar>& flags, 227 224 uInt whichBeam, uInt whichIF, … … 241 238 242 239 IPosition start, end; 243 setSlice 240 setSlice(start, end, flags.shape(), flags_.shape(), 244 241 whichBeam, whichIF, False, hasXPol); 245 242 … … 310 307 311 308 IPosition start, end; 312 setSlice 309 setSlice(start, end, tsys.shape(), tsys_.shape(), 313 310 whichBeam, whichIF, True, hasXpol); 314 311 … … 350 347 351 348 IPosition start, end; 352 setSlice 349 setSlice(start, end, spectrum_.shape(), whichBeam, whichIF); 353 350 // 354 351 Array<Float> dataIn = spectrum_(start,end); … … 379 376 380 377 IPosition start, end; 381 setSlice 378 setSlice(start, end, flags_.shape(), whichBeam, whichIF); 382 379 // 383 380 Array<uChar> dataIn = flags_(start,end); … … 405 402 406 403 IPosition start, end; 407 setSlice 404 setSlice(start, end, spectrum_.shape(), whichBeam, whichIF); 408 405 // 409 406 Array<Float> dataIn = tsys_(start,end);
Note:
See TracChangeset
for help on using the changeset viewer.