From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- pkg/images/imutil/src/t_imaxes.x | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkg/images/imutil/src/t_imaxes.x (limited to 'pkg/images/imutil/src/t_imaxes.x') diff --git a/pkg/images/imutil/src/t_imaxes.x b/pkg/images/imutil/src/t_imaxes.x new file mode 100644 index 00000000..86d32fbd --- /dev/null +++ b/pkg/images/imutil/src/t_imaxes.x @@ -0,0 +1,33 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include + +define SZ_PARAM 5 + + +# IMAXES -- Determine the number and lengths of the axes of an image. +# Called from CL scripts. This routine will go away when we get DBIO +# access from the CL. + +procedure t_imaxes() + +char imname[SZ_FNAME] +char param[SZ_PARAM] +int i +pointer im +pointer immap() + +begin + call clgstr ("image", imname, SZ_FNAME) + im = immap (imname, READ_ONLY, 0) + + call clputi ("ndim", IM_NDIM(im)) + + do i = 1, IM_MAXDIM { + call sprintf (param, SZ_PARAM, "len%d") + call pargi (i) + call clputl (param, IM_LEN(im,i)) + } + + call imunmap (im) +end -- cgit