Ignore:
Timestamp:
02/23/11 19:19:36 (13 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: Yes (CAS-2817/ASAP-232)

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed: added a new function SrcType::getName(int)

Test Programs: sdlist (CASA) or scantable.summary()

Put in Release Notes: No

Module(s): scantable, sdlist, sdplot

Description:

Added a new function SrcType::getName(int srctype) which returns
a source type in string.
The source type of each scan is retuned by Scantable::summary.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r1994 r2005  
    6161#include <coordinates/Coordinates/CoordinateUtil.h>
    6262
     63#include <atnf/PKSIO/SrcType.h>
    6364#include "Scantable.h"
    6465#include "STPolLinear.h"
     
    994995                  + ")";
    995996  oss << setw(5) << "Scan" << setw(15) << "Source"
    996       << setw(10) << "Time" << setw(18) << "Integration" << endl;
     997      << setw(10) << "Time" << setw(18) << "Integration"
     998      << setw(15) << "Source Type" << endl;
    997999  oss << setw(5) << "" << setw(5) << "Beam" << setw(3) << "" << dirtype << endl;
    9981000  oss << setw(10) << "" << setw(3) << "IF" << setw(3) << ""
     
    10201022    }
    10211023    oss << setw(3) << std::right << nint  << setw(3) << " x " << std::left
    1022         << setw(6) <<  formatSec(rec.asFloat("INTERVAL")) << endl;
     1024        << setw(11) <<  formatSec(rec.asFloat("INTERVAL")) << setw(1) << ""
     1025        << setw(15) << SrcType::getName(rec.asInt("SRCTYPE")) << endl;
    10231026
    10241027    TableIterator biter(subt, "BEAMNO");
Note: See TracChangeset for help on using the changeset viewer.