- Timestamp:
- Jun 25, 2016, 10:22:40 AM (10 years ago)
- Location:
- trunk/Ohana/src/dvolens/src
- Files:
-
- 3 edited
-
args.c (modified) (2 diffs)
-
update_objects.c (modified) (1 diff)
-
update_objects_catalog.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/dvolens/src/args.c
r39550 r39611 50 50 REPAIR_LENSING_IDS_FROM_WARPS = TRUE; 51 51 remove_argument (N, &argc, argv); 52 } 53 if (REPAIR_LENSING_IDS && REPAIR_LENSING_IDS_FROM_WARPS) { 54 fprintf (stderr, "cannot use both -repair-lensing-ids and -repair-lensing-ids-from-warps, exiting\n"); 55 exit (2); 52 56 } 53 57 … … 193 197 remove_argument (N, &argc, argv); 194 198 } 199 if (REPAIR_LENSING_IDS && REPAIR_LENSING_IDS_FROM_WARPS) { 200 fprintf (stderr, "cannot use both -repair-lensing-ids and -repair-lensing-ids-from-warps, exiting\n"); 201 exit (2); 202 } 195 203 196 204 UPDATE = FALSE; -
trunk/Ohana/src/dvolens/src/update_objects.c
r39537 r39611 169 169 // VERBOSE, VERBOSE2, UPDATE 170 170 171 if (VERBOSE) strextend (&command, "-v"); 172 if (VERBOSE2) strextend (&command, "-vv"); 173 if (UPDATE) strextend (&command, "-update"); 174 if (REPAIR_LENSING_IDS) strextend (&command, "-repair-lensing-ids"); 175 if (UserCatalog) strextend (&command, "-catalog %s", UserCatalog); 171 if (VERBOSE) strextend (&command, "-v"); 172 if (VERBOSE2) strextend (&command, "-vv"); 173 if (UPDATE) strextend (&command, "-update"); 174 if (REPAIR_LENSING_IDS) strextend (&command, "-repair-lensing-ids"); 175 if (REPAIR_LENSING_IDS_FROM_WARPS) strextend (&command, "-repair-lensing-ids-from-warps"); 176 if (UserCatalog) strextend (&command, "-catalog %s", UserCatalog); 176 177 177 178 fprintf (stderr, "command: %s\n", command); -
trunk/Ohana/src/dvolens/src/update_objects_catalog.c
r39550 r39611 46 46 double time4 = 0.0; 47 47 48 int NfixLensing = 0; 49 int NgoodLensing = 0; 48 50 int NmissLensing = 0; 49 51 int NmissWarps = 0; … … 80 82 Lensing *lensing = &catalog->lensing[Loff + Lj]; 81 83 if (lensing->detID == measure->detID) { 82 lensing->oldImID = lensing->imageID; 83 lensing->imageID = measure->imageID; 84 if (lensing->imageID == measure->imageID) { 85 NgoodLensing ++; 86 } else { 87 lensing->oldImID = lensing->imageID; 88 lensing->imageID = measure->imageID; 89 NfixLensing ++; 90 } 84 91 Nmatch ++; 85 92 } … … 357 364 if (REPAIR_LENSING_IDS) fprintf (stderr, "corrected %d lensing IDs, failed on %d lensing IDs\n", Nfixed, Nfailed); 358 365 359 if (REPAIR_LENSING_IDS_FROM_WARPS) fprintf (stderr, " missed %d lensing IDs, %d warps\n", NmissLensing, NmissWarps);366 if (REPAIR_LENSING_IDS_FROM_WARPS) fprintf (stderr, "Ngood %d Nfixed %d missed %d lensing IDs, %d warps\n", NgoodLensing, NfixLensing, NmissLensing, NmissWarps); 360 367 361 368 catalog->Nlensobj = Nlensobj;
Note:
See TracChangeset
for help on using the changeset viewer.
