Changeset 785 for branches/Release12/python
- Timestamp:
- 12/07/05 16:52:44 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Release12/python/scantable.py
r784 r785 1055 1055 return 1056 1056 1057 def poly_baseline(self, mask=None, order=0, insitu=None ):1057 def poly_baseline(self, mask=None, order=0, insitu=None, allaxes=None): 1058 1058 """ 1059 1059 Return a scan which has been baselined (all rows) by a polynomial. 1060 1060 Parameters: 1061 scan: a scantable 1062 mask: an optional mask 1063 order: the order of the polynomial (default is 0) 1064 insitu: if False a new scantable is returned. 1065 Otherwise, the scaling is done in-situ 1066 The default is taken from .asaprc (False) 1061 scan: a scantable 1062 mask: an optional mask 1063 order: the order of the polynomial (default is 0) 1064 insitu: if False a new scantable is returned. 1065 Otherwise, the scaling is done in-situ 1066 The default is taken from .asaprc (False) 1067 allaxes: If True (default) apply to all spectra. Otherwise 1068 apply only to the selected (beam/pol/if)spectra only 1069 The default is taken from .asaprc (True if none) 1067 1070 Example: 1068 1071 # return a scan baselined by a third order polynomial, … … 1070 1073 bscan = scan.poly_baseline(order=3) 1071 1074 """ 1075 if allaxes is None: allaxes = rcParams['scantable.allaxes'] 1072 1076 if insitu is None: insitu = rcParams['insitu'] 1073 1077 varlist = vars()
Note:
See TracChangeset
for help on using the changeset viewer.