Ignore:
Timestamp:
02/16/05 12:41:07 (19 years ago)
Author:
kil064
Message:

move scantable.rotate_xyphase to asapmath.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapmath.py

    r435 r458  
    383383    sf = f.auto_fit(insitu)
    384384    return sf
     385
     386def rotate_xyphase (scan, angle, allaxes=None):
     387    """
     388    Rotate the phase of the XY correlation.  This is always done in situ
     389    in the data.  So if you call this function more than once
     390    then each call rotates the phase further.
     391    Parameters:
     392        angle:   The angle (degrees) to rotate (add) by.
     393        allaxes: If True apply to all spectra. Otherwise
     394                 apply only to the selected (beam/pol/if)spectra only.
     395                 The default is taken from .asaprc (True if none)
     396    Examples:
     397        rotate_xyphase(scan, 2.3)
     398    """
     399    if allaxes is None: allaxes = rcParams['scantable.allaxes']
     400    from asap._asap import rotate_xyphase as _rotate_xyphase
     401    _rotate_xyphase(scan, angle, allaxes)
     402    return
     403
Note: See TracChangeset for help on using the changeset viewer.