Changeset 1987 for trunk/src/MSFiller.h


Ignore:
Timestamp:
02/02/11 13:15:19 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-2718

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

Improved MSFiller/MSWriter.
Changed Scantable::get_antennaName() to fit with MSFiller/MSWriter.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MSFiller.h

    r1974 r1987  
    1616// STL
    1717#include <string>
     18
     19// Boost
     20#include <boost/pool/object_pool.hpp>
     21
    1822// AIPS++
    1923#include <casa/aips.h>
    2024#include <casa/Utilities/CountedPtr.h>
    2125#include <casa/Arrays/Vector.h>
     26#include <casa/Arrays/Matrix.h>
    2227#include <casa/Logging/LogIO.h>
    2328
    2429#include <casa/Containers/Record.h>
    25 #include <tables/Tables/RefRows.h>
     30
     31//#include <tables/Tables/TableColumn.h>
    2632
    2733#include <ms/MeasurementSets/MeasurementSet.h>
    28 #include <ms/MeasurementSets/MSColumns.h>
     34#include <ms/MeasurementSets/MSPointing.h>
    2935
    3036#include "Scantable.h"
     
    5965  //void fillHistory() ;
    6066  //void fillFit() ;
    61   void fillTcal() ;
    62 
    63   // fill ID columns
    64   void fillId( casa::uInt idx, const char *colname, casa::RefRows &rows ) ;
    65   void fillId( casa::Int idx, const char *colname, casa::RefRows &rows ) ;
     67  void fillTcal( boost::object_pool<casa::ROTableColumn> *pool ) ;
    6668
    6769  // get SRCTYPE from STATE_ID
    68   casa::Int getSrcType( casa::Int stateId ) ;
     70  casa::Int getSrcType( casa::Int stateId, boost::object_pool<casa::ROTableColumn> *pool ) ;
     71  //casa::Int getSrcType( casa::Int stateId ) ;
    6972
    7073  // get POLNO from CORR_TYPE
     
    8588  // assume that tab is selected by ANTENNA_ID, FEED_ID, SPECTRAL_WINDOW_ID
    8689  // and sorted by TIME
    87   casa::uInt getTsys( casa::uInt idx, casa::Array<casa::Float> &tsys, casa::MSSysCal &tab, casa::Double t ) ;
     90  casa::uInt getTsys( casa::uInt idx, casa::Matrix<casa::Float> &tsys, casa::MSSysCal &tab, casa::Double t ) ;
    8891
    8992  // get TCAL_ID
     
    9194
    9295  // get direction for DIRECTION, AZIMUTH, and ELEVATION columns
    93   casa::uInt getDirection( casa::uInt idx, casa::Vector<casa::Double> &dir, casa::Vector<casa::Double> &srate, casa::String &ref, casa::ROMSPointingColumns &cols, casa::Double t ) ;
     96  casa::uInt getDirection( casa::uInt idx, casa::Vector<casa::Double> &dir, casa::Vector<casa::Double> &srate, casa::String &ref, casa::MSPointing &tab, casa::Double t ) ;
    9497 
    9598  casa::CountedPtr<Scantable> table_ ;
    9699  casa::MeasurementSet mstable_ ;
    97   casa::MeasurementSet tablesel_ ;
     100  casa::String tablename_ ;
    98101  casa::Int antenna_ ;
    99102  casa::Bool getPt_ ;
     
    115118  casa::Vector<casa::Double> mwInterval_ ;
    116119
     120  // Record for TCAL_ID
     121  // "FIELD0": "SPW0": Vector<uInt>
     122  //           "SPW1": Vector<uInt>
     123  //  ...
    117124  casa::Record tcalrec_ ;
     125
     126  //casa::ROTableColumn *scCol_ ;
    118127};
    119128
Note: See TracChangeset for help on using the changeset viewer.