next up previous
Next: Selecting Frame Axes
Up: Representing Coordinate Systems (Frames)
Previous: Reading Formatted Axis Values

Permuting Frame Axes  

Once a Frame has been created, it is not possible to change the number of axes it contains, but it is possible to change the order in which these axes occur. To do so, an integer permutation array is filled with the numbers of the axes so as to specify the new order, e.g:

      INTEGER PERM( 2 )
      DATA PERM / 2, 1 /

In this case, the axes of a 2-dimensional Frame could be interchanged by passing this permutation array to the AST_PERMAXES function. That is, an (x1,x2) coordinate system would be changed into an (x2,x1) coordinate system by:

      CALL AST_PERMAXES( FRAME, PERM, STATUS )

If the axes are permuted more than once, the effects are cumulative. You are, of course, not restricted to Frames with only two axes.



next up previous
Next: Selecting Frame Axes
Up: Representing Coordinate Systems (Frames)
Previous: Reading Formatted Axis Values

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