Changeset 41163
- Timestamp:
- Nov 27, 2019, 11:13:56 AM (7 years ago)
- Location:
- trunk/Ohana/src/opihi/dvo
- Files:
-
- 10 edited
- 1 copied
-
Makefile (modified) (1 diff)
-
avextract.c (modified) (1 diff)
-
avmatch.c (modified) (2 diffs)
-
avperiodomatch.c (modified) (1 diff)
-
avselect.c (modified) (2 diffs)
-
cimages.c (copied) (copied from branches/eam_branches/ohana.20190329/src/opihi/dvo/cimages.c )
-
dvo_host_utils.c (modified) (1 diff)
-
images.c (modified) (4 diffs)
-
init.c (modified) (2 diffs)
-
mextract.c (modified) (1 diff)
-
mmatch.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/Makefile
r40523 r41163 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 \ -
trunk/Ohana/src/opihi/dvo/avextract.c
r40574 r41163 272 272 // write vectors to a table (this is used by parallel dvo operations, but can be used elsewhere) 273 273 if (RESULT_FILE && !SKIP_RESULTS) { 274 int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", vec, Nreturn, FALSE, FALSE, NULL, 0);274 int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", NULL, vec, Nreturn, FALSE, FALSE, NULL, 0); 275 275 if (!status) { 276 276 goto escape; -
trunk/Ohana/src/opihi/dvo/avmatch.c
r40523 r41163 114 114 115 115 CoordsFile = abspath("coords.fits", 1024); 116 int status = WriteVectorTableFITS (CoordsFile, "COORDS", vec, 2, FALSE, FALSE, NULL, 0);116 int status = WriteVectorTableFITS (CoordsFile, "COORDS", NULL, vec, 2, FALSE, FALSE, NULL, 0); 117 117 if (!status) goto escape; 118 118 } … … 301 301 vec[i][0].Nelements = Nfound; 302 302 } 303 int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", vec, Nfields + 1, FALSE, FALSE, NULL, 0);303 int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", NULL, vec, Nfields + 1, FALSE, FALSE, NULL, 0); 304 304 free (vec[Nfields]->elements.Int); 305 305 free (vec[Nfields]); -
trunk/Ohana/src/opihi/dvo/avperiodomatch.c
r40523 r41163 99 99 100 100 CoordsFile = abspath("coords.fits", 1024); 101 int status = WriteVectorTableFITS (CoordsFile, "COORDS", vec, 2, FALSE, FALSE, NULL, 0);101 int status = WriteVectorTableFITS (CoordsFile, "COORDS", NULL, vec, 2, FALSE, FALSE, NULL, 0); 102 102 if (!status) goto escape; 103 103 free (vec); -
trunk/Ohana/src/opihi/dvo/avselect.c
r40575 r41163 132 132 133 133 CoordsFile = abspath("coords.fits", 1024); 134 int status = WriteVectorTableFITS (CoordsFile, "COORDS", vec, 2, FALSE, FALSE, NULL, 0);134 int status = WriteVectorTableFITS (CoordsFile, "COORDS", NULL, vec, 2, FALSE, FALSE, NULL, 0); 135 135 if (!status) goto escape; 136 136 } … … 327 327 vec[NfieldsOut-1] = RADvec; 328 328 } 329 int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", vec, NfieldsOut, FALSE, FALSE, NULL, 0);329 int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", NULL, vec, NfieldsOut, FALSE, FALSE, NULL, 0); 330 330 if (!status) goto escape; 331 331 } -
trunk/Ohana/src/opihi/dvo/dvo_host_utils.c
r40549 r41163 233 233 // write vectors to a table (this is used by parallel dvo operations, but can be used elsewhere) 234 234 if (ResultFile) { 235 int status = WriteVectorTableFITS (ResultFile, "RESULT", vec, Nvec, FALSE, FALSE, NULL, 0);235 int status = WriteVectorTableFITS (ResultFile, "RESULT", NULL, vec, Nvec, FALSE, FALSE, NULL, 0); 236 236 if (!status) { 237 237 gprint (GP_ERR, "failed to write result file %s\n", ResultFile); -
trunk/Ohana/src/opihi/dvo/images.c
r40165 r41163 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; -
trunk/Ohana/src/opihi/dvo/init.c
r40523 r41163 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"}, -
trunk/Ohana/src/opihi/dvo/mextract.c
r40574 r41163 352 352 // write vectors to a table (this is used by parallel dvo operations, but can be used elsewhere) 353 353 if (RESULT_FILE && !SKIP_RESULTS) { 354 int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", vec, Nreturn, FALSE, FALSE, NULL, 0);354 int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", NULL, vec, Nreturn, FALSE, FALSE, NULL, 0); 355 355 if (!status) goto escape; 356 356 } -
trunk/Ohana/src/opihi/dvo/mmatch.c
r40523 r41163 148 148 // XXX this is now set for both cases... 149 149 CoordsFile = abspath("coords.fits", 1024); 150 int status = WriteVectorTableFITS (CoordsFile, "COORDS", vec, 2, FALSE, FALSE, NULL, 0);150 int status = WriteVectorTableFITS (CoordsFile, "COORDS", NULL, vec, 2, FALSE, FALSE, NULL, 0); 151 151 if (!status) goto escape; 152 152 } … … 349 349 vec[Nfields-1] = IDXvec; 350 350 } 351 int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", vec, Nfields, FALSE, FALSE, NULL, 0);351 int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", NULL, vec, Nfields, FALSE, FALSE, NULL, 0); 352 352 if (!status) goto escape; 353 353 }
Note:
See TracChangeset
for help on using the changeset viewer.
