Ignore:
Timestamp:
08/28/06 12:28:27 (18 years ago)
Author:
mar637
Message:

Fix for ticket #61 - changing of default polarisation. Done ticket #62 as far as possible. Tid data gets automatically set as 'circular'\nAlso add circular pol class which was missing so far.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r1170 r1189  
    5656#include "Scantable.h"
    5757#include "STPolLinear.h"
     58#include "STPolCircular.h"
    5859#include "STPolStokes.h"
    5960#include "STAttr.h"
     
    6970  if ( factories_.empty() ) {
    7071    Scantable::factories_["linear"] = &STPolLinear::myFactory;
     72    Scantable::factories_["circular"] = &STPolStokes::myFactory;
    7173    Scantable::factories_["stokes"] = &STPolStokes::myFactory;
    7274  }
     
    398400  nameU.upcase();
    399401  table_.rwKeywordSet().define(String("AntennaName"), nameU);
     402}
     403
     404void Scantable::setFeedType(const std::string& feedtype)
     405{
     406  if ( Scantable::factories_.find(feedtype) ==  Scantable::factories_.end() ) {
     407    std::string msg = "Illegal feed type "+ feedtype;
     408    throw(casa::AipsError(msg));
     409  }
     410  table_.rwKeywordSet().define(String("POLTYPE"), feedtype);
    400411}
    401412
Note: See TracChangeset for help on using the changeset viewer.