nraonrao
 
NRAO Home > CASA > CasaRef
quanta.checkfreq - Function

1.4.1 check for proper frequency unit
Description

checkfreq checks if the argument has a properly defined frequency interpretable unit string

Arguments





Inputs

cm

value

allowed:

any

Default:

variant

Returns
bool

Example

"""  
#  
print "\t----\t checkfreq Ex 1 \t----"  
print qa.checkfreq(’5GHz’)  
#True  
print qa.checkfreq(’5cm’)  
#True  
print qa.checkfreq(’5cm/s2’)  
#False  
#  
"""

Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu

Copyright © 2008 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

Updated daily during alpha development.