Changeset 36798
- Timestamp:
- Jun 2, 2014, 12:42:58 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140423/Ohana/src/relastro/src/bcatalog.c
r36797 r36798 6 6 static int Nskip2 = 0; 7 7 8 FILE *fbogus = NULL; 8 9 static int NskipBogus = 0; 9 10 … … 57 58 ID_STAR_USE_PAR | 58 59 ID_STAR_NO_ASTROM ; 60 61 if (ExcludeBogus && (fbogus == NULL)) { 62 char name[1024]; 63 snprintf (name, 1024, "%s/bogus.%02d.dat", CATDIR, HOST_ID); 64 fbogus = fopen (name, "w"); 65 if (!fbogus) { 66 fprintf (stderr, "trouble opening bogus detection dump : %s\n", name); 67 } 68 } 59 69 60 70 /* exclude stars not in range or with too few measurements */ … … 116 126 NskipBogus ++; 117 127 if (TRUE || VERBOSE2) { 118 fprintf (stderr, "exclude bogus: %10.6f %10.6f : %10.6f %10.6f : %6.2f %6.2f : %6.2f\n", catalog[0].average[i].R, catalog[0].average[i].D, Ri, Di, Xi, Yi, radius); 128 FILE *foutput = fbogus ? fbogus : stderr; 129 char *date = ohana_sec_to_date(catalog[0].measure[offset].t); 130 fprintf (foutput, "exclude bogus: %10.6f %10.6f : %10.6f %10.6f : %6.2f %6.2f : %6.2f : %5d %s\n", catalog[0].average[i].R, catalog[0].average[i].D, Ri, Di, Xi, Yi, radius, catalog[0].measure[offset].photcode, date); 131 free (date); 119 132 } 120 133 continue; … … 192 205 193 206 void bcatalog_show_skips () { 207 if (ExcludeBogus) { 208 if (fbogus) fclose (fbogus); 194 209 fprintf (stderr, "NskipBogus: %d\n", NskipBogus); 195 210 // fprintf (stderr, "Nskip: %d, %d\n", Nskip1, Nskip2); 196 211 // fprintf (stderr, "Nkeep: %d, %d\n", Nkeep1, Nkeep2); 212 } 197 213 } 198 214
Note:
See TracChangeset
for help on using the changeset viewer.
