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

1.5.1 get the internal unit of a quantity


Description

getunit returns the internal unit string of a quantity

Arguments





Inputs

v

quantity

allowed:

variant

Default:

Returns
string

Example

 
 
"""  
#  
print "\t----\t getunit Ex 1 \t----"  
tu = qa.quantity(-1.3, ’Jy’)         # make quantity  
print tu  
#{’value’: -1.3, ’unit’: ’Jy’}  
print qa.getvalue(tu)  
#-1.3  
print qa.getunit(tu)  
#Jy  
#  
"""  
 

__________________________________________________________________


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