Ignore:
Timestamp:
06/13/12 18:08:22 (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 calibration for frequency switch observation based on almacal code.


File:
1 edited

Legend:

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

    r2563 r2566  
    402402    flagsFromMA(const casa::MaskedArray<casa::Float>& ma);
    403403
    404   vector<float> getSpectrumFromTime( string reftime, casa::CountedPtr<Scantable>& s, string mode = "before" ) ;
    405404  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" ) ;
    406   vector<float> getTcalFromTime( string reftime, casa::CountedPtr<Scantable>& s, string mode="before" ) ;
    407405  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" ) ;
    408   vector<float> getTsysFromTime( string reftime, casa::CountedPtr<Scantable>& s, string mode="before" ) ;
    409406  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" ) ;
    410   vector<int> getRowIdFromTime( string reftime, casa::CountedPtr<Scantable>& s ) ;
    411407  vector<int> getRowIdFromTime( double reftime, const casa::Vector<casa::Double>& t ) ;
    412408
     
    420416                    const casa::Vector<casa::uInt> &rows,
    421417                    const casa::String &antname ) ;
    422   vector<float> getCalibratedSpectra( casa::CountedPtr<Scantable>& on,
    423                                       casa::CountedPtr<Scantable>& off,
    424                                       casa::CountedPtr<Scantable>& sky,
    425                                       casa::CountedPtr<Scantable>& hot,
    426                                       casa::CountedPtr<Scantable>& cold,
    427                                       int index,
    428                                       string antname ) ;
     418
    429419  // Tsys * (ON-OFF)/OFF
    430420  void calibrateALMA( casa::CountedPtr<Scantable>& out,
     
    432422                      const casa::CountedPtr<Scantable>& off,
    433423                      const casa::Vector<casa::uInt>& rows ) ;
    434   vector<float> getFSCalibratedSpectra( casa::CountedPtr<Scantable>& sig,
    435                                         casa::CountedPtr<Scantable>& ref,
    436                                         casa::CountedPtr<Scantable>& sky,
    437                                         casa::CountedPtr<Scantable>& hot,
    438                                         casa::CountedPtr<Scantable>& cold,
    439                                         int index ) ;
    440   vector<float> getFSCalibratedSpectra( casa::CountedPtr<Scantable>& sig,
    441                                         casa::CountedPtr<Scantable>& ref,
    442                                         vector< casa::CountedPtr<Scantable> >& sky,
    443                                         vector< casa::CountedPtr<Scantable> >& hot,
    444                                         vector< casa::CountedPtr<Scantable> >& cold,
    445                                         int index ) ;
    446   double getMJD( string strtime ) ;
     424
     425  // Frequency switching
     426  void calibrateFS( casa::CountedPtr<Scantable> &sig,
     427                    casa::CountedPtr<Scantable> &ref,
     428                    const casa::CountedPtr<Scantable> &rsig,
     429                    const casa::CountedPtr<Scantable> &rref,
     430                    const casa::CountedPtr<Scantable> &sky,
     431                    const casa::CountedPtr<Scantable> &hot,
     432                    const casa::CountedPtr<Scantable> &cold,
     433                    const casa::Vector<casa::uInt> &rows ) ;
     434  void calibrateAPEXFS( casa::CountedPtr<Scantable> &sig,
     435                        casa::CountedPtr<Scantable> &ref,
     436                        const vector< casa::CountedPtr<Scantable> > &on,
     437                        const vector< casa::CountedPtr<Scantable> > &sky,
     438                        const vector< casa::CountedPtr<Scantable> > &hot,
     439                        const vector< casa::CountedPtr<Scantable> > &cold,
     440                        const casa::Vector<casa::uInt> &rows ) ;
    447441  void copyRows( casa::Table &out,
    448442                 const casa::Table &in,
Note: See TracChangeset for help on using the changeset viewer.