Changeset 2957 for trunk/python
- Timestamp:
- 06/26/14 17:42:59 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r2954 r2957 892 892 893 893 @asaplog_post_dec 894 def stats(self, stat='stddev', mask=None, form='3.3f', row=None ):894 def stats(self, stat='stddev', mask=None, form='3.3f', row=None, skip_flaggedrow=False): 895 895 """\ 896 896 Determine the specified statistic of the current beam/if/pol … … 910 910 row: row number of spectrum to process. 911 911 (default is None: for all rows) 912 913 skip_flaggedrow: if True, skip outputting text for flagged 914 spectra. default is False. 912 915 913 916 Example: … … 922 925 "number of channels. Please use setselection() " 923 926 "to select individual IFs") 924 rtnabc = False925 if stat.lower().endswith('_abc'): rtnabc = True926 927 getchan = False 927 928 if stat.lower().startswith('min') or stat.lower().startswith('max'): … … 929 930 getchan = True 930 931 statvals = [] 931 if not rtnabc: 932 933 rtnabc = False 934 if stat.lower().endswith('_abc'): 935 rtnabc = True 936 else: 932 937 if row == None: 933 938 statvals = self._math._stats(self, mask, stat) … … 952 957 953 958 for i in rows: 954 print '@@@@@@@@'955 print '['+str(i)+'/'+str(rows)+'] -- '+('RowFlagged' if self._getflagrow(i) else '')956 print '@@@@@@@@'957 #if self._getflagrow(i): continue958 959 refstr = '' 959 960 statunit= '' … … 966 967 else: 967 968 refstr = ('(@ %'+form) % (qx['value'])+' ['+qx['unit']+'])' 969 970 if skip_flaggedrow and self._getflagrow(i): continue 968 971 969 972 tm = self._gettime(i)
Note:
See TracChangeset
for help on using the changeset viewer.