diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/mwcs/mwgaxmap.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/mwcs/mwgaxmap.x')
-rw-r--r-- | sys/mwcs/mwgaxmap.x | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sys/mwcs/mwgaxmap.x b/sys/mwcs/mwgaxmap.x new file mode 100644 index 00000000..b888b433 --- /dev/null +++ b/sys/mwcs/mwgaxmap.x @@ -0,0 +1,31 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <syserr.h> +include "mwcs.h" + +# MW_GAXMAP -- Get the axis map. This assigns a logical axis axno[i] to +# each physical axis I. If axno[i]=0, the value of the physical axis +# coordinate is the constant axval[i], and the dimension of the logical +# system is reduced by one. + +procedure mw_gaxmap (mw, axno, axval, ndim) + +pointer mw #I pointer to MWCS descriptor +int axno[ndim] #O physical -> logical axis assignments +int axval[ndim] #O value of physical axis if axno=0 +int ndim #I physical dimension of axis map + +int i +errchk syserrs + +begin + # Verify dimension. + if (MI_NDIM(mw) != ndim) + call syserrs (SYS_MWNDIM, "mw_gaxmap") + + # Copy out the current axis map. + do i = 1, ndim { + axno[i] = MI_AXNO(mw,i) + axval[i] = MI_AXVAL(mw,i) + } +end |