Changeset 2202 for trunk/external-alma


Ignore:
Timestamp:
06/24/11 12:04:16 (14 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-2819

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...

Bug fix on confused use of IFNO and BEAMNO.

Freuqency setting is calculated only once for BEARS (25beam) data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/external-alma/atnf/PKSIO/NRODataset.cc

    r2201 r2202  
    668668  string arryt = string( record->ARRYT ) ;
    669669  uInt ib = getArrayId( arryt ) ;
    670 
    671   if ( frec_.isDefined( arryt ) ) {
     670  string rxname = getRX()[0] ;
     671  string key = arryt ;
     672  if ( rxname.find("MULT2") != string::npos )
     673    key = "BEARS" ;
     674
     675  if ( frec_.isDefined( key ) ) {
    672676    // frequency for the array is already calculated
    673     Vector<Double> f =  frec_.asArrayDouble( arryt ) ;
     677    Vector<Double> f =  frec_.asArrayDouble( key ) ;
    674678    Double *f_p = f.data() ;
    675679    for ( int i = 0 ; i < 3 ; i++ )
     
    818822  // register frequency setting to Record
    819823  Vector<Double> f( v ) ;
    820   frec_.define( arryt, f ) ;
     824  frec_.define( key, f ) ;
    821825
    822826  return v ;
Note: See TracChangeset for help on using the changeset viewer.