NRAO Home > CASA > CASA Toolkit Reference Manual
measures.doframe - Function

1.4.1 save a measure as frame reference


Description

doframe will set the measure specified as part of a frame.

If conversion from one type to another is necessary, with the measure function, the following frames should be set if one of the reference types involved in the conversion is as in the following lists.
Epoch UTC TAI LAST position LMST position GMST1 GAST UT1 UT2 TDT TCG TDB TCD

Direction

J2000 JMEAN epoch JTRUE epoch APP epoch B1950 BMEAN epoch BTRUE epoch GALACTIC HADEC epoch position AZEL epoch position SUPERGALACTIC ECLIPTIC MECLIPTIC epoch TECLIPTIC epoch PLANET epoch [position]

Position

WGS84 ITRF

Radial Velocity

LSRK direction LSRD direction BARY direction GEO direction epoch TOPO direction epoch position GALACTO direction

Doppler

RADIO OPTICAL Z RATIO RELATIVISTIC BETA GAMMA

Frequency

REST direction radialvelocity LSRK direction LSRD direction BARY direction GEO direction epoch TOPO direction epoch position GALACTO

Arguments





Inputs

v

measure to be set in frame

allowed:

record

Default:

Returns
bool

Example

 
 
print "\t----\t doframe Ex 1 \t----"  
a = me.epoch(’utc’, ’today’)  # a time  
print a  
#{’m0’: {’value’: 54054.91671484954, ’unit’: ’d’},  
# ’refer’: ’UTC’,  
# ’type’: ’epoch’}  
print me.doframe(a) # set time in frame  
#True  
 

__________________________________________________________________


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