Changeset 830 for trunk/src/STTcal.cpp
- Timestamp:
- 02/17/06 15:49:59 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STTcal.cpp
r810 r830 74 74 } 75 75 76 void STTcal::getEntry( String& time, Vector<Float>& tcal, uInt id ) 77 { 78 Table t = table_(table_.col("ID") == Int(id) ); 79 if (t.nrow() == 0 ) { 80 throw(AipsError("STTcal::getEntry - id out of range")); 81 } 82 ROTableRow row(t); 83 // get first row - there should only be one matching id 84 const TableRecord& rec = row.get(0); 85 time = rec.asString("TIME"); 86 tcal.resize(); 87 Vector<Float> out; 88 rec.get("TCAL",out); 89 tcal = out; 76 90 } 77 91 92 } //namespace 93
Note: See TracChangeset
for help on using the changeset viewer.