- Timestamp:
- Apr 21, 2014, 5:42:34 AM (12 years ago)
- Location:
- branches/eam_branches/ps2-tc3-20130727
- Files:
-
- 10 edited
-
. (modified) (1 prop)
-
Ohana (modified) (1 prop)
-
Ohana/src/dvomerge (modified) (1 prop)
-
Ohana/src/dvomerge/src/dvo_image_merge_dbs.c (modified) (1 diff)
-
Ohana/src/dvomerge/src/dvomergeUpdate.c (modified) (2 diffs)
-
Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c (modified) (4 diffs)
-
Ohana/src/dvomerge/src/dvoverify_args.c (modified) (1 diff)
-
Ohana/src/dvomerge/src/dvoverify_catalogs.c (modified) (1 diff)
-
Ohana/src/dvomerge/src/dvoverify_utils.c (modified) (1 diff)
-
Ohana/src/dvomerge/src/merge_catalogs_old.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ps2-tc3-20130727
- Property svn:mergeinfo changed
-
branches/eam_branches/ps2-tc3-20130727/Ohana
- Property svn:mergeinfo deleted
-
branches/eam_branches/ps2-tc3-20130727/Ohana/src/dvomerge
- Property svn:mergeinfo deleted
-
branches/eam_branches/ps2-tc3-20130727/Ohana/src/dvomerge/src/dvo_image_merge_dbs.c
r34277 r36680 167 167 off_t i, oldID, newID; 168 168 169 if (!IDmap->old) { 170 fprintf (stderr, "input database has image IDs, but no Image table\n"); 171 return FALSE; 172 } 173 174 off_t lastID = IDmap->old[IDmap->Nmap-1]; 175 169 176 for (i = 0; i < catalog[0].Nmeasure; i++) { 170 177 oldID = catalog[0].measure[i].imageID; 171 178 if (oldID == 0) continue; 172 179 173 if (!IDmap->old) {174 fprintf (stderr, "input database has image IDs, but no Image table\n");175 }176 177 180 newID = dvo_map_image_ID (IDmap, oldID); 178 181 if (newID == 0) { 182 if (oldID > lastID) { 183 fprintf (stderr, "problem with image IDs : input out of range\n"); 184 fprintf (stderr, "old ID: "OFF_T_FMT", last ID: "OFF_T_FMT"\n", oldID, lastID); 185 exit (2); 186 } 179 187 if (!IDmap->notFound[oldID]) { 180 188 fprintf (stderr, "cannot find image ID "OFF_T_FMT"\n", oldID); -
branches/eam_branches/ps2-tc3-20130727/Ohana/src/dvomerge/src/dvomergeUpdate.c
r35765 r36680 111 111 SetPhotcodeTable(NULL); 112 112 113 dvomergeUpdate_catalogs (input, output, outsky, inlist, NsecfiltInput, NsecfiltOutput, &IDmap, secfiltMap);113 int status = dvomergeUpdate_catalogs (input, output, outsky, inlist, NsecfiltInput, NsecfiltOutput, &IDmap, secfiltMap); 114 114 115 115 // save the output sky table copy … … 123 123 gettimeofday (&stop, NULL); 124 124 dtime = DTIME (stop, start); 125 126 if (!status) { 127 fprintf (stderr, "ERROR: elapsed time %9.4f sec\n", dtime); 128 exit (3); 129 } 130 125 131 fprintf (stderr, "SUCCESS: elapsed time %9.4f sec\n", dtime); 126 127 132 exit (0); 128 133 } -
branches/eam_branches/ps2-tc3-20130727/Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c
r35765 r36680 140 140 } 141 141 142 dvo_update_image_IDs (IDmap, &incatalog); 143 142 144 // merge input into the appropriate output tables 143 145 for (j = 0; j < outlist[0].Nregions; j++) { … … 156 158 LoadCatalog (&outcatalog, outlist[0].regions[j], outcatalog.filename, "w", NsecfiltOutput); 157 159 158 dvo_update_image_IDs (IDmap, &incatalog);159 160 merge_catalogs_old (outlist[0].regions[j], &outcatalog, &incatalog, RADIUS, secfiltMap); 160 161 161 162 outcatalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; 162 163 163 if (outstat[ i].missed) {164 if (outstat[j].missed) { 164 165 dmhObjectAdd (outstat[j].history, &outcatalog.header, inStats); 165 166 } … … 248 249 if (FORCE_MERGE) { snprintf (tmpline, DVO_MAX_PATH, "%s -force-merge", command); strcpy (command, tmpline); } 249 250 251 // add some config variables: 252 snprintf (tmpline, DVO_MAX_PATH, "%s -D CATMODE %s", command, CATMODE); strcpy (command, tmpline); 253 snprintf (tmpline, DVO_MAX_PATH, "%s -D CATFORMAT %s", command, CATFORMAT); strcpy (command, tmpline); 254 snprintf (tmpline, DVO_MAX_PATH, "%s -D SKY_DEPTH %d", command, SKY_DEPTH); strcpy (command, tmpline); 255 250 256 fprintf (stderr, "command: %s\n", command); 251 257 … … 275 281 } 276 282 if (!PARALLEL_MANUAL && !PARALLEL_SERIAL) { 277 HostTableWaitJobsGetIO (table, __FILE__, __LINE__, VERBOSE); 283 int status = HostTableWaitJobsGetIO (table, __FILE__, __LINE__, VERBOSE); 284 if (!status) { 285 fprintf (stderr, "error running one of the remote clients\n"); 286 return status; 287 } 278 288 } 279 289 -
branches/eam_branches/ps2-tc3-20130727/Ohana/src/dvomerge/src/dvoverify_args.c
r34405 r36680 56 56 } 57 57 58 /*** dvoverify -parallel (dvoverify_client, actually) ignores this argument 59 dvoverify should save a subset table of just the IDs, and dvoverify_client should load it 60 dvoverify -cpt should have CHECK_IMAGE_ID = F as default ***/ 61 58 62 CHECK_IMAGE_ID = TRUE; 59 63 if ((N = get_argument (*argc, argv, "-skip-image-ids"))) { -
branches/eam_branches/ps2-tc3-20130727/Ohana/src/dvomerge/src/dvoverify_catalogs.c
r34405 r36680 143 143 continue; 144 144 } 145 fscanf (results, "%*s %d %*s %d", &NbadHost, &NNotSortedHost); 145 int Nresults = fscanf (results, "%*s %d %*s %d", &NbadHost, &NNotSortedHost); 146 if (Nresults != 2) { 147 fprintf (stderr, "warning: failure scanning results\n"); 148 fclose (results); 149 continue; 150 } 146 151 *Nbad += NbadHost; 147 152 NNotSorted += NNotSortedHost; -
branches/eam_branches/ps2-tc3-20130727/Ohana/src/dvomerge/src/dvoverify_utils.c
r35457 r36680 302 302 for (j = 0; j < catalog[0].average[i].Nmeasure; j++) { 303 303 id = catalog[0].measure[m+j].imageID; 304 if (id == 0) continue; // detections from ref photcodes can (should) have unset image IDs 304 305 if (id > maxID) { 305 306 Nfail ++; -
branches/eam_branches/ps2-tc3-20130727/Ohana/src/dvomerge/src/merge_catalogs_old.c
r35416 r36680 76 76 tcoords.pc1_2 = tcoords.pc2_1 = 0.0; 77 77 tcoords.Npolyterms = 1; 78 strcpy (tcoords.ctype, " RA---ARC");78 strcpy (tcoords.ctype, "DEC--ARC"); 79 79 80 80 if (VERBOSE) fprintf (stderr, "merging %s into %s\n", input[0].filename, output[0].filename);
Note:
See TracChangeset
for help on using the changeset viewer.
