blob: bb7b21cb0e3e1292c8611c1e9deb3116757af3be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|