Changeset 399
- Timestamp:
- 02/09/05 13:08:34 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapmath.py
r359 r399 212 212 return 213 213 214 def freq_align(scan, reftime=None, method='cubic', insitu=None):214 def freq_align(scan, reftime=None, method='cubic', perif=False, insitu=None): 215 215 """ 216 216 Return a scan where all rows have been aligned in frequency. The … … 222 222 method: Interpolation method for regridding the spectra. Choose 223 223 from "nearest", "linear", "cubic" (default) and "spline" 224 perif: Generate aligners per freqID (no doppler tracking) or 225 per IF (scan-based doppler tracking) 224 226 insitu: if False a new scantable is returned. 225 227 Otherwise, the scaling is done in-situ … … 228 230 if reftime is None: reftime = '' 229 231 if insitu is None: insitu = rcParams['insitu'] 232 perfreqid = not perif 230 233 if not insitu: 231 234 from asap._asap import freq_align as _align 232 return scantable(_align(scan, reftime, method ))235 return scantable(_align(scan, reftime, method, perfreqid)) 233 236 else: 234 237 from asap._asap import freq_align_insitu as _align 235 _align(scan, reftime, method )238 _align(scan, reftime, method, perfreqid) 236 239 return 237 240
Note:
See TracChangeset
for help on using the changeset viewer.