Changeset 39536
- Timestamp:
- Apr 16, 2016, 7:01:57 AM (10 years ago)
- Location:
- trunk/Ohana/src/dvomerge
- Files:
-
- 5 edited
-
include/dvomerge.h (modified) (2 diffs)
-
src/LoadCatalog.c (modified) (1 diff)
-
src/args.c (modified) (3 diffs)
-
src/build_links.c (modified) (2 diffs)
-
src/dvomergeUpdate_catalogs.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/dvomerge/include/dvomerge.h
r39342 r39536 57 57 int MATCHED_TABLES; 58 58 int RESET_STARPAR; 59 int RESET_LENSING; 59 60 60 61 int SKIP_MEASURE; … … 281 282 char **load_cptlist (char *filename, int *nlist); 282 283 int ResetStarPar (Catalog *catalog); 284 int ResetLensing (Catalog *catalog); -
trunk/Ohana/src/dvomerge/src/LoadCatalog.c
r39334 r39536 65 65 return TRUE; 66 66 } 67 68 int ResetLensing (Catalog *catalog) { 69 70 off_t i; 71 72 // we are going to delete the lensing values: 73 74 catalog[0].Nlensing = 0; 75 catalog[0].Nlensing_disk = 0; 76 catalog[0].Nlensing_off = 0; 77 78 REALLOCATE (catalog[0].lensing, Lensing, 1); 79 80 for (i = 0; i < catalog[0].Naverage; i++) { 81 catalog[0].average[i].Nlensing = 0; 82 catalog[0].average[i].lensingOffset = -1; 83 } 84 return TRUE; 85 } -
trunk/Ohana/src/dvomerge/src/args.c
r39342 r39536 69 69 } 70 70 71 /* extra error messages */71 /* extra options */ 72 72 RESET_STARPAR = FALSE; 73 73 if ((N = get_argument (*argc, argv, "-reset-starpar"))) { 74 74 RESET_STARPAR = TRUE; 75 remove_argument (N, argc, argv); 76 } 77 RESET_LENSING = FALSE; 78 if ((N = get_argument (*argc, argv, "-reset-lensing"))) { 79 RESET_LENSING = TRUE; 75 80 remove_argument (N, argc, argv); 76 81 } … … 119 124 if ((N = get_argument (*argc, argv, "-restrict-cpt"))) { 120 125 remove_argument (N, argc, argv); 121 CPTLIST_FILENAME = strcreate (argv[N]); 126 char *tmppath = strcreate (argv[N]); 127 CPTLIST_FILENAME = abspath(tmppath, DVO_MAX_PATH); 128 free (tmppath); 122 129 CPTLIST = load_cptlist (CPTLIST_FILENAME, &NCPTLIST); 123 130 remove_argument (N, argc, argv); … … 350 357 remove_argument (N, argc, argv); 351 358 } 359 RESET_LENSING = FALSE; 360 if ((N = get_argument (*argc, argv, "-reset-lensing"))) { 361 RESET_LENSING = TRUE; 362 remove_argument (N, argc, argv); 363 } 352 364 353 365 /* extra error messages */ -
trunk/Ohana/src/dvomerge/src/build_links.c
r39457 r39536 408 408 off_t *next_star; 409 409 410 if (!starpar) return NULL; 411 if (SKIP_STARPAR) return NULL; 412 410 413 N = 0; 411 414 … … 565 568 off_t *next_galp; 566 569 570 if (galphot) return NULL; 571 if (SKIP_GALPHOT) return NULL; 572 567 573 N = 0; 568 574 -
trunk/Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c
r39350 r39536 184 184 myAssert (MATCHED_TABLES, "must use -matched-tables to reset starpar"); 185 185 ResetStarPar (&outcatalog); 186 } 187 if (RESET_LENSING) { 188 myAssert (MATCHED_TABLES, "must use -matched-tables to reset lensing"); 189 ResetLensing (&outcatalog); 186 190 } 187 191 … … 328 332 if (UPDATE_CATFORMAT) { strextend (&command, "-update-catformat %s", UPDATE_CATFORMAT); } 329 333 if (UPDATE_CATCOMPRESS) { strextend (&command, "-update-catcompress %s", UPDATE_CATCOMPRESS); } 330 if (CPTLIST_FILENAME) { strextend (&command, "-restrict-cpt %s", CPTLIST_FILENAME); }331 334 if (REPAIR_BY_OBJID) { strextend (&command, "-repair-by-objid"); } 332 335 … … 337 340 338 341 if (RESET_STARPAR) { strextend (&command, "-reset-starpar"); } 342 if (RESET_LENSING) { strextend (&command, "-reset-lensing"); } 339 343 if (ALLOW_MISSING_INPUT_IMAGES) { strextend (&command, "-allow-missing-input-images"); } 340 344 if (CPTLIST_FILENAME) { strextend (&command, "-restrict-cpt %s", CPTLIST_FILENAME); }
Note:
See TracChangeset
for help on using the changeset viewer.
