diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /sys/mwcs/mwgaxmap.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
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 |