Ignore:
Timestamp:
09/16/09 17:11:16 (15 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-1422

Ready to Release: Yes

Interface Changes: Yes

What Interface Changed: Defined calibrate() and almacal() in python/asapmath.py

Defined cwcal() in STMath class

Test Programs: List test programs

Put in Release Notes: Yes

Module(s): task_sdaverage

Description: Describe your changes here...

asapmath.py is changed to be able to calibrate data for APEX.
This modification is tentatively considered a calibration of ALMA
single-dish data. However, it must be updated in the future since
I don't know how raw ALMA data are provided and I have to change
code along with read ALMA data.

The calibrate() function takes calibration mode from its argument and
looks antenna name of the input scantable, and calls appropriate calibration
function depending on the calibration mode and antenna name.
If antenna name include 'APEX' or 'ALMA', newly defined calibration function
apexcal() is called. For other antenna name, one of the existing calibration
functions (calps, calnod, calfs, auto_quotient) is called.

File:
1 edited

Legend:

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

    r1609 r1633  
    200200
    201201  /**
     202   * Calibrate data with Chopper-Wheel like calibration method
     203   * which adopts position switching by antenna motion,
     204   * wobbler (nutator) switching and On-The-Fly observation.
     205   *
     206   * The method is applicable to APEX, and other telescopes other than GBT.
     207   *
     208   * @param a Scantable which contains ON and OFF scans
     209   * @param a string that indicates calibration mode
     210   * @param a string that indicates antenna name
     211   **/
     212  casa::CountedPtr<Scantable> cwcal( const casa::CountedPtr<Scantable>& s,
     213                                       const casa::String calmode,
     214                                       const casa::String antname );
     215
     216  /**
     217   * Calibrate frequency switched scans with Chopper-Wheel like
     218   * calibration method.
     219   *
     220   * The method is applicable to APEX, and other telescopes other than GBT.
     221   *
     222   * @param a Scantable which contains ON and OFF scans
     223   * @param a string that indicates antenna name
     224   **/
     225  casa::CountedPtr<Scantable> cwcalfs( const casa::CountedPtr<Scantable>& s,
     226                                       const casa::String antname );
     227
     228
     229  /**
    202230   * Folding frequency-switch data
    203231   * @param sig
     
    207235  casa::CountedPtr<Scantable> dofold( const casa::CountedPtr<Scantable> &sig,
    208236                                      const casa::CountedPtr<Scantable> &ref,
    209                                       casa::Int choffset );
     237                                      casa::Double choffset,
     238                                      casa::Double choffset = 0.0 );
    210239
    211240  casa::CountedPtr<Scantable>
     
    330359    flagsFromMA(const casa::MaskedArray<casa::Float>& ma);
    331360
     361  vector<float> getSpectrumFromTime( string reftime, casa::CountedPtr<Scantable>& s, string mode = "before" ) ;
     362  vector<float> getTcalFromTime( string reftime, casa::CountedPtr<Scantable>& s, string mode="before" ) ;
     363  vector<int> getRowIdFromTime( string reftime, casa::CountedPtr<Scantable>& s ) ;
     364  vector<float> getCalibratedSpectra( casa::CountedPtr<Scantable>& on,
     365                                      casa::CountedPtr<Scantable>& off,
     366                                      casa::CountedPtr<Scantable>& sky,
     367                                      casa::CountedPtr<Scantable>& hot,
     368                                      casa::CountedPtr<Scantable>& cold,
     369                                      int index,
     370                                      string antname ) ;
     371  vector<float> getFSCalibratedSpectra( casa::CountedPtr<Scantable>& sig,
     372                                        casa::CountedPtr<Scantable>& ref,
     373                                        casa::CountedPtr<Scantable>& sky,
     374                                        casa::CountedPtr<Scantable>& hot,
     375                                        casa::CountedPtr<Scantable>& cold,
     376                                        int index ) ;
     377  vector<float> getFSCalibratedSpectra( casa::CountedPtr<Scantable>& sig,
     378                                        casa::CountedPtr<Scantable>& ref,
     379                                        vector< casa::CountedPtr<Scantable> >& sky,
     380                                        vector< casa::CountedPtr<Scantable> >& hot,
     381                                        vector< casa::CountedPtr<Scantable> >& cold,
     382                                        int index ) ;
     383  double getMJD( string strtime ) ;
     384
    332385  bool insitu_;
    333386};
Note: See TracChangeset for help on using the changeset viewer.