Ignore:
Timestamp:
01/09/13 19:27:23 (11 years ago)
Author:
Takeshi Nakazato
Message:

New Development: Yes

JIRA Issue: Yes CAS-4770 and its sub-tickets

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

First version of applycal for single dish calibration.
Added new classes for the operation (STApplyCal, Calibrator, PSAlmaCalibrator,
Locator, BisectionLocator?, Interpolator1D, NearestInterpolator1D).
Also, modified existing classes to fit with implementation of applycal.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STApplyTable.h

    r2703 r2720  
    2222#include "Scantable.h"
    2323#include "STSelector.h"
     24#include "STCalEnum.h"
    2425
    2526namespace asap {
     
    3637  STApplyTable() {;}
    3738  STApplyTable(const Scantable& parent, const casa::String& name);
     39  STApplyTable(const casa::String &name);
    3840
    3941  virtual ~STApplyTable();
     
    5557  virtual void attachOptionalColumns() = 0;
    5658
    57   casa::Int nrow() {return table_.nrow();}
     59  casa::uInt nrow() {return table_.nrow();}
    5860
    5961  casa::Vector<casa::uInt> getScan() {return scanCol_.getColumn();}
     
    6466  casa::Vector<casa::Double> getTime() {return timeCol_.getColumn();}
    6567
    66   void setSelection(STSelector &sel);
     68  void setSelection(STSelector &sel, bool sortByTime=false);
    6769  void unsetSelection();
     70  casa::String caltype();
    6871
    6972  void save(const casa::String &name);
     73
     74  virtual casa::uInt nchan(casa::uInt ifno) = 0;
     75
     76  // static methods
     77  static STCalEnum::CalType getCalType(const casa::String &name);
     78  static STCalEnum::CalType getCalType(casa::CountedPtr<STApplyTable> tab);
     79  static STCalEnum::CalType getCalType(STApplyTable *tab);
    7080
    7181protected:
    7282  void setbasedata(casa::uInt irow, casa::uInt scanno, casa::uInt cycleno,
    7383                   casa::uInt beamno, casa::uInt ifno, casa::uInt polno,
    74                    casa::Double time);
     84                   casa::uInt freqid, casa::Double time);
     85  casa::Block<casa::Double> getFrequenciesRow(casa::uInt id);
    7586
    7687  casa::Table table_, originaltable_;
    77   casa::ScalarColumn<casa::uInt> scanCol_, cycleCol_, beamCol_, ifCol_, polCol_;
     88  casa::ScalarColumn<casa::uInt> scanCol_, cycleCol_, beamCol_, ifCol_, polCol_, freqidCol_;
    7889  casa::ScalarColumn<casa::Double> timeCol_;
    7990  casa::MEpoch::ScalarColumn timeMeasCol_;
     
    8293
    8394private:
     95  static STCalEnum::CalType stringToType(const casa::String &caltype);
    8496};
    8597
Note: See TracChangeset for help on using the changeset viewer.