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

1.3.1 get known reference codes
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).

Arguments





Inputs

ms

the measure type for which to list

allowed:

any

Default:

record

Returns
anyrecord

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’]}

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.