- Timestamp:
- 02/06/13 13:13:20 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/NROFiller.cpp
r2289 r2761 23 23 #include <casa/Quanta/MVTime.h> 24 24 #include <atnf/PKSIO/SrcType.h> 25 #include <casa/Logging/LogIO.h> 25 26 26 27 using namespace casa; … … 38 39 } 39 40 40 41 bool NROFiller::open(const std::string& filename, const Record& rec) 41 42 { 42 43 bool status = true ; 44 45 // Parse options 46 String freqref = "DEFAULT (REST)" ; 47 if ( rec.isDefined( "nro" ) ) { 48 Record nrorec = rec.asRecord( "nro" ) ; 49 if ( nrorec.isDefined( "freqref" ) ) { 50 freqref = nrorec.asString( "freqref" ) ; 51 freqref.upcase() ; 52 } 53 LogIO os( LogOrigin( "NROFiller", "open", WHERE ) ) ; 54 os << "Parsing NRO options" << endl ; 55 os << " freqref = " << freqref << LogIO::POST ; 56 } 43 57 44 58 // get appropriate reader object … … 49 63 return status ; 50 64 } 65 66 // Apply options 67 if ( freqref == "REST" ) { 68 reader_->setFreqRefFromVREF( false ) ; 69 } 70 else if ( freqref == "VREF" ) { 71 reader_->setFreqRefFromVREF( true ) ; 72 } 51 73 52 74 // get header information
Note:
See TracChangeset
for help on using the changeset viewer.