Changeset 1586 for trunk/src/Scantable.h


Ignore:
Timestamp:
06/30/09 15:46:14 (15 years ago)
Author:
Malte Marquarding
Message:

Ticket #165: have removed the hard-coding of parallactifying the data. NOTE THIS breaks the Table structure as I have moved the PARANGLE column from the main table into the FOCUS table. We need to have a new release. Also one needs to explicitly tell the scantable via rc or member function to enable parallactifying

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.h

    r1441 r1586  
    298298    { return azCol_(whichrow); }
    299299  float getParAngle(int whichrow) const
    300     { return paraCol_(whichrow); }
     300  { return focus().getParAngle(mfocusidCol_(whichrow)); }
    301301
    302302  std::string getSourceName(int whichrow) const
     
    402402  std::vector<double> getDirectionVector(int whichrow) const;
    403403
     404  /**
     405   * Set a flag indicating whether the data was parallactified
     406   * @param[in] flag true or false
     407   */
     408  void parallactify(bool flag)
     409  {focus().setParallactify(flag);}
    404410private:
    405411
     
    451457  std::vector<uint> getNumbers(casa::ScalarColumn<casa::uInt>& col);
    452458
    453   static const casa::uInt version_ = 2;
     459  static const casa::uInt version_ = 3;
    454460
    455461  STSelector selector_;
     
    475481  casa::ScalarColumn<casa::Float> azCol_;
    476482  casa::ScalarColumn<casa::Float> elCol_;
    477   casa::ScalarColumn<casa::Float> paraCol_;
    478483  casa::ScalarColumn<casa::String> srcnCol_, fldnCol_;
    479484  casa::ScalarColumn<casa::uInt> scanCol_, beamCol_, ifCol_, polCol_, cycleCol_;
Note: See TracChangeset for help on using the changeset viewer.