Changeset 2710


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


Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/external-alma/asdm2ASAP/ASDMFiller.cc

    r2407 r2710  
    6565  // header
    6666  fillHeader() ;
     67  const STHeader hdr = table_->getHeader();
    6768
    6869  // set Frame for FREQUENCIES table
     
    256257            refval = (double)toLSRK( casa::Double(refval),
    257258                                     String(freqref),
    258                                      mjd,
     259                                     hdr.utc,
    259260                                     antpos,
    260261                                     //direction,
  • 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.