Changeset 489 for trunk/python/scantable.py
- Timestamp:
- 02/21/05 11:38:19 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r484 r489 27 27 (input rpfits/sdfits/ms) or replaces the value 28 28 in existing scantables 29 """ 29 """ 30 if average is None or type(average) is not bool: 31 average = rcParams['scantable.autoaverage'] 32 30 33 varlist = vars() 31 34 self._vb = rcParams['verbose'] 32 35 self._p = None 33 34 if average is None or type(average) is not bool:35 autoav = rcParams['scantable.autoaverage']36 36 37 37 if isinstance(filename,sdtable): … … 64 64 if unit is not None: 65 65 tbl.set_fluxunit(unit) 66 if a utoav:67 from asap._asap import average 66 if average: 67 from asap._asap import average as _av 68 68 tmp = tuple([tbl]) 69 69 print 'Auto averaging integrations...' 70 tbl2 = average(tmp,(),True,'none')70 tbl2 = _av(tmp,(),True,'none') 71 71 sdtable.__init__(self,tbl2) 72 72 del r,tbl … … 81 81 Parameters: 82 82 name: the name of the outputfile. For format="FITS" this 83 is the directory file name into which all the files will84 be written (default is 'asap_FITS')83 is the directory file name into which all the files 84 will be written (default is 'asap_FITS') 85 85 format: an optional file format. Default is ASAP. 86 86 Allowed are - 'ASAP' (save as ASAP [aips++] Table), … … 90 90 'MS2' (saves as an aips++ 91 91 MeasurementSet V2) 92 stokes: Convert to Stokes parameters. Default is False. 92 stokes: Convert to Stokes parameters (only available 93 currently with FITS and ASCII formats. 94 Default is False. 93 95 overwrite: If the file should be overwritten if it exists. 94 96 The default False is to return with warning … … 711 713 print "-"*80 712 714 for h in hist: 713 items = h.split("##") 714 date = items[0] 715 func = items[1] 716 items = items[2:] 717 print date 718 print "Function: %s\n Parameters:" % (func) 719 for i in items: 720 s = i.split("=") 721 print " %s: %s" % (s[0],s[1]) 722 print "-"*80 715 if h.startswith("---"): 716 print h 717 else: 718 items = h.split("##") 719 date = items[0] 720 func = items[1] 721 items = items[2:] 722 print date 723 print "Function: %s\n Parameters:" % (func) 724 for i in items: 725 s = i.split("=") 726 print " %s = %s" % (s[0],s[1]) 727 print "-"*80 723 728 return 724 729
Note: See TracChangeset
for help on using the changeset viewer.