Changeset 2710 for trunk/src


Ignore:
Timestamp:
12/27/12 16:44:08 (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...

Reference epoch for frequency frame conversion is taken from header
which is set as start time of the observation (OBSERVATION/TIME_RANGE[0]
for MS, ExecBlock/startTime for ASDM).


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MSFiller.cpp

    r2580 r2710  
    361361      Vector<MEpoch> amp ;
    362362      getArrayMeas( "TIME_RANGE", (uInt)columnValue, obstab, amp ) ;
    363       header.utc = amp[0].get( "d" ).getValue() ;
     363      obsEpoch = amp[0];
     364      header.utc = obsEpoch.get( "d" ).getValue() ;
    364365    }
    365366    if ( header.antennaname.empty() )
     
    435436    map<Int,uInt>::iterator iter = ifmap.find( spwId ) ;
    436437    if ( iter == ifmap.end() ) {
    437       MEpoch me ;
    438       getScalarMeas( "TIME", recordNo, table, me ) ;
    439       spectralSetup( spwId, me, antpos, sourceDir,
    440                      freqId, nchan,
    441                      freqref, reffreq, bandwidth ) ;
     438      //MEpoch me ;
     439      //getScalarMeas( "TIME", recordNo, table, me ) ;
     440      //spectralSetup( spwId, me, antpos, sourceDir,
     441      spectralSetup(spwId, obsEpoch, antpos, sourceDir,
     442                    freqId, nchan,
     443                    freqref, reffreq, bandwidth);
    442444      ifmap.insert( pair<Int,uInt>(spwId,freqId) ) ;
    443445    }
     
    12651267  MPosition antpos;
    12661268  MEpoch currentTime;
     1269  MEpoch obsEpoch;
    12671270  MeasFrame mf;
    12681271  MDirection::Convert toj2000;
Note: See TracChangeset for help on using the changeset viewer.