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.h"
AstFrame *frame1;

...

frame1 = astFrame( 2, "Domain=A" );

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:

AstFrameSet *frameset;

...

frameset = astFrameSet( frame1, "" );

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 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