Changeset 1493


Ignore:
Timestamp:
01/27/09 13:57:36 (15 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: No

Module(s): Module Names change impacts.

Description: Fixed frequency and velocity conversion from/to

channel:

  1. frequency conversion is done in NROReader, doesn't require conversion using casacore.
  2. velocity obtained by

scantable.set_unit('km/s')
scantable._getabcissa()

doesn't contain source velocity (SRCVELOCITY)
contribution, so that the velocity information
should be interpreted as an offset from the
velocity center.


File:
1 edited

Legend:

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

    r1492 r1493  
    492492  else if ( strncmp( eq, "J2000", 5 ) == 0 )
    493493    header_->equinox = 2000.0 ;
    494   char *vref = nheader->getVREF() ;
     494//   char *vref = nheader->getVREF() ;
    495495//   if ( strncmp( vref, "LSR", 3 ) == 0 ) {
    496496//     strcat( vref, "K" ) ;
    497497//   }
    498   header_->freqref = vref ;
     498//   header_->freqref = vref ;
    499499  nreader_->getData( 0 ) ;
    500500  header_->reffreq = nreader_->getData()->FREQ0 ;
     
    556556  table_->setHeader( *header_ ) ;
    557557
    558   // set velocity reference
    559 //   table_->frequencies().setFrame( vref ) ;
    560 
    561558  // DEBUG
    562559  //cout << "STFiller::openNRO() Velocity Definition = " << nheader->getVDEF() << endl ;
     
    643640      RecordFieldPtr<Double> svelCol(rec, "SRCVELOCITY") ;
    644641      *svelCol = h->getURVEL() ;   // [m/s]
    645       //*svelCol = h->getURVEL() + d->VRAD ;  // [m/s]
    646       //*svelCol = d->VRAD ;  // [m/s]
    647       //*svelCol = 0.0 ;
    648642      RecordFieldPtr<Int> fitCol(rec, "FIT_ID") ;
    649643      *fitCol = -1 ;
Note: See TracChangeset for help on using the changeset viewer.