%N xyzs2c %F $MIR/src/subs/xyzio.c
%D Get the fixed coordinates for a given subcube
%P bpw
%: image-i/o
%B
+
      subroutine xyzs2c( tno, subcubenr, coords )
      integer    tno
      integer    subcubenr
      integer    coords(*)

This routine, xyzsetup and xyzread/xyzwrite work together to allow
reading/writing an arbitrary subcube in a n-dimensional datacube.
xyzs2c calculates the fixed coordinates of a particular subcube.
xyzsetup defines a particular type of subcube in a datacube, e.g. line
profiles in the z-direction. For a given subcube there are varying (z
in the example) and fixed coordinates. The subcubes are ordered along
the fixed-coordinate axes: the first subcube has (x=1,y=1), the second
has (x=2,y=1), etc. xyzs2c returns the values of the fixed coordinates
for a given subcubenumber. These can then be used as input to xyzread
or xyzwrite.

   Input:
      tno           The handle of the dataset
      subcubenr     Identification of the subcube
   Output:
      coords        Coordinates of the blc of the subcube                     
