Ignore:
Timestamp:
06/12/12 18:45:52 (12 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...

Rewrote cwcal based on update of almacal.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/hpc33/src/STMath.h

    r2560 r2563  
    403403
    404404  vector<float> getSpectrumFromTime( string reftime, casa::CountedPtr<Scantable>& s, string mode = "before" ) ;
    405   casa::Vector<casa::Float> getSpectrumFromTime( double reftime, casa::Vector<casa::Double> &v, const casa::CountedPtr<Scantable>& s, string mode = "before" ) ;
    406   casa::Vector<casa::Float> getSpectrumFromTime( double reftime, const casa::Vector<casa::Double> &v, const casa::Matrix<casa::Float>& sp, string mode = "before" ) ;
    407   void getSpectrumFromTime2( casa::Vector<casa::Float> &sp, double reftime, casa::Vector<casa::Double> &v, const casa::CountedPtr<Scantable>& s, string mode = "before" ) ;
     405  casa::Vector<casa::Float> getSpectrumFromTime( double reftime, const casa::Vector<casa::Double> &v, const vector<int> &idx, const casa::Matrix<casa::Float>& sp, string mode = "before" ) ;
    408406  vector<float> getTcalFromTime( string reftime, casa::CountedPtr<Scantable>& s, string mode="before" ) ;
     407  casa::Vector<casa::Float> getTcalFromTime( double reftime, const casa::Vector<casa::Double> &v, const vector<int> &idx, const casa::CountedPtr<Scantable>& s, string mode="before" ) ;
    409408  vector<float> getTsysFromTime( string reftime, casa::CountedPtr<Scantable>& s, string mode="before" ) ;
     409  casa::Vector<casa::Float> getTsysFromTime( double reftime, const casa::Vector<casa::Double> &v, const vector<int> &idx, const casa::CountedPtr<Scantable>& s, string mode="before" ) ;
    410410  vector<int> getRowIdFromTime( string reftime, casa::CountedPtr<Scantable>& s ) ;
    411411  vector<int> getRowIdFromTime( double reftime, const casa::Vector<casa::Double>& t ) ;
    412412
    413413  // Chopper-Wheel type calibration
     414  void calibrateCW( casa::CountedPtr<Scantable> &out,
     415                    const casa::CountedPtr<Scantable> &on,
     416                    const casa::CountedPtr<Scantable> &off,
     417                    const casa::CountedPtr<Scantable> &sky,
     418                    const casa::CountedPtr<Scantable> &hot,
     419                    const casa::CountedPtr<Scantable> &cold,
     420                    const casa::Vector<casa::uInt> &rows,
     421                    const casa::String &antname ) ;
    414422  vector<float> getCalibratedSpectra( casa::CountedPtr<Scantable>& on,
    415423                                      casa::CountedPtr<Scantable>& off,
     
    420428                                      string antname ) ;
    421429  // Tsys * (ON-OFF)/OFF
    422   vector<float> getCalibratedSpectra( casa::CountedPtr<Scantable>& on,
    423                                       casa::CountedPtr<Scantable>& off,
    424                                       int index ) ;
    425430  void calibrateALMA( casa::CountedPtr<Scantable>& out,
    426431                      const casa::CountedPtr<Scantable>& on,
    427432                      const casa::CountedPtr<Scantable>& off,
    428                       casa::Vector<casa::uInt>& rows ) ;
     433                      const casa::Vector<casa::uInt>& rows ) ;
    429434  vector<float> getFSCalibratedSpectra( casa::CountedPtr<Scantable>& sig,
    430435                                        casa::CountedPtr<Scantable>& ref,
Note: See TracChangeset for help on using the changeset viewer.