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/pmio/pmlinene.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/pmio/pmlinene.x')
-rw-r--r-- | sys/pmio/pmlinene.x | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sys/pmio/pmlinene.x b/sys/pmio/pmlinene.x new file mode 100644 index 00000000..0e49de54 --- /dev/null +++ b/sys/pmio/pmlinene.x @@ -0,0 +1,28 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <imhdr.h> +include <pmset.h> +include <plio.h> + +# PM_LINENOTEMPTY -- Test whether the indicated mask image line is empty. + +bool procedure pm_linenotempty (pl, v) + +pointer pl #I mask descriptor +long v[PM_MAXDIM] #I coordinates of desired line + +bool pl_sectnotempty(), pl_linenotempty() +include "pmio.com" + +begin + if (PM_MAPXY(pl) == YES) { + call imaplv (PM_REFIM(pl), v, v1, PM_MAXDIM) + call amovl (v, v2, PM_MAXDIM) + v2[1] = IM_LEN(PM_REFIM(pl),1) + call imaplv (PM_REFIM(pl), v2, v3, PM_MAXDIM) + + return (pl_sectnotempty (pl, v1, v3, PM_MAXDIM)) + + } else + return (pl_linenotempty (pl, v)) +end |