Changeset 41341 for trunk/Ohana/src/opihi/dvo/images.c
- Timestamp:
- Apr 16, 2020, 2:04:27 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/dvo/images.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/images.c
r41340 r41341 12 12 13 13 off_t i, Nimage, Nmosaic; 14 int j, status, InPic, leftside, *plist, TimeSelect, ByName; 14 int j, status, InPic, leftside, TimeSelect, ByName; 15 // int *plist, n, npts; -- what is/was plist? 15 16 int WITH_MOSAIC, SOLO_MOSAIC; 16 17 time_t tzero, tend; 17 int N, NPTS, n, npts, Npts, kapa, *foundMosaic;18 int n, N, NPTS, Npts, kapa, *foundMosaic; 18 19 Vector Xvec, Yvec; 19 20 double r[8], d[8], x[8], y[8], Rmin, Rmax, Rmid, trange, Radius; … … 148 149 int TrianglePts = wordhash ("TRI-"); 149 150 150 npts = NPTS = 200; 151 // npts = 200 152 NPTS = 200; 151 153 SetVector (&Xvec, OPIHI_FLT, NPTS); 152 154 SetVector (&Yvec, OPIHI_FLT, NPTS); … … 154 156 Image *mosaic = NULL; 155 157 156 ALLOCATE (plist, int, NPTS); 157 n = N = 0; 158 /******** stage 1 : find the images to plot *********/ 159 160 // ALLOCATE (plist, int, NPTS); 161 n = 0; // tracks number of images 162 N = 0; // tracks number of vertices 158 163 for (i = 0; i < Nimage; i++) { 159 164 if (ByName && strncmp (image[i].name, name, strlen(name))) continue; … … 335 340 if (!InPic) continue; 336 341 337 plist[n] = i; 338 n++; 339 if (n > npts - 1) { 340 npts += 200; 341 REALLOCATE (plist, int, npts); 342 } 343 N+=2*Npts; 342 // plist[n] = i; 343 // n++; 344 // if (n > npts - 1) { 345 // npts += 200; 346 // REALLOCATE (plist, int, npts); 347 // } 348 n ++; 349 N += 2*Npts; 344 350 if (N + 16 >= NPTS) { /* need to leave room for 8 point image */ 345 351 NPTS += 400;
Note:
See TracChangeset
for help on using the changeset viewer.
