|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
quanta.norm - Function
1.5.1 normalise angle
Description
norm normalise angles in interval of 2π radians. The default interval is from
-0.5 to +0.5 of a full interval (i.e. from -180 to +180 degrees). The lower end of
the interval can be set as a fraction of 2π
Arguments
Inputs |
| ||
v |
| angle quantity
| |
| allowed: | variant | |
| Default: | ||
a |
| lower interval boundary
| |
| allowed: | double |
|
| Default: | -0.5 |
|
record
Example
"""
#
print "\t----\t norm Ex 1 \t----"
print qa.norm(’713deg’) #default normalisation
#{’value’: -6.9999999999999716, ’unit’: ’deg’}
print qa.norm(’713deg’, -2.5) # normalise to interval -900 - -540 deg
#{’value’: -727.0, ’unit’: ’deg’}
#
"""
__________________________________________________________________
More information about CASA may be found at the
CASA web page
Copyright © 2016 Associated Universities Inc., Washington, D.C.
This code is available under the terms of the GNU General Public Lincense
Home |
Contact Us |
Directories |
Site Map |
Help |
Privacy Policy |
Search