Changeset 399 for trunk


Ignore:
Timestamp:
02/09/05 13:08:34 (20 years ago)
Author:
kil064
Message:

add perif arg., to freq_align

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapmath.py

    r359 r399  
    212212        return
    213213       
    214 def freq_align(scan, reftime=None, method='cubic', insitu=None):
     214def freq_align(scan, reftime=None, method='cubic', perif=False, insitu=None):
    215215    """
    216216        Return a scan where all rows have been aligned in frequency. The
     
    222222        method:      Interpolation method for regridding the spectra. Choose
    223223                     from "nearest", "linear", "cubic" (default) and "spline"
     224        perif:       Generate aligners per freqID (no doppler tracking) or
     225                     per IF (scan-based doppler tracking)
    224226        insitu:      if False a new scantable is returned.
    225227                     Otherwise, the scaling is done in-situ
     
    228230    if reftime is None: reftime = ''
    229231    if insitu is None: insitu = rcParams['insitu']
     232    perfreqid = not perif
    230233    if not insitu:
    231234        from asap._asap import freq_align as _align
    232         return scantable(_align(scan, reftime, method))
     235        return scantable(_align(scan, reftime, method, perfreqid))
    233236    else:
    234237        from asap._asap import freq_align_insitu as _align
    235         _align(scan, reftime, method)
     238        _align(scan, reftime, method, perfreqid)
    236239        return
    237240       
Note: See TracChangeset for help on using the changeset viewer.