Ignore:
Timestamp:
07/29/10 21:42:50 (14 years ago)
Author:
Malte Marquarding
Message:

make filler code compile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/newfiller/src/FillerBase.cpp

    r1778 r1780  
    1111//
    1212
    13 #include "FillberBase.h"
     13#include <casa/Containers/RecordField.h>
     14
     15#include "FillerBase.h"
    1416
    1517using namespace casa;
     
    1820{
    1921FillerBase::FillerBase() :
    20   table_(0),
     22  table_(0)
    2123{
    2224}
     
    3840  RecordFieldPtr<uInt> polCol(row_.record(), "POLNO");
    3941  RecordFieldPtr<uInt> cycleCol(row_.record(), "CYCLENO");
    40   RecordFieldPtr<uInt> scanColCol(row_.record(), "SCANNO");
     42  RecordFieldPtr<uInt> scanCol(row_.record(), "SCANNO");
    4143  *beamCol = beamno;
    4244  *cycleCol = cycleno;
     
    4749
    4850void FillerBase::setFrequency(Double refpix, Double refval,
    49                               Double incr);
     51                              Double incr)
    5052{
    5153  /// @todo this has to change when nchan isn't global anymore
     
    5759
    5860
    59 void FillerBase::setMolecule(Double restfreq)
     61void FillerBase::setMolecule(const Vector<Double>& restfreq)
    6062{
    61   uInt id = table_->molecules().addEntry(restfreq);
     63  Vector<String> tmp;
     64  uInt id = table_->molecules().addEntry(restfreq, tmp, tmp);
    6265  RecordFieldPtr<uInt> molidCol(row_.record(), "MOLECULE_ID");
    6366  *molidCol = id;
    6467}
    6568
    66 void FillerBase::setDirection(const Vector<Double>& dir.
     69void FillerBase::setDirection(const Vector<Double>& dir,
    6770                              Float az, Float el)
    6871{
     
    112115void FillerBase::setScanRate(const Vector<Double>& srate)
    113116{
    114 
    115117    RecordFieldPtr<Array<Double> > srateCol(row_.record(), "SCANRATE");
    116118    *srateCol = srate;
    117 
    118119}
    119120
     
    128129                           const Vector<Double>& dir,
    129130                           const Vector<Double>& propermot,
    130                           Double velocity)
     131                           Double velocity)
    131132{
    132133    RecordFieldPtr<String> srcnCol(row_.record(), "SRCNAME");
    133     *srnCol = name;
     134    *srcnCol = name;
    134135    RecordFieldPtr<Int> srctCol(row_.record(), "SRCTYPE");
    135136    *srctCol = type;
     
    137138    *fieldnCol = fieldname;
    138139    RecordFieldPtr<Array<Double> > spmCol(row_.record(), "SRCPROPERMOTION");
    139     *spmCol = pksrec.srcPM;
     140    *spmCol = propermot;
    140141    RecordFieldPtr<Array<Double> > sdirCol(row_.record(), "SRCDIRECTION");
    141     *sdirCol = pksrec.srcDir;
     142    *sdirCol = dir;
    142143    RecordFieldPtr<Double> svelCol(row_.record(), "SRCVELOCITY");
    143     *svelCol = pksrec.srcVel;
     144    *svelCol = velocity;
    144145}
    145146
Note: See TracChangeset for help on using the changeset viewer.