diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/imio/tf/imgnld.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/imio/tf/imgnld.x')
-rw-r--r-- | sys/imio/tf/imgnld.x | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sys/imio/tf/imgnld.x b/sys/imio/tf/imgnld.x new file mode 100644 index 00000000..55b27360 --- /dev/null +++ b/sys/imio/tf/imgnld.x @@ -0,0 +1,29 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <imhdr.h> + +# IMGNL -- Get the next line from an image of any dimension or datatype. +# This is a sequential operator. The index vector V should be initialized +# to the first line to be read before the first call. Each call increments +# the leftmost subscript by one, until V equals IM_LEN, at which time EOF +# is returned. + +int procedure imgnld (imdes, lineptr, v) + +pointer imdes +pointer lineptr # on output, points to the pixels +long v[IM_MAXDIM] # loop counter +int npix, dtype, imgnln() +errchk imgnln + +begin + npix = imgnln (imdes, lineptr, v, TY_DOUBLE) + + if (npix != EOF) { + dtype = IM_PIXTYPE(imdes) + if (dtype != TY_DOUBLE) + call imupkd (Memd[lineptr], Memd[lineptr], npix, dtype) + } + + return (npix) +end |