1.3.1 define an epoch measure
Description
epoch defines an epoch measure from the CLI. It has to specify a reference
code, an epoch quantity value (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 an epoch.
Allowable reference codes are: UTC TAI LAST LMST GMST1 GAST UT1
UT2 TDT TCG TDB TCB.
Note that additional ones may become available. Check in CASA with:
"""
# print "\t----\t epoch Ex 1 \t----" print me.listcodes(me.epoch()) #{’normal’: [’LAST’, ’LMST’, ’GMST1’, ’GAST’, ’UT1’, ’UT2’, ’UTC’, ’TAI’, # ’TDT’, ’TCG’, ’TDB’, ’TCB’, ’IAT’, ’GMST’, ’TT’, ’ET’, ’UT’], ’extra’: []} # """ |
See quantity for possible time formats.
Arguments
| Inputs |
| ||
| rf |
| reference code
| |
| allowed: | string |
|
| Default: | UTC |
|
| v0 |
| epoch value
| |
| allowed: | any |
|
| Default: | variant |
|
| off |
| optional offset epoch measure
| |
| allowed: | any |
|
| Default: | record |
|
Example
"""
# print "\t----\t epoch Ex 2 \t----" print me.epoch(’utc’,’today’) #{’m0’: {’value’: 54048.861237743055, ’unit’: ’d’}, # ’refer’: ’UTC’, # ’type’: ’epoch’} # """ |
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.