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

1.5.1 check for proper unit string


Description

check checks if the argument has a properly defined unit string

Arguments





Inputs

v

value

allowed:

string

Default:

Returns
bool

Example

 
 
"""  
#  
print "\t----\t check Ex 1 \t----"  
print qa.check(’5AE/Jy.pc5/s’)  
#True  
print qa.check(’7MYs’)  
#False  
#  
"""  
 

__________________________________________________________________


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