Changeset 40929 for branches/eam_branches/ohana.20190329
- Timestamp:
- Oct 8, 2019, 9:20:32 PM (7 years ago)
- Location:
- branches/eam_branches/ohana.20190329/src/opihi
- Files:
-
- 1 added
- 4 edited
-
dvo/Makefile (modified) (1 diff)
-
dvo/cimages.c (added)
-
dvo/images.c (modified) (4 diffs)
-
dvo/init.c (modified) (2 diffs)
-
lib.data/style_args.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20190329/src/opihi/dvo/Makefile
r40523 r40929 67 67 $(SRC)/gstar.$(ARCH).o \ 68 68 $(SRC)/hosts.$(ARCH).o \ 69 $(SRC)/cimages.$(ARCH).o \ 69 70 $(SRC)/images.$(ARCH).o \ 70 71 $(SRC)/imbox.$(ARCH).o \ -
branches/eam_branches/ohana.20190329/src/opihi/dvo/images.c
r40165 r40929 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; -
branches/eam_branches/ohana.20190329/src/opihi/dvo/init.c
r40523 r40929 14 14 int catdir_define PROTO((int, char **)); 15 15 int ccd PROTO((int, char **)); 16 int cimages PROTO((int, char **)); 16 17 int cmatch PROTO((int, char **)); 17 18 int cmd PROTO((int, char **)); … … 80 81 {1, "catdir", catdir_define,"re-define CATDIR"}, 81 82 // {1, "ccd", ccd, "plot color-color diagram"}, 83 {1, "cimages", cimages, "fill image boxes with a color"}, 82 84 {1, "cmatch", cmatch, "match two catalogs"}, 83 85 // {1, "cmd", cmd, "plot cmd of stars in current region"}, -
branches/eam_branches/ohana.20190329/src/opihi/lib.data/style_args.c
r40570 r40929 72 72 } 73 73 74 if ((graphmode[0].style == KAPA_PLOT_POLYGON) || (graphmode[0].style == KAPA_PLOT_POLYFILL)) { 75 if ((N = get_argument (*argc, argv, "-npoint"))) { 76 remove_argument (N, argc, argv); 77 graphmode[0].ptype = atoi (argv[N]); 78 remove_argument (N, argc, argv); 79 } else { 80 gprint (GP_ERR, "polygon & polyfill styles require number of points argument: -npoint N\n"); 81 return FALSE; 82 } 83 } 74 84 return (TRUE); 75 85 }
Note:
See TracChangeset
for help on using the changeset viewer.
