Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: coordsys.convert - Function Up: coordsys - Tool Previous: coordsys.axiscoordinatetypes - Function


coordsys.conversiontype - Function



Package general
Module images
Tool coordsys


Get extra reference conversion layer


Synopsis
conversiontype(type)


Arguments

type in Coordinate type
    Allowed: String from 'direction', 'spectral'



Returns
String or fail



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.



Example
- cs := coordsys(direction=T, spectral=T)
- print cs.conversiontype (type='direction'), ' ', cs.conversiontype (type='spectral'), 
J2000 LSRK
-
- cs.setconversiontype (direction='GALACTIC', spectral='BARY');
- print cs.conversiontype (type='direction'), ' ', cs.conversiontype (type='spectral'), 
GALACTIC BARY








next up previous contents index
Next: coordsys.convert - Function Up: coordsys - Tool Previous: coordsys.axiscoordinatetypes - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01