Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1488 |
|
Package | general | |
Module | images | |
Tool | coordsys |
type | in | Coordinate type | |
Allowed: | String from 'direction', 'spectral' |
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.
- 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