NRAO Home > CASA > CASA Toolkit Reference Manual
coordsys.conversiontype - Function

1.1.3 Get extra reference conversion layer


Description

Some coordinates contain a reference code. Examples of reference codes are B1950 and J2000 for direction coordinates, or LSRK and BARY for spectral coordinates. When you do conversions between pixel and world coordinate, the coordinates are in the reference frame corresponding to these codes.

Function setconversiontype allows you to specify a different reference frame which is used when converting between world and pixel coordinate.

This function allows you to recover those conversion types. If no extra conversion layer has been set, you get back the native reference types.

Arguments





Inputs

type

Coordinate type, direction, spectral

allowed:

string

Default:

direction

Returns
string

Example

 
 
"""  
#  
print "\t----\t conversiontype Ex 1 \t----"  
csys = cs.newcoordsys(direction=True, spectral=True)  
print csys.conversiontype (type=’direction’), ’ ’, csys.conversiontype (type=’spectral’)  
#J2000   LSRK  
csys.setconversiontype (direction=’GALACTIC’, spectral=’BARY’)  
print csys.conversiontype (type=’direction’), ’ ’, csys.conversiontype (type=’spectral’)  
#GALACTIC   BARY  
#  
"""  
 

__________________________________________________________________


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