- Timestamp:
- 03/01/05 12:40:30 (20 years ago)
- Location:
- trunk/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapmath.py
r520 r524 11 11 scanav: True (default) averages each scan separately 12 12 False averages all scans together, 13 weight: Weighting scheme. 'none ' (default), 'var' (1/var(spec)13 weight: Weighting scheme. 'none, 'var' (1/var(spec) 14 14 weighted), 'tsys' (1/Tsys**2 weighted), or 'tint' 15 (integration time weighted) 15 (integration time weighted). The default is 'tint' 16 16 Example: 17 17 # return a time averaged scan from scana and scanb … … 26 26 if kwargs.has_key('scanav'): 27 27 scanAv = kwargs.get('scanav') 28 weight = ' none'28 weight = 'tint' 29 29 if kwargs.has_key('weight'): 30 30 weight = kwargs.get('weight') -
trunk/python/scantable.py
r523 r524 744 744 # 745 745 746 def average_time(self, mask=None, scanav=True, weight= None):746 def average_time(self, mask=None, scanav=True, weight='tint'): 747 747 """ 748 748 Return the (time) average of a scan, or apply it 'insitu'. … … 756 756 scanav: True (default) averages each scan separately 757 757 False averages all scans together, 758 weight: Weighting scheme. 'none' (default), 'var' (1/var(spec)758 weight: Weighting scheme. 'none', 'var' (1/var(spec) 759 759 weighted), 'tsys' (1/Tsys**2 weighted), or 'tint' 760 (integration time weighted) 760 (integration time weighted). The default is 761 'tint' 761 762 Example: 762 763 # time average the scantable without using a mask … … 764 765 """ 765 766 varlist = vars() 766 if weight is None: weight = ' none'767 if weight is None: weight = 'tint' 767 768 if mask is None: mask = () 768 769 from asap._asap import average as _av
Note:
See TracChangeset
for help on using the changeset viewer.