NRAO Home > CASA > CASA Toolkit Reference Manual
measures.show - Function

1.4.1 Show a measure as a string


Description

show will convert a measure to a string.

All measures are catered for (at this moment direction, position, epoch, radialvelocity, frequency, doppler, baseline, uvw, earthmagnetic ).

Arguments





Inputs

v

measure value to be converted to string

allowed:

record

Default:

refcode

add the reference code to output

allowed:

bool

Default:

true

Returns
string

Example

 
 
print "\t----\t show Ex 1 \t----"  
print me.show(me.frequency(’lsrk’, qa.constants(’HI’)))  
#1.42041e+09 Hz LSRK  
print me.show(me.frequency(’lsrk’, qa.constants(’HI’)), refcode=false)  
#1.42041e+09 Hz  
 

__________________________________________________________________


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