Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1488 |
|
Package | general | |
Module | images | |
Tool | coordsys |
measure | in | Return as position measure | |
Allowed: | T or F | ||
Default: | F |
This function (short-hand name t) returns the telescope contained in the Coordinate System. It can be returned as a simple string (measure=F) or as a position measure (measure=T).
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 observatory. The example shows you what is really going on.
- cs := coordsys() - cs.telescope() ATCA - cs.telescope(T) [type=position, refer=ITRF, m2=[value=6372960.26, unit=m], m1=[unit=rad, value=-0.52613792], m0=[unit=rad, value=2.61014232]] - - dm.observatory(cs.telescope()) [type=position, refer=ITRF, m2=[value=6372960.26, unit=m], m1=[unit=rad, value=-0.52613792], m0=[unit=rad, value=2.61014232]]We get the telescope as a string and as a position measure. We also show how the Measures system was used to convert from the simple name to a position Measure.