Changeset 313 for trunk


Ignore:
Timestamp:
01/27/05 21:53:42 (20 years ago)
Author:
kil064
Message:

replace velocity alignment bvy fredquemncy alignment function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapmath.py

    r305 r313  
    204204        return
    205205       
    206 def align(scan, reftime=None, insitu=None):
    207     """
    208         Return a scan where all rows have been aligned in velocity. The
    209         velocity reference frame (e.gh. LSRK), unit and doppler (e.g. OPTICAL)
    210         are those set by functions  set_unit and set_freqframe. 
     206def freq_align(scan, reftime=None, insitu=None):
     207    """
     208        Return a scan where all rows have been aligned in frequency. The
     209        alignment frequency frame (e.g. LSRK) is that set by function
     210        set_freqframe. 
    211211        scan:        a scantable
    212212        reftime:     reference time to align at. By default, the time of
     
    219219    if insitu is None: insitu = rcParams['insitu']
    220220    if not insitu:
    221         from asap._asap import align as _align
     221        from asap._asap import freq_align as _align
    222222        return scantable(_align(scan, reftime))
    223223    else:
    224         from asap._asap import align_insitu as _align
     224        from asap._asap import freq_align_insitu as _align
    225225        _align(scan, reftime)
    226226        return
Note: See TracChangeset for help on using the changeset viewer.