Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1488 |
|
Package | general | |
Module | images | |
Tool | coordsys |
type | in | Type of projection | |
Allowed: | String | ||
parameters | in | Projection parameters | |
Allowed: | Vector of double | ||
Default: | [] |
If the Coordinate System contains a direction coordinate, this function (short-hand name sp) can be used to set the projection. For discussion about celestial coordinate systems, including projections, see the papers by Mark Calabretta and Eric Greisen. The initial draft from 1996 (implemented in AIPS++) can be found here.
You can use the function projection to find out all the possible types of projection. You can also use it to find out how many parameters you need to describe a particular projection. See Calabretta and Greisen for details about those parameters (see section 4 of their paper); in FITS terms these parameters are what are labelled as PROJP.
Some brief help here on the more common projections in astronomy.
If the Coordinate System does not contain a direction coordinate, an exception is generated.
- im := image('cena') - cs := im.coordsys() - cs.projection() [type=SIN, parameters=[0 0] ] - - cs.projection('ZEA') 0 - cs.setprojection('ZEA') - im2 := im.regrid('cena.zea', csys=cs)We change the projection of an image from SIN to ZEA (which requires no parameters).