next up previous
Next: Limitations of IntraMaps
Up: Creating Your Own Private Mappings (IntraMaps)
Previous: The Need for Extensibility

The IntraMap Model

To allow you to write your own Mappings, AST provides a special kind of Mapping called an IntraMap. An IntraMap is a sort of ``wrapper'' for a coordinate transformation function written in C. You write this function yourself and then register it with AST. This, in effect, creates a new class from which you can create Mappings (i.e. IntraMaps) which will transform coordinates in whatever way your transformation function specifies.

Because IntraMaps are Mappings, they may be used in the same way as any other Mapping. For instance, they may be combined in series or parallel with other Mappings using a CmpMap ([*]), they may be inverted ([*]), you may enquire about their attributes ([*]), they may be inserted into FrameSets ([*]), etc. They do, however, have some important limitations of which you should be aware before we go on to consider how to create them.



next up previous
Next: Limitations of IntraMaps
Up: Creating Your Own Private Mappings (IntraMaps)
Previous: The Need for Extensibility

AST A Library for Handling World Coordinate Systems in Astronomy
Starlink User Note 211
R.F. Warren-Smith & D.S. Berry
30th April 2003
E-mail:ussc@star.rl.ac.uk

Copyright (C) 2003 Central Laboratory of the Research Councils