next up previous
Next: Adding New Frames to a FrameSet
Up: Coordinate System Networks (FrameSets)
Previous: The FrameSet Model

Creating a FrameSet  

Before we can create a FrameSet, we must have a Frame of some kind to put into it, so let's create a simple one:

      INCLUDE 'AST_PAR'
      INTEGER FRAME1, STATUS

      STATUS = 0

      ...

      FRAME1 = AST_FRAME( 2, 'Domain=A', STATUS )

We have set this Frame's Domain attribute ([*]) to A so that it will be distinct from the others we will be using. We can now create a new FrameSet containing just this Frame, as follows:

      INTEGER FRAMESET

      ...

      FRAMESET = AST_FRAMESET( FRAME1, ' ', STATUS )

So far, however, this Frame isn't related to any others.



next up previous
Next: Adding New Frames to a FrameSet
Up: Coordinate System Networks (FrameSets)
Previous: The FrameSet Model

AST A Library for Handling World Coordinate Systems in Astronomy
Starlink User Note 210
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