aboutsummaryrefslogtreecommitdiff
path: root/sys/imio/tf/impnld.x
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/imio/tf/impnld.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'sys/imio/tf/impnld.x')
-rw-r--r--sys/imio/tf/impnld.x31
1 files changed, 31 insertions, 0 deletions
diff --git a/sys/imio/tf/impnld.x b/sys/imio/tf/impnld.x
new file mode 100644
index 00000000..b0f9bfd5
--- /dev/null
+++ b/sys/imio/tf/impnld.x
@@ -0,0 +1,31 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <imhdr.h>
+include <imio.h>
+
+# 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 impnld (imdes, lineptr, v)
+
+pointer imdes
+pointer lineptr # on output, points to the pixels
+long v[IM_MAXDIM] # loop counter
+int npix
+int impnln()
+extern imflsd()
+errchk impnln
+
+begin
+ if (IM_FLUSH(imdes) == YES)
+ call zcall1 (IM_FLUSHEPA(imdes), imdes)
+
+ npix = impnln (imdes, lineptr, v, TY_DOUBLE)
+ if (IM_FLUSH(imdes) == YES)
+ call zlocpr (imflsd, IM_FLUSHEPA(imdes))
+
+ return (npix)
+end