|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
coordsys.telescope - Function
1.1.3 Return the telescope
Description
This function returns the telescope contained in the Coordinate System as a
simple string.
The telescope position may be needed for reference code conversions; this is why it is maintained in the Coordinate System.
The conversion from string to position is done with Measures observatory. The example shows how.
Arguments
string
Example
"""
#
print "\t----\t telescope Ex 1 \t----"
csys = cs.newcoordsys()
print csys.telescope()
#ATCA
print me.observatory(csys.telescope())
#{’type’: ’position’, ’refer’: ’ITRF’,
# ’m1’: {’value’: -0.5261379196128062, ’unit’: ’rad’},
# ’m0’: {’value’: 2.6101423190348916, ’unit’: ’rad’},
# ’m2’: {’value’: 6372960.2577234386, ’unit’: ’m’}}
#
"""
We get the telescope as a string.
The Measures system is used to convert from
the simple name to a position Measure.
__________________________________________________________________
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