Changeset 42133
- Timestamp:
- Mar 21, 2022, 12:07:26 PM (4 years ago)
- Location:
- trunk/Ohana/src/dvomerge
- Files:
-
- 6 edited
-
include/dvomerge.h (modified) (1 diff)
-
src/args.c (modified) (2 diffs)
-
src/dvo_image_merge_dbs.c (modified) (1 diff)
-
src/dvomergeUpdate.c (modified) (1 diff)
-
src/dvomergeUpdate_catalogs.c (modified) (1 diff)
-
src/dvomergeUpdate_threaded.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/dvomerge/include/dvomerge.h
r41341 r42133 65 65 int RESET_LENSING; 66 66 67 int SKIP_IMAGES; 67 68 int SKIP_MEASURE; 68 69 int SKIP_MISSING; -
trunk/Ohana/src/dvomerge/src/args.c
r41341 r42133 39 39 remove_argument (N, argc, argv); 40 40 } 41 42 /* extra error messages */ 43 MATCHED_TABLES = FALSE; 41 SKIP_IMAGES = FALSE; 42 if ((N = get_argument (*argc, argv, "-skip-images"))) { 43 SKIP_IMAGES = TRUE; 44 remove_argument (N, argc, argv); 45 } 46 47 /* extra error messages */ 48 MATCHED_TABLES = TRUE; 44 49 if ((N = get_argument (*argc, argv, "-matched-tables"))) { 45 50 MATCHED_TABLES = TRUE; 51 remove_argument (N, argc, argv); 52 } 53 if ((N = get_argument (*argc, argv, "-unmatched-tables"))) { 54 MATCHED_TABLES = FALSE; 46 55 remove_argument (N, argc, argv); 47 56 } … … 77 86 SKIP_GALPHOT = TRUE; 78 87 remove_argument (N, argc, argv); 88 } 89 90 if (SKIP_IMAGES && !(SKIP_MEASURE || SKIP_LENSING)) { 91 fprintf (stderr, "WARNING: skipping images but merging measure and lensing tables: imageIDs will not be correct\n"); 92 fprintf (stderr, "type Ctrl-C within 5 seconds to cancel\n"); 93 for (int i = 5; i > 0; i--) { 94 fprintf (stderr, "%d.. ", i); 95 usleep (1000000); 96 } 97 fprintf (stderr, "\n"); 79 98 } 80 99 -
trunk/Ohana/src/dvomerge/src/dvo_image_merge_dbs.c
r39329 r42133 404 404 off_t i; 405 405 406 for (i = 0; i < IDmap->oldIDmax + 1; i++) {406 for (i = 0; IDmap->notFoundMeasure && (i < IDmap->oldIDmax + 1); i++) { 407 407 if (!IDmap->notFoundMeasure[i]) continue; 408 408 fprintf (stderr, "SKIP IMAGE MEASURE: "OFF_T_FMT", %d measures\n", i, IDmap->notFoundMeasure[i]); 409 409 } 410 for (i = 0; i < IDmap->oldIDmax + 1; i++) {410 for (i = 0; IDmap->notFoundLensing && (i < IDmap->oldIDmax + 1); i++) { 411 411 if (!IDmap->notFoundLensing[i]) continue; 412 412 fprintf (stderr, "SKIP IMAGE LENSING: "OFF_T_FMT", %d lensings\n", i, IDmap->notFoundLensing[i]); -
trunk/Ohana/src/dvomerge/src/dvomergeUpdate.c
r39301 r42133 81 81 } 82 82 83 if (CONTINUE) { 84 // need to determine the mapping from the input to the output images 85 dvomergeImagesGetMap (&IDmap, input, output); 86 } else { 87 dvomergeImagesUpdate (&IDmap, input, output); 88 if (IMAGES_ONLY) exit (0); 83 // do not merge the images unless requested 84 if (!SKIP_IMAGES) { 85 if (CONTINUE) { 86 // need to determine the mapping from the input to the output images 87 dvomergeImagesGetMap (&IDmap, input, output); 88 } else { 89 dvomergeImagesUpdate (&IDmap, input, output); 90 if (IMAGES_ONLY) exit (0); 91 } 89 92 } 90 93 91 94 // load the sky table for the existing database 92 95 insky = SkyTableLoadOptimal (input, NULL, NULL, FALSE, SKY_DEPTH_HST, VERBOSE); -
trunk/Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c
r41341 r42133 163 163 } 164 164 165 // for SKIP_IMAGES, this is a NO-OP 165 166 dvo_update_image_IDs (IDmap, &incatalog); 166 167 -
trunk/Ohana/src/dvomerge/src/dvomergeUpdate_threaded.c
r38986 r42133 69 69 LoadCatalog (&outcatalog, outlist[0].regions[j], outlist[0].filename[j], "w", threadData->NsecfiltOutput); 70 70 71 // for SKIP_IMAGES, this is a NO-OP 71 72 dvo_update_image_IDs (threadData->IDmap, &incatalog); 72 73 merge_catalogs_old (&threadData->outsky->regions[j], &outcatalog, &incatalog, RADIUS, threadData->secfiltMap); … … 183 184 } 184 185 185 if (CONTINUE) { 186 // need to determine the mapping from the input to the output images 187 dvomergeImagesGetMap (&IDmap, input, output); 188 } else { 189 dvomergeImagesUpdate (&IDmap, input, output); 190 if (IMAGES_ONLY) exit (0); 186 if (!SKIP_IMAGES) { 187 if (CONTINUE) { 188 // need to determine the mapping from the input to the output images 189 dvomergeImagesGetMap (&IDmap, input, output); 190 } else { 191 dvomergeImagesUpdate (&IDmap, input, output); 192 if (IMAGES_ONLY) exit (0); 193 } 191 194 } 192 195
Note:
See TracChangeset
for help on using the changeset viewer.
