|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
quanta.canonical - Function
1.5.1 get canonical value of quantity
Description
canonical (with alias canon) gets the canonical value of a quantity
Arguments
Inputs |
| ||
v |
| value to convert
| |
| allowed: | variant |
|
| Default: | 1.0 |
|
record
Example
"""
#
print "\t----\t canonical Ex 1 \t----"
print qa.canonical(’1Jy’) # canonical value of a string
#{’value’: 1e-26, ’unit’: ’kg.s-2’}
print qa.canon(qa.quantity(’1Jy’)) # canonical value of a unit
#{’value’: 1e-26, ’unit’: ’kg.s-2’}
#
"""
__________________________________________________________________
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