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/imio/tf/impnll.x | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 sys/imio/tf/impnll.x (limited to 'sys/imio/tf/impnll.x') diff --git a/sys/imio/tf/impnll.x b/sys/imio/tf/impnll.x new file mode 100644 index 00000000..3fb29144 --- /dev/null +++ b/sys/imio/tf/impnll.x @@ -0,0 +1,31 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include +include + +# IMPNL -- Put the next line to an image of any dimension or datatype. +# This is a sequential operator. The index vector V should be initialized +# before the first call to the first line to be written. Each call increments +# the leftmost subscript by one, until V equals IM_LEN, at which time EOF +# is returned. Subsequent writes are ignored. + +int procedure impnll (imdes, lineptr, v) + +pointer imdes +pointer lineptr # on output, points to the pixels +long v[IM_MAXDIM] # loop counter +int npix +int impnln() +extern imflsl() +errchk impnln + +begin + if (IM_FLUSH(imdes) == YES) + call zcall1 (IM_FLUSHEPA(imdes), imdes) + + npix = impnln (imdes, lineptr, v, TY_LONG) + if (IM_FLUSH(imdes) == YES) + call zlocpr (imflsl, IM_FLUSHEPA(imdes)) + + return (npix) +end -- cgit