aboutsummaryrefslogtreecommitdiff
path: root/sys/plio/plsslv.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /sys/plio/plsslv.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/plio/plsslv.x')
-rw-r--r--sys/plio/plsslv.x25
1 files changed, 25 insertions, 0 deletions
diff --git a/sys/plio/plsslv.x b/sys/plio/plsslv.x
new file mode 100644
index 00000000..bb7b21cb
--- /dev/null
+++ b/sys/plio/plsslv.x
@@ -0,0 +1,25 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <plset.h>
+include <plio.h>
+
+# PLSSLV -- Given two vectors (VS, VN) defining the starting coordinates and
+# size of an image section, initialize the "loop index" vector V, and the
+# loop-end vector VE.
+
+procedure plsslv (pl, vs, vn, v, ve)
+
+pointer pl #I mask descriptor
+long vs[PL_MAXDIM] #I vector coordinates of start of section
+long vn[PL_MAXDIM] #I vector size of section
+long v[PL_MAXDIM] #O vector for i/o (vector loop index)
+long ve[PL_MAXDIM] #O vector coordinates of end of section
+
+int i
+
+begin
+ do i = 1, PL_NAXES(pl) {
+ v[i] = vs[i]
+ ve[i] = vs[i] + vn[i] - 1
+ }
+end