Changeset 174


Ignore:
Timestamp:
01/06/05 16:40:01 (20 years ago)
Author:
kil064
Message:

add cursor selection to function 'hanning'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapmath.py

    r172 r174  
    127127        return
    128128   
    129 def hanning(scan, insitu=False):
     129def hanning(scan, insitu=False, all=True):
    130130    """
    131131    Hanning smooth the channels.
     
    134134        insitu:     If False (default) a new scantable is returned.
    135135                    Otherwise, the scaling is done in-situ
    136 
     136        all:         if True (default) apply to all spectra. Otherwise
     137                     apply only to the selected (beam/pol/if)spectra only
    137138    Example:
    138139         none
     
    140141    if not insitu:
    141142        from asap._asap import hanning as _hann
    142         return scantable(_hann(scan))
     143        return scantable(_hann(scan,all))
    143144    else:
    144145        from asap._asap import hanning_insitu as _hann
    145         _hann(scan)
     146        _hann(scan,all)
    146147        return
    147148   
Note: See TracChangeset for help on using the changeset viewer.