Ignore:
Timestamp:
03/14/13 16:22:24 (11 years ago)
Author:
Malte Marquarding
Message:

Ticket #288: implemented dropping of xpols as scantable.drop_xpol()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r2774 r2789  
    51945194
    51955195
     5196void Scantable::dropXPol()
     5197{
     5198  if (npol() <= 2) {
     5199    return;
     5200  }
     5201  if (!selector_.empty()) {
     5202    throw AipsError("Can only operate with empty selection");
     5203  }
     5204  std::string taql = "SELECT FROM $1 WHERE POLNO IN [0,1]";
     5205  Table tab = tableCommand(taql, table_);
     5206  table_ = tab;
     5207  table_.rwKeywordSet().define("nPol", Int(2));
     5208  originalTable_ = table_;
     5209  attach();
     5210}
     5211
    51965212}
    51975213//namespace asap
Note: See TracChangeset for help on using the changeset viewer.