Changeset 2580 for trunk/src/STMath.h


Ignore:
Timestamp:
06/28/12 14:22:10 (12 years ago)
Author:
ShinnosukeKawakami
Message:

hpc33 merged asap-trunk

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src

  • trunk/src/STMath.h

    r2186 r2580  
    402402    flagsFromMA(const casa::MaskedArray<casa::Float>& ma);
    403403
    404   vector<float> getSpectrumFromTime( string reftime, casa::CountedPtr<Scantable>& s, string mode = "before" ) ;
    405   vector<float> getTcalFromTime( string reftime, casa::CountedPtr<Scantable>& s, string mode="before" ) ;
    406   vector<float> getTsysFromTime( string reftime, casa::CountedPtr<Scantable>& s, string mode="before" ) ;
    407   vector<int> getRowIdFromTime( string reftime, casa::CountedPtr<Scantable>& s ) ;
     404  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" ) ;
     405  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" ) ;
     406  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" ) ;
     407  vector<int> getRowIdFromTime( double reftime, const casa::Vector<casa::Double>& t ) ;
    408408
    409409  // Chopper-Wheel type calibration
    410   vector<float> getCalibratedSpectra( casa::CountedPtr<Scantable>& on,
    411                                       casa::CountedPtr<Scantable>& off,
    412                                       casa::CountedPtr<Scantable>& sky,
    413                                       casa::CountedPtr<Scantable>& hot,
    414                                       casa::CountedPtr<Scantable>& cold,
    415                                       int index,
    416                                       string antname ) ;
     410  void calibrateCW( casa::CountedPtr<Scantable> &out,
     411                    const casa::CountedPtr<Scantable> &on,
     412                    const casa::CountedPtr<Scantable> &off,
     413                    const casa::CountedPtr<Scantable> &sky,
     414                    const casa::CountedPtr<Scantable> &hot,
     415                    const casa::CountedPtr<Scantable> &cold,
     416                    const casa::Vector<casa::uInt> &rows,
     417                    const casa::String &antname ) ;
     418
    417419  // Tsys * (ON-OFF)/OFF
    418   vector<float> getCalibratedSpectra( casa::CountedPtr<Scantable>& on,
    419                                       casa::CountedPtr<Scantable>& off,
    420                                       int index ) ;
    421   vector<float> getFSCalibratedSpectra( casa::CountedPtr<Scantable>& sig,
    422                                         casa::CountedPtr<Scantable>& ref,
    423                                         casa::CountedPtr<Scantable>& sky,
    424                                         casa::CountedPtr<Scantable>& hot,
    425                                         casa::CountedPtr<Scantable>& cold,
    426                                         int index ) ;
    427   vector<float> getFSCalibratedSpectra( casa::CountedPtr<Scantable>& sig,
    428                                         casa::CountedPtr<Scantable>& ref,
    429                                         vector< casa::CountedPtr<Scantable> >& sky,
    430                                         vector< casa::CountedPtr<Scantable> >& hot,
    431                                         vector< casa::CountedPtr<Scantable> >& cold,
    432                                         int index ) ;
    433   double getMJD( string strtime ) ;
     420  void calibrateALMA( casa::CountedPtr<Scantable>& out,
     421                      const casa::CountedPtr<Scantable>& on,
     422                      const casa::CountedPtr<Scantable>& off,
     423                      const casa::Vector<casa::uInt>& rows ) ;
     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 ) ;
     441  void copyRows( casa::Table &out,
     442                 const casa::Table &in,
     443                 casa::uInt startout,
     444                 casa::uInt startin,
     445                 casa::uInt nrow,
     446                 casa::Bool copySpectra=true,
     447                 casa::Bool copyFlagtra=true,
     448                 casa::Bool copyTsys=true ) ;
     449  casa::CountedPtr<Scantable> averageWithinSession( casa::CountedPtr<Scantable> &s,
     450                                                    vector<bool> &mask,
     451                                                    string weight ) ;
    434452
    435453  bool insitu_;
Note: See TracChangeset for help on using the changeset viewer.