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


next up previous contents index
Next: measures.todoppler - Function Up: measures - Tool Previous: measures.toradialvelocity - Function


measures.tofrequency - Function



Package general
Module measures
Tool measures


convert a doppler type value to a frequency


Synopsis
tofrequency(rf, v0, rfq)


Arguments

rf in frequency reference type
    Allowed: string
v0 in doppler value
    Allowed: doppler measure
rfq in rest frequency
    Allowed: frequency measure or frequency quantity


Returns
frequency measure


Description
tofrequency will convert a Doppler type value (e.g. in radio mode) to a frequency. The type of frequency (e.g. LSRK) and a rest frequency (either as a frequency quantity (e.g. dm.constants('HI')) or a frequency measure (e.g. dm.frequency('rest','5100MHz')) should be specified



Example
- print a := dm.doppler('radio',0.4)
[type=doppler, refer=radio, m0=[unit=m/s, value=1.19917e+08]]
- dm.tofrequency('lsrk',a,dm.constants('HI'))
[type=frequency, refer=LSRK, m0=[unit=Hz, value=8.52243e+08]]





next up previous contents index
Next: measures.todoppler - Function Up: measures - Tool Previous: measures.toradialvelocity - 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