Ignore:
Timestamp:
12/22/05 11:55:22 (18 years ago)
Author:
phi196
Message:

Added swap_pol & invert_phase

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Release12/python/scantable.py

    r791 r798  
    12681268        return
    12691269
     1270    def invert_phase(self, allaxes=None):
     1271        """
     1272        Take the complex conjugate of the complex polarisation cross
     1273        correlation.  This is always done in situ in the data.  If
     1274        you call this function twice, you end up with the original phase
     1275        Parameters:
     1276            allaxes: If True apply to all spectra. Otherwise
     1277                     apply only to the selected (beam/pol/if)spectra only.
     1278                     The default is taken from .asaprc (True if none)
     1279        Examples:
     1280            scan.invert_phase()
     1281        """
     1282        if allaxes is None: allaxes = rcParams['scantable.allaxes']
     1283        varlist = vars()
     1284        from asap._asap import _invert_phase
     1285        _invert_phase(self, allaxes)
     1286        self._add_history("invert_phase", varlist)
     1287        print_log()
     1288        return
     1289
     1290    def swap_ppol(self, allaxes=None):
     1291        """
     1292        Swaps the order of parallel polarisation products (ie AA, BB
     1293        becomes BB, AA) .  This is always done in situ in the data.
     1294        If you call this function twice, you end up with the original
     1295        order
     1296        Parameters:
     1297            allaxes: If True apply to all spectra. Otherwise
     1298                     apply only to the selected (beam/pol/if)spectra only.
     1299                     The default is taken from .asaprc (True if none)
     1300        Examples:
     1301            scan.swap_pol()
     1302        """
     1303        if allaxes is None: allaxes = rcParams['scantable.allaxes']
     1304        varlist = vars()
     1305        from asap._asap import _swap_pol
     1306        _swap_pol(self, allaxes)
     1307        self._add_history("swap_phase", varlist)
     1308        print_log()
     1309        return
     1310
    12701311
    12711312    def add(self, offset, insitu=None, allaxes=None):
Note: See TracChangeset for help on using the changeset viewer.