Changeset 1391 for trunk/src/STTcal.cpp
- Timestamp:
- 07/30/07 11:59:36 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STTcal.cpp
r856 r1391 68 68 } 69 69 70 /*** rewrite this for handling of GBT data 70 71 uInt STTcal::addEntry( const String& time, const Vector<Float>& cal) 71 72 { … … 90 91 return resultid; 91 92 } 93 ***/ 94 95 uInt STTcal::addEntry( const String& time, const Vector<Float>& cal) 96 { 97 // test if this already exists 98 // TT - different Tcal values for each polarization, feed, and 99 // data description. So there may be multiple entries for the same 100 // time stamp. 101 uInt resultid; 102 uInt rno = table_.nrow(); 103 //table_.addRow(); 104 // get last assigned tcal_id and increment 105 if ( rno == 0 ) { 106 resultid = 0; 107 } 108 else { 109 idCol_.get(rno-1, resultid); 110 resultid++; 111 } 112 table_.addRow(); 113 tcalCol_.put(rno, cal); 114 timeCol_.put(rno, time); 115 idCol_.put(rno, resultid); 116 return resultid; 117 } 118 92 119 93 120 void STTcal::getEntry( String& time, Vector<Float>& tcal, uInt id )
Note: See TracChangeset
for help on using the changeset viewer.