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:

any

Default:

record

Returns
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’}  
#  
"""

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.