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

1.4.1 get known reference code names (list indices do not necessarily correspond to enumeration indices)


Description

listcodes will produce the known reference codes for a specified measure type. It will return a record with two entries. The first is a string vector of all normal codes; the second a string vector (maybe empty) with all extra codes (like planets). NOTE: Synonyms and different code groups may be present in the code name lists. The indices in these lists therefore do not necessarily correspond to the internal CASA enumeration indices.

Arguments





Inputs

ms

the measure type for which to list

allowed:

record

Default:

Returns
record

Example

 
 
print "\t----\t listcodes Ex 1 \t----"  
# Generate some direction  
# Note that an empty or non-specified reference code will produce the  
# measure with the default code for that measure type  
a=me.direction()  
print me.getref(a)  
#’J2000’  
print me.ismeasure(a)  
#True  
# Get the known reference codes for direction  
print me.listcodes(a)  
#{’normal’: [’J2000’, ’JMEAN’, ’JTRUE’, ’APP’, ’B1950’, ’BMEAN’,  
#’BTRUE’, ’GALACTIC’, ’HADEC’, ’AZEL’, ’AZELSW’, ’AZELNE’, ’AZELGEO’,  
#’AZELSWGEO’, ’AZELNEGEO’, ’JNAT’, ’ECLIPTIC’, ’MECLIPTIC’,  
#’TECLIPTIC’, ’SUPERGAL’, ’ITRF’, ’TOPO’, ’ICRS’],  
#’extra’: [’MERCURY’, ’VENUS’, ’MARS’, ’JUPITER’, ’SATURN’, ’URANUS’,  
#’NEPTUNE’, ’PLUTO’, ’SUN’, ’MOON’, ’COMET’]}  
 

__________________________________________________________________


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