- Timestamp:
- 03/24/06 13:43:33 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapmath.py
r918 r930 16 16 (integration time weighted) or 'tintsys' (Tsys 17 17 and tint). The default is 'tint' 18 align: align the spectra in velocity before averaging. It takes 19 the time of the first spectrum in the first scantable 20 as reference time. 18 21 Example: 19 22 # return a time averaged scan from scana and scanb … … 24 27 scanav = average_time(scan, scanav=True) 25 28 """ 26 scan Av = False29 scanav = False 27 30 if kwargs.has_key('scanav'): 28 scan Av = kwargs.get('scanav')31 scanav = kwargs.get('scanav') 29 32 weight = 'tint' 30 33 if kwargs.has_key('weight'): … … 33 36 if kwargs.has_key('mask'): 34 37 mask = kwargs.get('mask') 38 align = False 39 if kwargs.has_key('align'): 40 align = kwargs.get('align') 35 41 varlist = vars() 36 42 if isinstance(args[0],list): … … 57 63 if scanAv: scanAv = "SCAN" 58 64 else: scanAv = "NONE" 59 s = scantable(stm._average(lst, mask, weight, scan Av, False))65 s = scantable(stm._average(lst, mask, weight, scanav, align)) 60 66 s._add_history("average_time",varlist) 61 67 print_log()
Note:
See TracChangeset
for help on using the changeset viewer.