- Timestamp:
- 08/30/10 19:13:04 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/PKSFiller.cpp
r1904 r1916 20 20 #include <casa/Arrays/ArrayLogical.h> 21 21 #include <casa/Utilities/Regex.h> 22 #include <casa/Utilities/DataType.h> 22 23 #include <casa/Logging/LogIO.h> 23 24 … … 35 36 36 37 #include <time.h> 38 #include <sstream> 37 39 38 40 #include "STDefs.h" … … 76 78 77 79 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 } 78 101 79 102 reader_ = getPKSreader(inName, antenna, 0, 0, format, beams, ifs, … … 147 170 Vector<Int> start(nIF_, 1); 148 171 Vector<Int> end(nIF_, 0); 149 Bool getPt = False;150 172 reader_->select(beams, ifs, start, end, ref, True, haveXPol_[0], False, getPt); 151 173 setHeader(header);
Note:
See TracChangeset
for help on using the changeset viewer.