diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /sys/plio/plsslv.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/plio/plsslv.x')
-rw-r--r-- | sys/plio/plsslv.x | 25 |
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 |