checkSamplers

Return to directory of Todd's CASA extensions

Gets the TDM full-resolution spws for a dataset, finds the sky subscan timerange of each ATM cal scan, and computes the ratio of channel zero to the median (or minimum) of channels 1-3 (or otherwise specified). Ratios above the specified threshold are indicated with asterisks, and mean that the digitizer thresholds need to be re-optimized by the staff.

Usage:

au.checkSamplers(vis, state_id=None, ac=None, spws=None, threshold1=1.25, threshold2=2.0, maxChannel=3, maxScan=None, useMedian=False)
  • state_id: the state_id number to use for the sky subscan (default: row with REF=1,SIG=0)
  • ac: the Atmcal instance to use (default=None which means create a new one)
  • spws: the spws to consider (default=None which means use all spws)
  • threshold1: if ratio is above this, then print one pair of asterisks
  • threshold2: if ratio is above this, then print two pairs of asterisks
  • maxChannel: adjust the upper bound of the block of channels to take the median of
  • maxScan: the highest scan number to consider (default=None which means use all scans)
  • useMedian: default=False, if True, then take the median of channels 1..maxChannel as the denominator of the ratio, otherwise take the mininum

Return values:
  • dictionary containing the ratios, keyed by antenna name, then baseband number (1..4) with value = [XX,YY]

Example:

Antenna  BB0pol0   BB0pol1   BB1pol0   BB1pol1   BB2pol0   BB2pol1   BB3pol0   BB3pol1  
 0=CM01  * 1.31*   * 1.60*  ** 2.44** ** 2.17**  * 1.66*  ** 2.23**  * 1.73*   * 1.29* 
 1=CM03 ** 2.09** ** 2.31**    1.19    * 1.42*  ** 2.17**  * 1.33*   * 1.89*   * 1.92* 
 2=CM04    1.09    * 1.90*     1.13    * 1.61*  ** 3.24**  * 1.53*   * 1.40*     1.12  
 3=CM05 ** 2.08**    1.17   ** 2.83**    1.18   ** 2.08**  * 1.71*  ** 2.23**    0.98  
 4=CM06  * 1.90*     1.00   ** 4.43**    1.07   ** 2.60**    1.11   ** 2.45**    1.15  
 5=CM07    1.13      0.89    * 1.91*     0.79    * 1.56*     0.59    * 1.36*     0.81  
 6=CM08    1.13    * 1.37*   * 1.71*     1.07      1.22      0.88      1.14      0.93  
 7=CM12  * 1.37*     1.05   ** 2.50**    1.17   ** 2.23**    1.09    * 1.55*     0.97  
 8=DA42  * 1.65*     0.98   ** 4.10**    1.05    * 1.92*   * 1.27*  ** 2.25**    1.18  
 9=DA46  * 1.58*     1.05    * 1.91*     1.07    * 1.97*     0.97    * 1.25*     1.16  
10=DA47    0.96      0.93      1.20    * 1.88*   * 1.29*     1.17      1.01      0.99  
11=DA48    0.94      0.97      1.11      1.22      1.00      0.92      1.19      0.99  
12=DA51    1.25      0.81   ** 3.19**    0.73    * 1.46*     0.52      1.00      0.80  
13=DA52 ** 2.92**    1.00   ** 7.14**  * 1.47*  ** 4.43**  * 1.32*  ** 3.22**    1.04  
14=DA53  * 1.87*  ** 2.12**  * 1.98*  ** 2.94**    0.95    * 1.64*     0.94   ** 2.35**
15=DA54  * 1.44*     0.87   ** 3.24**  * 1.34*  ** 5.98**  * 1.34*   * 1.89*     0.91  
16=DA55    1.19      1.21   ** 3.06**  * 1.92*  ** 2.22**    0.98    * 1.64*     0.94  
17=DA56  * 1.47*     1.02   ** 2.89**  * 1.30*  ** 2.70**    1.05    * 1.77*     0.90  
18=DV01  * 1.95*     0.97   ** 2.14**    1.02   ** 2.52**    0.97    * 1.78*     0.92  
19=DV02 ** 2.30**  * 1.32*  ** 4.09**  * 1.43*  ** 2.00**    1.11   ** 2.08**    1.19  
20=DV03  * 2.00*     1.20   ** 3.17**    1.23   ** 2.17**    1.01   ** 2.73**  * 1.68* 

-- ToddHunter - 2013-10-17

This topic: ALMA > TWikiUsers > ToddHunter > CasaExtensions > CheckSamplers
Topic revision: 2013-11-07, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback