Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: quanta.convertdop - Function Up: quanta - Tool Previous: quanta.form.xxx - Function


quanta.convertfreq - Function



Package general
Module quanta
Tool quanta


convert a frequency quantity to another unit


Synopsis
convertfreq(v, out)


Arguments

v in quantity to convert
    Allowed: quantity or string
    Default: '1Hz'
out in unit to convert to
    Allowed: string or quantity
    Default: 'Hz'


Returns
quantity


Description
convertfreq converts a frequency quantity to another unit. All units allowed in the setformat are allowed.



Example
- dq.convertfreq('5GHz','cm')
[value=5.99584916, unit=cm] 
- dq.convertfreq('5cm','GHz')
[value=5.99584916, unit=GHz]





next up previous contents index
Next: quanta.convertdop - Function Up: quanta - Tool Previous: quanta.form.xxx - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01