Changeset 1491 for branches


Ignore:
Timestamp:
01/26/09 16:33:42 (16 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-1043

Ready to Release: 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: Fixed bug in frequency conversion again.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/src/STFiller.cpp

    r1490 r1491  
    492492  else if ( strncmp( eq, "J2000", 5 ) == 0 )
    493493    header_->equinox = 2000.0 ;
    494   header_->freqref = nheader->getVREF() ;
     494  char *vref = nheader->getVREF() ;
     495  //if ( strncmp( vref, "LSR", 3 ) == 0 ) {
     496  //strcat( vref, "K" ) ;
     497  //}
     498  header_->freqref = vref ;
    495499  header_->reffreq = nheader->getF0CAL()[0] ;
    496500  header_->bandwidth = nheader->getBEBW()[0] ;
     
    551555  table_->setHeader( *header_ ) ;
    552556
     557  // set velocity reference
     558  //table_->frequencies().setFrame( vref ) ;
     559
    553560  // DEBUG
    554561  //cout << "STFiller::openNRO() Velocity Definition = " << nheader->getVDEF() << endl ;
     
    637644      *sdirCol = nreader_->getSourceDirection() ;
    638645      RecordFieldPtr<Double> svelCol(rec, "SRCVELOCITY") ;
    639       //*svelCol = h->getURVEL() ;   // [m/s]
    640       *svelCol = h->getURVEL() + d->VRAD ;  // [m/s]
     646      *svelCol = h->getURVEL() ;   // [m/s]
     647      //*svelCol = h->getURVEL() + d->VRAD ;  // [m/s]
     648      //*svelCol = d->VRAD ;  // [m/s]
     649      //*svelCol = 0.0 ;
    641650      RecordFieldPtr<Int> fitCol(rec, "FIT_ID") ;
    642651      *fitCol = -1 ;
Note: See TracChangeset for help on using the changeset viewer.