1.3.1 define a uvw measure
Description
uvw defines a uvw measure from the CLI. It has to specify a reference code,
uvw 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 uvw. Allowable reference codes are ITRF and the direction
ones.
Note that additional ones may become available. Check in CASA with:
"""
# print "\t----\t uvw Ex 1 \t----" print me.listcodes(me.uvw()) #{’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’: []} # """ |
The uvw 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: | ITRF |
|
| 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 uvw measure
| |
| allowed: | any |
|
| Default: | record |
|
Example
"""
# print "\t----\t uvw Ex 2 \t----" print me.uvw(’itrf’,’30deg’,’40deg’,’10m’) #{’m0’: {’value’: 0.52359877559829882, ’unit’: ’rad’}, # ’m1’: {’value’: 0.6981317007977319, ’unit’: ’rad’}, # ’m2’: {’value’: 9.9999999999999982, ’unit’: ’m’}, # ’refer’: ’ITRF’, # ’type’: ’uvw’} print me.doframe(me.epoch(’utc’,’today’)) #True print me.doframe(me.observatory(’ALMA’)) #True print me.doframe(me.direction(’mars’)) #True print me.measure(me.uvw(’itrf’,’30deg’,’40deg’,’10m’), ’j2000’) #{’m0’: {’value’: 0.52321924738347259, ’unit’: ’rad’}, # ’m1’: {’value’: 0.69813169995801672, ’unit’: ’rad’}, # ’m2’: {’value’: 10.0, ’unit’: ’m’}, # ’refer’: ’J2000’, # ’type’: ’uvw’} # """ |
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.