Creating a Frame is straightforward and follows the usual pattern:
INCLUDE 'AST_PAR'
INTEGER FRAME, STATUS
STATUS = 0
...
FRAME = AST_FRAME( 2, ' ', STATUS )
The first argument of the AST_FRAME constructor function specifies the number of axes which the Frame should have.
AST A Library for Handling World Coordinate Systems in Astronomy