Changeset 1780 for branches/newfiller/src/FillerBase.cpp
- Timestamp:
- 07/29/10 21:42:50 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/newfiller/src/FillerBase.cpp
r1778 r1780 11 11 // 12 12 13 #include "FillberBase.h" 13 #include <casa/Containers/RecordField.h> 14 15 #include "FillerBase.h" 14 16 15 17 using namespace casa; … … 18 20 { 19 21 FillerBase::FillerBase() : 20 table_(0) ,22 table_(0) 21 23 { 22 24 } … … 38 40 RecordFieldPtr<uInt> polCol(row_.record(), "POLNO"); 39 41 RecordFieldPtr<uInt> cycleCol(row_.record(), "CYCLENO"); 40 RecordFieldPtr<uInt> scanCol Col(row_.record(), "SCANNO");42 RecordFieldPtr<uInt> scanCol(row_.record(), "SCANNO"); 41 43 *beamCol = beamno; 42 44 *cycleCol = cycleno; … … 47 49 48 50 void FillerBase::setFrequency(Double refpix, Double refval, 49 Double incr) ;51 Double incr) 50 52 { 51 53 /// @todo this has to change when nchan isn't global anymore … … 57 59 58 60 59 void FillerBase::setMolecule( Doublerestfreq)61 void FillerBase::setMolecule(const Vector<Double>& restfreq) 60 62 { 61 uInt id = table_->molecules().addEntry(restfreq); 63 Vector<String> tmp; 64 uInt id = table_->molecules().addEntry(restfreq, tmp, tmp); 62 65 RecordFieldPtr<uInt> molidCol(row_.record(), "MOLECULE_ID"); 63 66 *molidCol = id; 64 67 } 65 68 66 void FillerBase::setDirection(const Vector<Double>& dir .69 void FillerBase::setDirection(const Vector<Double>& dir, 67 70 Float az, Float el) 68 71 { … … 112 115 void FillerBase::setScanRate(const Vector<Double>& srate) 113 116 { 114 115 117 RecordFieldPtr<Array<Double> > srateCol(row_.record(), "SCANRATE"); 116 118 *srateCol = srate; 117 118 119 } 119 120 … … 128 129 const Vector<Double>& dir, 129 130 const Vector<Double>& propermot, 130 Double velocity)131 Double velocity) 131 132 { 132 133 RecordFieldPtr<String> srcnCol(row_.record(), "SRCNAME"); 133 *sr nCol = name;134 *srcnCol = name; 134 135 RecordFieldPtr<Int> srctCol(row_.record(), "SRCTYPE"); 135 136 *srctCol = type; … … 137 138 *fieldnCol = fieldname; 138 139 RecordFieldPtr<Array<Double> > spmCol(row_.record(), "SRCPROPERMOTION"); 139 *spmCol = p ksrec.srcPM;140 *spmCol = propermot; 140 141 RecordFieldPtr<Array<Double> > sdirCol(row_.record(), "SRCDIRECTION"); 141 *sdirCol = pksrec.srcDir;142 *sdirCol = dir; 142 143 RecordFieldPtr<Double> svelCol(row_.record(), "SRCVELOCITY"); 143 *svelCol = pksrec.srcVel;144 *svelCol = velocity; 144 145 } 145 146
Note: See TracChangeset
for help on using the changeset viewer.