- Timestamp:
- 02/16/05 12:41:07 (20 years ago)
- Location:
- trunk/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapmath.py
r435 r458 383 383 sf = f.auto_fit(insitu) 384 384 return sf 385 386 def 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 591 591 return 592 592 593 def rotate_xyphase (self, angle, allaxes=None):594 """595 Rotate the phase of the XY correlation. This is done in situ596 in the data. So if you call this function more than once597 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. Otherwise601 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 609 593 def plot(self, what='spectrum',col='Pol', panel=None): 610 594 """
Note:
See TracChangeset
for help on using the changeset viewer.