Changeset 319 for trunk/python
- Timestamp:
- 01/28/05 14:47:22 (21 years ago)
- File:
- 
      - 1 edited
 
 - 
          
  trunk/python/asapmath.py (modified) (3 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      trunk/python/asapmath.pyr316 r319 204 204 return 205 205 206 def freq_align(scan, reftime=None, insitu=None):206 def freq_align(scan, reftime=None, method='cubic', insitu=None): 207 207 """ 208 208 Return a scan where all rows have been aligned in frequency. The … … 212 212 reftime: reference time to align at. By default, the time of 213 213 the first row of data is used. 214 method: Interpolation method for regridding the spectra. Choose 215 from "nearest", "linear", "cubic" (default) and "spline" 214 216 insitu: if False a new scantable is returned. 215 217 Otherwise, the scaling is done in-situ … … 220 222 if not insitu: 221 223 from asap._asap import freq_align as _align 222 return scantable(_align(scan, reftime ))224 return scantable(_align(scan, reftime, method)) 223 225 else: 224 226 from asap._asap import freq_align_insitu as _align 225 _align(scan, reftime )227 _align(scan, reftime, method) 226 228 return 227 229 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
