- Timestamp:
- 06/24/04 11:39:45 (20 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDContainer.cc
r2 r7 45 45 spectrum_(IPosition(4,nBeam,nIF,nChan,nPol)), 46 46 flags_(IPosition(4,nBeam,nIF,nChan,nPol)), 47 tsys_(IPosition( 3,nBeam,nIF,nPol)) {47 tsys_(IPosition(4,nBeam,nIF,nChan,nPol)) { 48 48 uChar x = 0; 49 49 flags_ = ~x; … … 56 56 spectrum_ = spec; 57 57 } 58 Bool SDContainer::putFlags(const Array<uChar>& spec) {59 flags_ = spec;58 Bool SDContainer::putFlags(const Array<uChar>& flag) { 59 flags_ = flag; 60 60 } 61 Bool SDContainer::putTsys(const Array<Float>& spec) {62 tsys_ = spec;61 Bool SDContainer::putTsys(const Array<Float>& tsys) { 62 tsys_ = tsys; 63 63 } 64 64 … … 128 128 // assert dimensions are the same.... 129 129 uInt idx = 0; 130 for (ArrayAccessor<Float, Axis<2> > i(aa1);i != i.end(); ++i) { 131 (*i) = tsys[idx]; 132 idx++; 133 } 130 131 for (ArrayAccessor<Float, Axis<2> > i(aa1);i != i.end(); ++i) { 132 idx = 0; 133 for (ArrayAccessor<Float, Axis<3> > ii(i);ii != ii.end(); ++ii) { 134 (*ii) = tsys[idx]; 135 idx++; 136 } 137 } 134 138 } -
trunk/src/SDContainer.h
r2 r7 99 99 Array<Float> spectrum_; 100 100 Array<uChar> flags_; 101 // (nBeam,nIF,nPol) 101 // (nBeam,nIF,[nChannel],nPol) Tsys is not really a function of 102 // channel, but this makes it easier to work with at the expense of 103 // a little memory 102 104 Array<Float> tsys_; 103 105 Array<Float> tcal_;
Note:
See TracChangeset
for help on using the changeset viewer.