Changeset 506 for trunk/python
- Timestamp:
- 02/23/05 14:03:42 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapmath.py
r489 r506 451 451 if allaxes is None: allaxes = rcParams['scantable.allaxes'] 452 452 varlist = vars() 453 from asap._asap import rotate_xyphase as _rotate_xyphase454 _rotate _xyphase(scan, angle, allaxes)455 s ._add_history("rotate_xyphase", varlist)453 from asap._asap import _rotate_xyphase as _rotate 454 _rotate(scan, angle, allaxes) 455 scan._add_history("rotate_xyphase", varlist) 456 456 return 457 458 def rotate_linpolphase(scan, angle, allaxes=None): 459 """ 460 Rotate the phase of the complex polarization O=Q+iU correlation. 461 This is always done in situ in the raw data. So if you call this 462 function more than once then each call rotates the phase further. 463 Parameters: 464 angle: The angle (degrees) to rotate (add) by. 465 allaxes: If True apply to all spectra. Otherwise 466 apply only to the selected (beam/pol/if)spectra only. 467 The default is taken from .asaprc (True if none) 468 Examples: 469 rotate_linpolphase(scan, 2.3) 470 """ 471 if allaxes is None: allaxes = rcParams['scantable.allaxes'] 472 varlist = vars() 473 from asap._asap import _rotate_linpolphase as _rotate 474 _rotate(scan, angle, allaxes) 475 scan._add_history("rotate_linpolphase", varlist) 476 return 477
Note:
See TracChangeset
for help on using the changeset viewer.