Changeset 830 for trunk/src/STTcal.cpp


Ignore:
Timestamp:
02/17/06 15:49:59 (18 years ago)
Author:
mar637
Message:

added getEntry to support export for STWriter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STTcal.cpp

    r810 r830  
    7474}
    7575
     76void 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;
    7690}
    7791
     92} //namespace
     93
Note: See TracChangeset for help on using the changeset viewer.