next up previous 264
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 routine written in Fortran. You write this routine 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 routine 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 264
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 210
R.F. Warren-Smith & D.S. Berry
24th May 2011
E-mail:ussc@star.rl.ac.uk

Copyright (C) 2009 Science \& Technology Facilities Council