Changeset 2764 for trunk/src


Ignore:
Timestamp:
02/07/13 11:44:35 (12 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: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Doppler keyword in FREQUENCIES subtable is taken from VREF keyword
in NRO data.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/NROFiller.cpp

    r2761 r2764  
    9595  }
    9696
    97   // 2010/07/30 TBD: Do we need to set frame here?
     97  // FREQUENCIES table setup
    9898  table_->frequencies().setFrame( hdr.freqref, true ) ;
    9999  table_->frequencies().setFrame( hdr.freqref, false ) ;
     100  const string vref = reader_->dataset().getVREF() ;
     101  if ( vref.compare( 0, 3, "RAD" ) ) {
     102    table_->frequencies().setDoppler( "RADIO" ) ;
     103  }
     104  else if ( vref.compare( 0, 3, "OPT" ) ) {
     105    table_->frequencies().setDoppler( "OPTICAL" ) ;
     106  }
     107  else {
     108    LogIO os( LogOrigin( "NROFiller", "open", WHERE ) ) ;
     109    os << LogIO::WARN
     110       << "VREF " << vref << " is not supported. Use default (RADIO)."
     111       << LogIO::POST ;
     112  }
    100113
    101114  // set Header
Note: See TracChangeset for help on using the changeset viewer.