Ignore:
Timestamp:
02/06/13 13:13:20 (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...

Added new option, freqref, to NRO filler. Posible values are:
1) 'rest' to import frequency in REST frame, which results in an exactly
same frequency label as NEWSTAR, and 2) 'vref' to import frequency
in the frame that source velocity refers, which results in the same
velocity label as NEWSTAR. The option must be given to scantable
constructor.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/external-alma/atnf/PKSIO/NROReader.h

    r2643 r2761  
    4242#include <casa/BasicSL/String.h>
    4343#include <measures/Measures/MPosition.h>
     44#include <measures/Measures/MEpoch.h>
    4445#include <measures/Measures/MCPosition.h>
    4546#include <measures/Measures/MDirection.h>
     
    5657#include <atnf/PKSIO/NRODataset.h>
    5758#include <atnf/PKSIO/NRODataRecord.h>
    58 
    59 using namespace std ;
    6059
    6160// <summary>
     
    103102  // Destructor.
    104103  virtual ~NROReader() ;
     104
     105  // determine whether to import frequency as REST (frequency is same as
     106  // NEWSTAR/NOSTAR) or as is (velocity is same as NEWSTAR/NOSTAR)
     107  void setFreqRefFromVREF( bool fromVREF ) ;
    105108
    106109  // Read data header
     
    133136                           uInt &beamno,
    134137                           uInt &polno,
    135                            vector<double> &freqs,   
     138                           std::vector<double> &freqs,   
    136139                           Vector<Double> &restfreq, 
    137140                           uInt &refbeamno,
     
    171174
    172175  // Get IF settings
    173   virtual vector<Bool> getIFs() ;
     176  virtual std::vector<Bool> getIFs() ;
    174177
    175178  // Get Number of IFs
     
    177180
    178181  // Get Beam settings
    179   virtual vector<Bool> getBeams() ;
     182  virtual std::vector<Bool> getBeams() ;
    180183
    181184  // Get Number of Beams
     
    188191
    189192  // Get spectrum
    190   virtual vector< vector<double> > getSpectrum() ;
     193  virtual std::vector< std::vector<double> > getSpectrum() ;
    191194
    192195  // Get number of polarization
     
    196199  virtual double getStartTime() ;
    197200  virtual double getEndTime() ;
    198   virtual vector<double> getStartIntTime() ;
     201  virtual std::vector<double> getStartIntTime() ;
    199202  //virtual double getStartIntTime( int i ) ;
    200203
    201204  // Get Antenna Position in ITRF coordinate
    202   virtual vector<double> getAntennaPosition() = 0 ;
     205  virtual std::vector<double> getAntennaPosition() = 0 ;
    203206
    204207  // Get SRCDIRECTION in RADEC(J2000)
     
    209212  virtual void initConvert( int icoord, double t, char *epoch ) ;
    210213
     214  // Shift frequency by given velocity with respect to specified
     215  // velocity reference
     216  std::vector<double> shiftFrequency( const std::vector<double> &f, const double &v, const string &vref ) ;
     217
    211218  // filename
    212219  string filename_ ;
     
    222229  CountedPtr<MDirection::Convert> converter_ ;
    223230  CountedPtr<MeasFrame> mf_ ;
     231  MEpoch me_ ;
     232  MPosition mp_ ;
    224233  int coord_ ;
    225234
     235  bool freqRefFromVREF_ ;
     236
    226237  // Logger
    227   //LogIO os ;
     238  LogIO os_ ;
    228239};
    229240
Note: See TracChangeset for help on using the changeset viewer.