Changeset 2720 for trunk/src/STCalSkyTable.cpp
- Timestamp:
- 01/09/13 19:27:23 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STCalSkyTable.cpp
r2703 r2720 38 38 } 39 39 40 STCalSkyTable::STCalSkyTable(const String &name) 41 : STApplyTable(name) 42 { 43 attachOptionalColumns(); 44 } 45 40 46 STCalSkyTable::~STCalSkyTable() 41 47 { … … 63 69 64 70 void STCalSkyTable::setdata(uInt irow, uInt scanno, uInt cycleno, 65 uInt beamno, uInt ifno, uInt polno,66 Double time, Float elevation, Vector<Float> spectra)71 uInt beamno, uInt ifno, uInt polno, uInt freqid, 72 Double time, Float elevation, Vector<Float> spectra) 67 73 { 68 74 if (irow >= (uInt)nrow()) { … … 75 81 } 76 82 77 setbasedata(irow, scanno, cycleno, beamno, ifno, polno, time);83 setbasedata(irow, scanno, cycleno, beamno, ifno, polno, freqid, time); 78 84 elCol_.put(irow, elevation); 79 85 spectraCol_.put(irow, spectra); … … 81 87 82 88 void STCalSkyTable::appenddata(uInt scanno, uInt cycleno, 83 uInt beamno, uInt ifno, uInt polno,84 Double time, Float elevation, Vector<Float> spectra)89 uInt beamno, uInt ifno, uInt polno, uInt freqid, 90 Double time, Float elevation, Vector<Float> spectra) 85 91 { 86 92 uInt irow = nrow(); 87 93 table_.addRow(1, True); 88 setdata(irow, scanno, cycleno, beamno, ifno, polno, time, elevation, spectra);94 setdata(irow, scanno, cycleno, beamno, ifno, polno, freqid, time, elevation, spectra); 89 95 } 96 97 uInt STCalSkyTable::nchan(uInt ifno) 98 { 99 STSelector org = sel_; 100 STSelector sel; 101 sel.setIFs(vector<int>(1,(int)ifno)); 102 setSelection(sel); 103 uInt n = spectraCol_(0).nelements(); 104 unsetSelection(); 105 if (!org.empty()) 106 setSelection(org); 107 return n; 90 108 } 109 110 // Vector<Double> STCalSkyTable::getBaseFrequency(uInt whichrow) 111 // { 112 // assert(whichrow < nrow()); 113 // uInt freqid = freqidCol_(whichrow); 114 // uInt nc = spectraCol_(whichrow).nelements(); 115 // Block<Double> f = getFrequenciesRow(freqid); 116 // Vector<Double> freqs(nc); 117 // indgen(freqs, f[1]-f[0]*f[2], f[2]); 118 // return freqs; 119 // } 120 }
Note: See TracChangeset
for help on using the changeset viewer.