nraonrao
 
NRAO Home > CASA > CasaRef
measures.tofrequency - Function

1.3.1 convert a doppler type value to a frequency
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. qa.constants(’HI’)) or a frequency measure (e.g. me.frequency(’rest’,’5100MHz’)) should be specified

Arguments





Inputs

rf

frequency reference type

allowed:

string

Default:

v0

doppler measure value

allowed:

any

Default:

record

rfq

rest frequency (frequency measure or freuency quantity)

allowed:

any

Default:

record

Returns
anyrecord

Example

print "\t----\t tofrequency Ex 1 \t----"  
a=me.doppler(’radio’,’0.4’)  
print a  
#{’m0’: {’value’: 119916983.2, ’unit’: ’m/s’},  
# ’refer’: ’RADIO’,  
# ’type’: ’doppler’}  
print me.tofrequency(’lsrk’,a,qa.constants(’HI’))  
#{’m0’: {’value’: 852243451.07159996, ’unit’: ’Hz’},  
# ’refer’: ’LSRK’,  
# ’type’: ’frequency’}

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.