Ignore:
Timestamp:
04/28/10 21:44:09 (14 years ago)
Author:
Malte Marquarding
Message:

Ticket #183: added get_weather to scantable. It returns a dicr or list of dicts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r1728 r1730  
    279279  rbeamCol_.attach(table_, "REFBEAMNO");
    280280
     281  mweatheridCol_.attach(table_,"WEATHER_ID");
    281282  mfitidCol_.attach(table_,"FIT_ID");
    282283  mfreqidCol_.attach(table_, "FREQ_ID");
     
    434435    Table tab = table_.copyToMemoryTable(generateName());
    435436    tab.deepCopy(inname, Table::New);
     437    tab.markForDelete();
     438
    436439  } else {
    437440    table_.deepCopy(inname, Table::New);
     
    10561059}
    10571060
    1058 std::string asap::Scantable::getAntennaName() const
     1061std::string Scantable::getAntennaName() const
    10591062{
    10601063  String out;
     
    10631066}
    10641067
    1065 int asap::Scantable::checkScanInfo(const std::vector<int>& scanlist) const
     1068int Scantable::checkScanInfo(const std::vector<int>& scanlist) const
    10661069{
    10671070  String tbpath;
     
    11311134}
    11321135
    1133 std::vector<double>  asap::Scantable::getDirectionVector(int whichrow) const
     1136std::vector<double> Scantable::getDirectionVector(int whichrow) const
    11341137{
    11351138  Vector<Double> Dir = dirCol_(whichrow).getAngle("rad").getValue();
     
    11391142}
    11401143
     1144std::vector<float> Scantable::getWeather(int whichrow) const
     1145{
     1146  std::vector<float> out(5);
     1147  //Float temperature, pressure, humidity, windspeed, windaz;
     1148  weatherTable_.getEntry(out[0], out[1], out[2], out[3], out[4],
     1149                         mweatheridCol_(uInt(whichrow)));
     1150
     1151
     1152  return out;
     1153}
     1154
    11411155}
    11421156 //namespace asap
Note: See TracChangeset for help on using the changeset viewer.