Changeset 269


Ignore:
Timestamp:
01/23/05 19:24:16 (20 years ago)
Author:
kil064
Message:

add function 'align'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapmath.py

    r258 r269  
    195195        from asap._asap import gainel_insitu as _gainEl
    196196        _gainEl(scan, poly, filename, method, allaxes)
     197        return
     198       
     199def align(scan, insitu=None):
     200    """
     201        scan:        a scantable
     202        insitu:      if False a new scantable is returned.
     203                     Otherwise, the scaling is done in-situ
     204                     The default is taken from .asaprc (False)
     205    """
     206    if insitu is None: insitu = rcParams['insitu']
     207    if not insitu:
     208        from asap._asap import align as _align
     209        return scantable(_align(scan))
     210    else:
     211        from asap._asap import align_insitu as _align
     212        _align(scan)
    197213        return
    198214       
Note: See TracChangeset for help on using the changeset viewer.