Changeset 35619
- Timestamp:
- Jun 3, 2013, 8:44:41 AM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130509/Ohana/src/dvomerge
- Files:
-
- 5 edited
-
include/dvomerge.h (modified) (1 diff)
-
src/args.c (modified) (3 diffs)
-
src/dvomergeImageIDs.c (modified) (1 diff)
-
src/dvomergeUpdate_catalogs.c (modified) (2 diffs)
-
src/dvomerge_client.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/include/dvomerge.h
r35594 r35619 26 26 int VERBOSE; 27 27 int VERIFY; 28 int VERIFY_CATALOG_ONLY; 28 29 int IMAGES_ONLY; 29 30 char CATDIR[256]; -
branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src/args.c
r35597 r35619 15 15 /* verify merge status of output tables, but do not modify */ 16 16 VERIFY = FALSE; 17 VERIFY_CATALOG_ONLY = FALSE; 17 18 if ((N = get_argument (*argc, argv, "-verify"))) { 18 19 VERIFY = TRUE; … … 21 22 if ((N = get_argument (*argc, argv, "-check-only"))) { 22 23 VERIFY = TRUE; 24 remove_argument (N, argc, argv); 25 } 26 if ((N = get_argument (*argc, argv, "-verify-catalogs"))) { 27 VERIFY = TRUE; 28 VERIFY_CATALOG_ONLY = TRUE; 23 29 remove_argument (N, argc, argv); 24 30 } … … 144 150 remove_argument (N, argc, argv); 145 151 } 152 if ((N = get_argument (*argc, argv, "-verify-catalogs"))) { 153 VERIFY = TRUE; 154 VERIFY_CATALOG_ONLY = TRUE; 155 remove_argument (N, argc, argv); 156 } 146 157 147 158 /* replace measurement, don't duplicate */ -
branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src/dvomergeImageIDs.c
r34405 r35619 87 87 int status; 88 88 89 if (VERIFY && VERIFY_CATALOG_ONLY) return TRUE; 90 89 91 /*** load input1/Images.dat ***/ 90 92 sprintf (ImageCat, "%s/Images.dat", input); -
branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c
r35594 r35619 167 167 snprintf (IDmapFilename, DVO_MAX_PATH, "%s/IDmap.fits", absoutput); 168 168 169 // save IDmap information 170 if (!IDmapSave (IDmapFilename, IDmap)) { 171 fprintf (stderr, "ERROR: failure to save the image ID map\n"); 172 exit (1); 169 if (!VERIFY_CATALOG_ONLY) { 170 // save IDmap information 171 if (!IDmapSave (IDmapFilename, IDmap)) { 172 fprintf (stderr, "ERROR: failure to save the image ID map\n"); 173 exit (1); 174 } 173 175 } 174 176 … … 198 200 if (VERBOSE) { snprintf (tmpline, DVO_MAX_PATH, "%s -v", command); strcpy (command, tmpline); } 199 201 if (VERIFY) { snprintf (tmpline, DVO_MAX_PATH, "%s -verify", command); strcpy (command, tmpline); } 202 if (VERIFY_CATALOG_ONLY) { snprintf (tmpline, DVO_MAX_PATH, "%s -verify-catalogs", command); strcpy (command, tmpline); } 200 203 if (REPLACE_BY_PHOTCODE) { snprintf (tmpline, DVO_MAX_PATH, "%s -replace", command); strcpy (command, tmpline); } 201 204 -
branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src/dvomerge_client.c
r33963 r35619 55 55 snprintf (IDmapFilename, DVO_MAX_PATH, "%s/IDmap.fits", absoutput); 56 56 57 // save IDmap information 58 IDmap = IDmapLoad (IDmapFilename); 59 if (!IDmap) { 60 fprintf (stderr, "ERROR: failure to save the image ID map\n"); 61 exit (1); 57 if (!VERIFY_CATALOG_ONLY) { 58 // save IDmap information 59 IDmap = IDmapLoad (IDmapFilename); 60 if (!IDmap) { 61 fprintf (stderr, "ERROR: failure to save the image ID map\n"); 62 exit (1); 63 } 62 64 } 63 65
Note:
See TracChangeset
for help on using the changeset viewer.
