NRAO Home > CASA > CASA Toolkit Reference Manual
quanta.canon - Function

1.5.1 get canonical value of quantity


Description

canon gets the canonical value of a quantity

Arguments





Inputs

v

value to convert

allowed:

variant

Default:

Returns
record

Example

 
 
"""  
#  
print "\t----\t canon Ex 1 \t----"  
print qa.canon(’1Jy’)         # canonical value of a string  
#{’value’: 1e-26, ’unit’: ’kg.s-2’}  
print qa.canonical(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