1.4.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 |
|
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’} # """ |
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.