1.3.1 define a position measure
Description
position defines a position measure from the CLI. It has to specify a reference
code, position quantity values (see introduction for the action on a scalar
quantity with either a vector or scalar value),
and optionally it can specify an offset, which in itself has to be a position.
Allowable reference codes are: WGS84 ITRF (World Geodetic System and
International Terrestrial Reference Frame).
Note that additional ones may become available. Check in CASA with:
"""
# print "\t----\t position Ex 1 \t----" print me.listcodes(me.position()) #{’normal’: [’ITRF’, ’WGS84’], ’extra’: []} # """ |
The position quantity values should be either longitude (angle), latitude(angle) and height(length); or x,y,z (length). See quantity for possible angle formats.
Arguments
| Inputs |
| ||
| rf |
| reference code
| |
| allowed: | string |
|
| Default: | WGS84 |
|
| v0 |
| longitude or x
| |
| allowed: | any |
|
| Default: | variant |
|
| v1 |
| latitude or y
| |
| allowed: | any |
|
| Default: | variant |
|
| v2 |
| height or z
| |
| allowed: | any |
|
| Default: | variant |
|
| off |
| optional offset position measure
| |
| allowed: | any |
|
| Default: | record |
|
Example
"""
# print "\t----\t position Ex 2 \t----" print me.position(’wgs84’,’30deg’,’40deg’,’10m’) #{’m0’: {’value’: 0.52359877559829882, ’unit’: ’rad’}, # ’m1’: {’value’: 0.6981317007977319, ’unit’: ’rad’}, # ’m2’: {’value’: 9.9999999999999982, ’unit’: ’m’}, # ’refer’: ’WGS84’, # ’type’: ’position’} print me.observatory(’ATCA’) #{’m0’: {’value’: 2.6101423190348916, ’unit’: ’rad’}, # ’m1’: {’value’: -0.5261379196128062, ’unit’: ’rad’}, # ’m2’: {’value’: 6372960.2577234386, ’unit’: ’m’}, # ’refer’: ’ITRF’, # ’type’: ’position’} # """ |
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.