Changeset 432


Ignore:
Timestamp:
02/14/05 17:56:25 (20 years ago)
Author:
kil064
Message:

add rotate_xyphase

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r415 r432  
    404404        self._setcoordinfo(inf)
    405405        if self._p: self.plot()
    406 
     406 
    407407    def set_freqframe(self, frame=None):
    408408        """
     
    585585        return
    586586
     587    def rotate_xyphase (self, angle, all=None):
     588        """
     589        Rotate the phase of the XY correlation.  This is done in situ
     590        in the data.  So if you call this function more than once
     591        then each call rotates the phase further.       
     592        Parameters:
     593            angle:   The angle (degrees) to rotate (add) by.
     594            all:     if true operate on all axes (default or .asaprc) rather
     595                     than the cursor selected spectrum of Beam/IF
     596        Examples:
     597            scan.rotate_xyphase(2.3)
     598        """
     599        if all is None: all = rcParams['scantable.allaxes']
     600        sdtable._rotate_xyphase(self, angle, all)
     601           
    587602    def plot(self, what='spectrum',col='Pol', panel=None):
    588603        """
Note: See TracChangeset for help on using the changeset viewer.