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 --- sys/plio/plgsize.x | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 sys/plio/plgsize.x (limited to 'sys/plio/plgsize.x') diff --git a/sys/plio/plgsize.x b/sys/plio/plgsize.x new file mode 100644 index 00000000..40e73ac3 --- /dev/null +++ b/sys/plio/plgsize.x @@ -0,0 +1,26 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include +include + +# PL_GSIZE -- Get the dimensionality and size of a mask. + +procedure pl_gsize (pl, naxes, axlen, depth) + +pointer pl #I mask descriptor +int naxes #O number of axes (dimensionality of mask) +long axlen[ARB] #O length of each axis +int depth #O mask depth, bits + +int i + +begin + naxes = PL_NAXES(pl) + call amovl (PL_AXLEN(pl,1), axlen, PL_MAXDIM) + + do i = 0, ARB + if (2**i > min (I_PVMAX, PL_MAXVAL(pl))) { + depth = i + break + } +end -- cgit