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/osb/nmipak16.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/osb/nmipak16.x')
-rw-r--r-- | sys/osb/nmipak16.x | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sys/osb/nmipak16.x b/sys/osb/nmipak16.x new file mode 100644 index 00000000..eeae2a3d --- /dev/null +++ b/sys/osb/nmipak16.x @@ -0,0 +1,36 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <mach.h> + +# NMIPAK16 -- Pack an SPP array of the indicated datatype into an 16 bit +# signed NMI array. + +procedure nmipak16 (spp, nmi, nelems, spp_datatype) + +int spp[ARB] #I input array of SPP integers +int nmi[ARB] #O output NMI format array +int nelems #I number of integers to be converted +int spp_datatype #I SPP datatype code + +begin + switch (spp_datatype) { + case TY_UBYTE: + call achtbs (spp, nmi, nelems) + case TY_USHORT: + call achtus (spp, nmi, nelems) + case TY_CHAR: + call achtcs (spp, nmi, nelems) + case TY_SHORT: + call achtss (spp, nmi, nelems) + case TY_INT, TY_POINTER, TY_STRUCT: + call achtis (spp, nmi, nelems) + case TY_LONG: + call achtls (spp, nmi, nelems) + case TY_REAL: + call achtrs (spp, nmi, nelems) + case TY_DOUBLE: + call achtds (spp, nmi, nelems) + case TY_COMPLEX: + call achtxs (spp, nmi, nelems) + } +end |