countrows

Return to directory of Todd's CASA extensions

Returns a dictionary keyed by scan number, with values equal to the number of rows in the measurement set. An additional key is 'total' which contains the total number of rows (sum of all scans). See also countflags.

Usage:

au.countrows(vis, ignoreIntent='')

Example:

CASA <5>: au.countrows('uid___A002_X946a23_X817_applyflags-wvr-corrected')
total rows =  7642458                                                     
  Out[5]:                                                                 
{1: 2322,                                                                 
 2: 75870,                                                                
 3: 412479,                                                               
 4: 2376,                                                                 
 5: 75924,                                                                
 6: 1374948,                                                              
 7: 75870,                                                                
 8: 343737,                                                               
 9: 75870,                                                                
 10: 36666,                                                               
 11: 75870,                                                               
 12: 109998,                                                              
 13: 36666,                                                               
 14: 109998,                                                              
 15: 36666,                                                               
 16: 109998,                                                              
 17: 36666,                                                               
 18: 109998,                                                              
 19: 36666,                                                               
 20: 109998,                                                              
 21: 36666,                                                               
 22: 109998,                                                              
 23: 75870,                                                               
 24: 36666,                                                               
 25: 2349,                                                                
 26: 75870,                                                               
 27: 412479,
 28: 2376,
 29: 75870,
 30: 36666,
 31: 75843,
 32: 109998,
 33: 36666,
 34: 109998,
 35: 36666,
 36: 109998,
 37: 36666,
 38: 109998,
 39: 36666,
 40: 109998,
 41: 36666,
 42: 109998,
 43: 75870,
 44: 36666,
 45: 75870,
 46: 109998,
 47: 36666,
 48: 109998,
 49: 36666,
 50: 109998,
 51: 36666,
 52: 109998,
 53: 36666,
 54: 109998,
 55: 36666,
 56: 109998,
 57: 75924,
 58: 36666,
 59: 75897,
 60: 109998,
 61: 36666,
 62: 109998,
 63: 36666,
 64: 2349,
 65: 75870,
 66: 412506,
 67: 2349,
 68: 75870,
 69: 36666,
 70: 2322,
 71: 75897,
 72: 412533,
 'total': 7642458}

-- ToddHunter - 2014-12-11
Topic revision: r1 - 2014-12-11, 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