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

1.5.1 convert a frequency quantity to another unit


Description

convertfreq converts a frequency quantity to another unit.

Arguments





Inputs

v

quantity to convert

allowed:

variant

Default:

1.0

outunit

unit to convert to

allowed:

string

Default:

Hz

Returns
record

Example

 
 
"""  
#  
print "\t----\t convertfreq Ex 1 \t----"  
print qa.convertfreq(’5GHz’,’cm’)  
#{’value’: 5.9958491599999997, ’unit’: ’cm’}  
print qa.convertfreq(’5cm’,’GHz’)  
#{’value’: 5.9958491599999997, ’unit’: ’GHz’}  
#  
"""  
 

__________________________________________________________________


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