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