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.rise - Function Up: measures - Tool Previous: measures.todoppler - Function


measures.torestfrequency - Function



Package general
Module measures
Tool measures


convert a frequency and doppler measure to a rest frequency


Synopsis
torestfrequency(v0, d0)


Arguments

v0 in frequency reference type
    Allowed: string
d0 in doppler value
    Allowed: doppler measure


Returns
frequency measure


Description
torestfrequency will convert a frequency measure and a doppler measure (e.g. obtained from another spectral line with a known rest frequency) to a rest frequency.



Example
- print dp := dm.doppler('radio', '2196.24984km/s')  # a measured doppler speed 
[type=doppler, refer=radio, m0=[value=2196249.84, unit=m/s]]
- print f := dm.frequency('lsrk','1410MHz')    # a measured frequency
[type=frequency, refer=lsrk, m0=[value=1.41e+09, unit=Hz]]
- dm.torestfrequency(f, dp)                   # the corresponding rest frequency
[type=frequency, refer=REST, m0=[value=1.42040575e+09, unit=Hz]]





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