Changeset 1916 for trunk/src


Ignore:
Timestamp:
08/30/10 19:13:04 (14 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: sd regression tests

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

The antenna and getpt parameters for MS filler is effective again.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/PKSFiller.cpp

    r1904 r1916  
    2020#include <casa/Arrays/ArrayLogical.h>
    2121#include <casa/Utilities/Regex.h>
     22#include <casa/Utilities/DataType.h>
    2223#include <casa/Logging/LogIO.h>
    2324
     
    3536
    3637#include <time.h>
     38#include <sstream>
    3739
    3840#include "STDefs.h"
     
    7678
    7779  String antenna("");
     80  Bool getPt = False;
     81
     82  // parsing MS options
     83  if ( rec.isDefined( "ms" ) ) {
     84    Record msrec = rec.asRecord( "ms" ) ;
     85    //msrec.print( cout ) ;
     86    if ( msrec.isDefined( "getpt" ) ) {
     87      getPt = msrec.asBool( "getpt" ) ;
     88    }
     89    if ( msrec.isDefined( "antenna" ) ) {
     90      if ( msrec.type( msrec.fieldNumber( "antenna" ) ) == TpInt ) {
     91        Int antInt = msrec.asInt( "antenna" ) ;
     92        ostringstream oss ;
     93        oss << antInt ;
     94        antenna = String( oss ) ;
     95      }
     96      else {
     97        antenna = msrec.asString( "antenna" ) ;
     98      }
     99    }
     100  }
    78101
    79102  reader_ = getPKSreader(inName, antenna, 0, 0, format, beams, ifs,
     
    147170  Vector<Int> start(nIF_, 1);
    148171  Vector<Int> end(nIF_, 0);
    149   Bool getPt = False;
    150172  reader_->select(beams, ifs, start, end, ref, True, haveXPol_[0], False, getPt);
    151173  setHeader(header);
Note: See TracChangeset for help on using the changeset viewer.