|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
coordsys.setepoch - Function
1.1.3 Set a new epoch
Description
This function sets a new epoch (supplied as an epoch measure) of the
observation. You can get the current epoch with function epoch.
Arguments
Inputs |
| ||
value |
| New epoch measure
| |
| allowed: | record |
|
| Default: |
|
|
bool
Example
"""
#
print "\t----\t setepoch Ex 1 \t----"
csys = cs.newcoordsys()
ep = csys.epoch()
print ep
#{’type’: ’epoch’, ’m0’: {’value’: 54161.766782997685, ’unit’: ’d’}, ’refer’: ’UTC’}
ep = me.epoch(’UTC’, ’today’)
csys.setepoch(ep)
print csys.epoch()
#{’type’: ’epoch’, ’m0’: {’value’: 54161.766782997685, ’unit’: ’d’}, ’refer’: ’UTC’}
#
"""
__________________________________________________________________
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