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.
AST A Library for Handling World Coordinate Systems in Astronomy