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

1.4.1 get the reference code of a measure


Description

gettype gets the actual reference code of the measure.

Arguments





Inputs

v

measure (array of measures)

allowed:

record

Default:

Returns
string

Example

 
 
print "\t----\t getref Ex 1 \t----"  
b=me.direction(’j2000’,’0deg’,’80deg’)  
print me.getvalue(b)  
#{’m0’: {’value’: 0.0, ’unit’: ’rad’},  
# ’m1’: {’value’: 1.3962634015954634, ’unit’: ’rad’}}  
print me.gettype(b)  
#’Direction’  
print me.getref(b)  
#’J2000’  
 

__________________________________________________________________


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