Changeset 458


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

move scantable.rotate_xyphase to asapmath.py

Location:
trunk/python
Files:
2 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
  • trunk/python/scantable.py

    r451 r458  
    591591        return
    592592
    593     def rotate_xyphase (self, angle, allaxes=None):
    594         """
    595         Rotate the phase of the XY correlation.  This is done in situ
    596         in the data.  So if you call this function more than once
    597         then each call rotates the phase further.       
    598         Parameters:
    599             angle:   The angle (degrees) to rotate (add) by.
    600             allaxes: If True apply to all spectra. Otherwise
    601                      apply only to the selected (beam/pol/if)spectra only.
    602                      The default is taken from .asaprc (True if none)
    603         Examples:
    604             scan.rotate_xyphase(2.3)
    605         """
    606         if allaxes is None: allaxes = rcParams['scantable.allaxes']
    607         sdtable._rotate_xyphase(self, angle, allaxes)
    608            
    609593    def plot(self, what='spectrum',col='Pol', panel=None):
    610594        """
Note: See TracChangeset for help on using the changeset viewer.