Changeset 172 for trunk/python
- Timestamp:
- 01/06/05 14:20:34 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapmath.py
r167 r172 92 92 """ 93 93 Return a scan where all spectra have been binned up 94 width 94 width: The bin width (default=5) in pixels 95 95 insitu: if False (default) a new scantable is returned. 96 96 Otherwise, the addition is done in-situ … … 108 108 Average the Polarisations together. 109 109 Parameters: 110 scan - ascantable111 mask - an optional mask defining the region, where the112 averaging will be applied. The output will have all113 specified points masked.114 insitu: if False (default) a new scantable is returned.110 scan: The scantable 111 mask: An optional mask defining the region, where the 112 averaging will be applied. The output will have all 113 specified points masked. 114 insitu: If False (default) a new scantable is returned. 115 115 Otherwise, the averaging is done in-situ 116 116 Example: … … 127 127 return 128 128 129 def hanning(scan ):129 def hanning(scan, insitu=False): 130 130 """ 131 131 Hanning smooth the channels. 132 132 Parameters: 133 scan - the input scan 133 scan: The input scan 134 insitu: If False (default) a new scantable is returned. 135 Otherwise, the scaling is done in-situ 136 134 137 Example: 135 138 none 136 139 """ 137 from asap._asap import hanning as _han 138 return scantable(_han(scan)) 139 140 if not insitu: 141 from asap._asap import hanning as _hann 142 return scantable(_hann(scan)) 143 else: 144 from asap._asap import hanning_insitu as _hann 145 _hann(scan) 146 return 140 147 141 148 def poly_baseline(scan, mask=None, order=0):
Note:
See TracChangeset
for help on using the changeset viewer.