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

1.3.1 define a radialvelocity measure
Description

radialvelocity defines a radialvelocity measure from the CLI. It has to specify a reference code, radialvelocity quantity value (see introduction for the action on a scalar quantity with either a vector or scalar value),

and optionally it can specify an offset, which in itself has to be a radialvelocity. Allowable reference codes are: LSRK LSRD BARY GEO TOPO GALACTO LGROUP CMB.
Note that additional ones may become available. Check in CASA with:

 
print "\t----\t radialvelocity Ex 1 \t----"  
print me.listcodes(me.radialvelocity())  
#  Out[17]:  
#{’extra’: [],  
# ’normal’: [’LSRK’, ’LSRD’, ’BARY’, ’GEO’, ’TOPO’, ’GALACTO’,  
# ’LGROUP’, ’CMB’]}

The radialvelocity quantity values should be given as velocity.

Arguments





Inputs

rf

reference code

allowed:

string

Default:

LSRK

v0

radial velocity

allowed:

any

Default:

variant

off

optional offset radialvelocity measure

allowed:

any

Default:

record

Returns
anyrecord

Example

print "\t----\t radialvelocity Ex 2 \t----"  
print me.radialvelocity(’lsrk’,’20km/s’)  
#  Out[18]:  
#{’m0’: {’value’: 20000.0, ’unit’: ’m/s’},  
# ’refer’: ’LSRK’,  
# ’type’: ’radialvelocity’}

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.