| 
         | 
  |||
| NRAO Home > CASA > CASA Toolkit Reference Manual | 
       | 
  ||
coordsys.epoch - Function
1.1.3 Return the epoch
Description
This function returns the epoch of the observation as a Measure.
Arguments
record
Example
                                                                  
                                                                  
"""
#
print "\t----\t epoch Ex 1 \t----"
csys = cs.newcoordsys()
ep = csys.epoch()
print ep
#{’type’: ’epoch’, ’m0’: {’value’: 54151.96481085648, ’unit’: ’d’}, ’refer’: ’UTC’}
time = me.getvalue(ep) # Extract time with measures
print time
#{’m0’: {’value’: 54151.96481085648, ’unit’: ’d’}}
qa.time(time) # Format with quanta
#’23:09:20’
#
"""
__________________________________________________________________
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