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/imfort/imgsiz.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/imfort/imgsiz.x')
-rw-r--r-- | sys/imfort/imgsiz.x | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sys/imfort/imgsiz.x b/sys/imfort/imgsiz.x new file mode 100644 index 00000000..c8161286 --- /dev/null +++ b/sys/imfort/imgsiz.x @@ -0,0 +1,27 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <imhdr.h> +include "imfort.h" + +# IMGSIZ -- Get the physical attributes (size and type) of an image. + +procedure imgsiz (im, axlen, naxis, pixtype, ier) + +pointer im # image descriptor +int axlen[IM_MAXDIM] # receives axis lengths +int naxis # receives number of axes +int pixtype # receives pixel type +int ier # receives error status + +bool strne() + +begin + if (strne (IM_MAGIC(im), "imhdr")) + ier = IE_MAGIC + else { + call amovl (IM_LEN(im,1), axlen, IM_MAXDIM) + naxis = IM_NDIM(im) + pixtype = IM_PIXTYPE(im) + ier = OK + } +end |