Ignore:
Timestamp:
07/04/06 11:27:03 (18 years ago)
Author:
mar637
Message:

added Scantable::getDirectionString; added Scantable::setSourceType

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r1047 r1068  
    256256  timeCol_.attach(table_, "TIME");
    257257  srcnCol_.attach(table_, "SRCNAME");
     258  srctCol_.attach(table_, "SRCTYPE");
    258259  specCol_.attach(table_, "SPECTRA");
    259260  flagsCol_.attach(table_, "FLAGTRA");
     
    321322  table_.keywordSet().get("POLTYPE", sdh.poltype);
    322323  return sdh;
     324}
     325
     326void asap::Scantable::setSourceType( int stype )
     327{
     328  if ( stype < 0 || stype > 1 )
     329    throw(AipsError("Illegal sourcetype."));
     330  TableVector<Int> tabvec(table_, "SRCTYPE");
     331  tabvec = Int(stype);
    323332}
    324333
     
    826835}
    827836
     837std::string Scantable::getDirectionString(int whichrow) const
     838{
     839  return formatDirection(getDirection(uInt(whichrow)));
     840}
     841
    828842std::vector< double > asap::Scantable::getAbcissa( int whichrow ) const
    829843{
Note: See TracChangeset for help on using the changeset viewer.