NRAO Home > CASA > CASA Toolkit Reference Manual
quanta.convertdop - Function

1.5.1 convert a doppler velocity quantity to another unit


Description

convertfreq converts a velocity quantity to another unit. Units are either velocity or dimensionless.

Arguments





Inputs

v

quantity to convert

allowed:

variant

Default:

0.0

outunit

unit to convert to

allowed:

string

Default:

km/s

Returns
record

Example

 
 
"""  
#  
print "\t----\t convertdop Ex 1 \t----"  
print qa.convertdop(’1’,’km/s’)  
#{’value’: 299792.45799999998, ’unit’: ’km/s’}  
print qa.convertdop(’10km/s’,’1’)  
#{’value’: 3.3356409519815205e-05, ’unit’: ’1’}  
#  
"""  
 

__________________________________________________________________


More information about CASA may be found at the CASA web page

Copyright © 2016 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