|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
measures.epoch - Function
1.4.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 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: | record |
|
| 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’}
__________________________________________________________________
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