Changeset 35708
- Timestamp:
- Jun 24, 2013, 8:44:02 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130509/Ohana/src/uniphot
- Files:
-
- 4 edited
-
include/ckids.h (modified) (1 diff)
-
src/initialize_ckids.c (modified) (2 diffs)
-
src/update_catalog_ckids.c (modified) (2 diffs)
-
src/update_dvo_ckids.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130509/Ohana/src/uniphot/include/ckids.h
r35706 r35708 33 33 int update_dvo_ckids_parallel PROTO((SkyList *sky)); 34 34 35 void update_catalog_ckids PROTO((Catalog *catalog ));35 void update_catalog_ckids PROTO((Catalog *catalog, FILE *foutput)); -
branches/eam_branches/ipp-20130509/Ohana/src/uniphot/src/initialize_ckids.c
r35706 r35708 108 108 109 109 UPDATE = FALSE; 110 if ((N = get_argument (argc, argv, "-update"))) { 111 remove_argument (N, &argc, argv); 112 UPDATE = TRUE; 113 } 110 // XXX do not allow update until we have added a modification concept 111 // if ((N = get_argument (argc, argv, "-update"))) { 112 // remove_argument (N, &argc, argv); 113 // UPDATE = TRUE; 114 // } 114 115 115 116 if (argc != 1) usage_ckids(); … … 164 165 165 166 UPDATE = FALSE; 166 if ((N = get_argument (argc, argv, "-update"))) {167 remove_argument (N, &argc, argv);168 UPDATE = TRUE;169 }167 // if ((N = get_argument (argc, argv, "-update"))) { 168 // remove_argument (N, &argc, argv); 169 // UPDATE = TRUE; 170 // } 170 171 171 172 SINGLE_CPT = NULL; -
branches/eam_branches/ipp-20130509/Ohana/src/uniphot/src/update_catalog_ckids.c
r35706 r35708 2 2 void sort_fullIDs (uint64_t *I, int *S, off_t N); 3 3 4 void update_catalog_ckids (Catalog *catalog ) {4 void update_catalog_ckids (Catalog *catalog, FILE *foutput) { 5 5 6 6 // I am looking for duplicate detections based on the image ID + detection ID values … … 58 58 off_t j = seq[i]; 59 59 off_t N = measure[j].averef; 60 fprintf ( stderr, "duplicate entry "OFF_T_FMT" : 0x%08x 0x%08x : 0x%08x : %10.6f %10.6f\n", j, measure[j].imageID, measure[j].detID, measure[j].objID, average[N].R, average[N].D);60 fprintf (foutput, "0x%08x 0x%08x %8.4f %8.4f %5d\n", measure[j].imageID, measure[j].detID, average[N].R, average[N].D, measure[j].photcode); 61 61 } 62 free (fullID); 63 free (seq); 64 free (duplicates); 62 65 63 66 return; -
branches/eam_branches/ipp-20130509/Ohana/src/uniphot/src/update_dvo_ckids.c
r35706 r35708 23 23 update_dvo_ckids_parallel (skylist); 24 24 return TRUE; 25 } 26 27 char filename[256]; 28 snprintf (filename, 256, "dvo.ckimids.%02d.dat", HOST_ID); 29 FILE *foutput = fopen (filename, "w"); 30 if (!foutput) { 31 fprintf (stderr, "failed to open output file %s\n", filename); 32 exit (3); 25 33 } 26 34 … … 52 60 } 53 61 54 update_catalog_ckids (&catalog );62 update_catalog_ckids (&catalog, foutput); 55 63 56 64 if (!UPDATE) { … … 66 74 dvo_catalog_free (&catalog); 67 75 } 76 fclose (foutput); 68 77 69 78 return (TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.
