Changeset 33580
- Timestamp:
- Mar 21, 2012, 1:16:44 PM (14 years ago)
- Location:
- branches/eam_branches/ipp-20111122/Ohana/src/relastro/src
- Files:
-
- 12 edited
-
ImageOps.c (modified) (6 diffs)
-
UpdateObjectOffsets.c (modified) (2 diffs)
-
UpdateObjects.c (modified) (1 diff)
-
args.c (modified) (1 diff)
-
bcatalog.c (modified) (4 diffs)
-
high_speed_catalogs.c (modified) (2 diffs)
-
high_speed_objects.c (modified) (2 diffs)
-
load_catalogs.c (modified) (1 diff)
-
relastro.c (modified) (1 diff)
-
relastro_merge_source.c (modified) (2 diffs)
-
relastro_objects.c (modified) (2 diffs)
-
save_catalogs.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/ImageOps.c
r33568 r33580 431 431 } 432 432 433 int NoffRAave = 0; int NoffRAori = 0; 434 int NoffDECave = 0; int NoffDECori = 0; 435 433 436 for (i = 0; i < N_onImage[im]; i++) { 434 437 m = ImageToMeasure[im][i]; … … 459 462 // NOTE: This should never happen, or our StarMap tests are not working 460 463 if (fabs(dR) > 3.0*ADDSTAR_RADIUS) { 461 fprintf (stderr, "measurement is far from average location (R): %f %f (%f %f)\n", catalog[c].average[n].R, catalog[c].average[n].D, dR, dD); 462 dump_measures (&catalog[c].average[n], catalog[c].measure); 464 NoffRAave ++; 465 if (VERBOSE2) { 466 fprintf (stderr, "measurement is far from average location (R): %f %f (%f %f)\n", catalog[c].average[n].R, catalog[c].average[n].D, dR, dD); 467 dump_measures (&catalog[c].average[n], catalog[c].measure); 468 } 463 469 // abort (); 464 470 } 465 471 if (fabs(dD) > 3.0*ADDSTAR_RADIUS) { 466 fprintf (stderr, "measurement is far from average location (D): %f %f (%f %f)\n", catalog[c].average[n].R, catalog[c].average[n].D, dR, dD); 467 dump_measures (&catalog[c].average[n], catalog[c].measure); 472 NoffDECave ++; 473 if (VERBOSE2) { 474 fprintf (stderr, "measurement is far from average location (D): %f %f (%f %f)\n", catalog[c].average[n].R, catalog[c].average[n].D, dR, dD); 475 dump_measures (&catalog[c].average[n], catalog[c].measure); 476 } 468 477 // abort (); 469 478 } … … 471 480 // complain if the new location is far from the old location 472 481 if (fabs(catalog[c].measureT[m].dR - dR) > DPOS_MAX_ASEC) { 473 fprintf (stderr, "measurement is far from original location (R): %f %f (%f %f)\n", catalog[c].average[n].R, catalog[c].average[n].D, dR, dD); 474 dump_measures (&catalog[c].average[n], catalog[c].measure); 482 NoffRAori ++; 483 if (VERBOSE2) { 484 fprintf (stderr, "measurement is far from original location (R): %f %f (%f %f)\n", catalog[c].average[n].R, catalog[c].average[n].D, dR, dD); 485 dump_measures (&catalog[c].average[n], catalog[c].measure); 486 } 475 487 // abort(); 476 488 } 477 489 if (fabs(measure[0].dD - dD) > DPOS_MAX_ASEC) { 478 fprintf (stderr, "measurement is far from original location (D): %f %f (%f %f)\n", catalog[c].average[n].R, catalog[c].average[n].D, dR, dD); 479 dump_measures (&catalog[c].average[n], catalog[c].measure); 480 // abort(); 490 NoffDECori ++; 491 if (VERBOSE2) { 492 fprintf (stderr, "measurement is far from original location (D): %f %f (%f %f)\n", catalog[c].average[n].R, catalog[c].average[n].D, dR, dD); 493 dump_measures (&catalog[c].average[n], catalog[c].measure); 494 } // abort(); 481 495 } 482 496 … … 502 516 } 503 517 518 int Noff = NoffRAave + NoffDECave + NoffRAori + NoffDECori; 519 if (VERBOSE && (Noff > 0)) fprintf (stderr, "Noff ave RA %d, Noff ave DEC %d, Noff ori RA %d, Noff ori DEC %d\n", NoffRAave, NoffDECave, NoffRAori, NoffDECori); 504 520 saveOffsets (dPos, nPos, im); 505 521 … … 739 755 assert(catalog[0].Nsecfilt == Nsecfilt); 740 756 741 if (VERBOSE ) fprintf (stderr, "marking poor measures\n");757 if (VERBOSE2) fprintf (stderr, "marking poor measures\n"); 742 758 Nmax = 0; 743 759 for (i = 0; i < catalog[0].Naverage; i++) { … … 831 847 assert(catalog[0].Nsecfilt == Nsecfilt); 832 848 833 if (VERBOSE ) fprintf (stderr, "marking poor measures\n");849 if (VERBOSE2) fprintf (stderr, "marking poor measures\n"); 834 850 Nmax = 0; 835 851 for (i = 0; i < catalog[0].Naverage; i++) { -
branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/UpdateObjectOffsets.c
r33547 r33580 24 24 25 25 // does this host ID match the desired location for the table? 26 if ( PARALLEL &&!HostTableTestHost(skylist[0].regions[i], hostID)) continue;26 if (!HostTableTestHost(skylist[0].regions[i], hostID)) continue; 27 27 28 28 // define the catalog file name … … 37 37 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 38 38 39 if (!dvo_catalog_open (&catalog, skylist[0].regions[i], VERBOSE , "w")) {39 if (!dvo_catalog_open (&catalog, skylist[0].regions[i], VERBOSE2, "w")) { 40 40 fprintf (stderr, "ERROR: failure reading catalog %s\n", catalog.filename); 41 41 exit (1); 42 42 } 43 43 if (!catalog.Naves_disk) { 44 if (VERBOSE ) fprintf (stderr, "no data in %s, skipping\n", catalog.filename);44 if (VERBOSE2) fprintf (stderr, "no data in %s, skipping\n", catalog.filename); 45 45 dvo_catalog_unlock (&catalog); 46 46 dvo_catalog_free (&catalog); -
branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/UpdateObjects.c
r33571 r33580 83 83 for (i = 0; i < Ncatalog; i++) { 84 84 85 if (VERBOSE ) fprintf (stderr, "astrometrize catalog %d : "OFF_T_FMT" ave, "OFF_T_FMT" meas\n", i, catalog[i].Naverage, catalog[i].Nmeasure);85 if (VERBOSE2) fprintf (stderr, "astrometrize catalog %d : "OFF_T_FMT" ave, "OFF_T_FMT" meas\n", i, catalog[i].Naverage, catalog[i].Nmeasure); 86 86 87 87 Nave = Npar = Npm = Nskip = 0; -
branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/args.c
r33571 r33580 44 44 remove_argument (N, &argc, argv); 45 45 FIT_TARGET = TARGET_UPDATE_OBJECTS; 46 } 47 48 if ((N = get_argument (argc, argv, "-update-offsets"))) { 49 remove_argument (N, &argc, argv); 50 FIT_TARGET = TARGET_UPDATE_OFFSETS; 46 51 } 47 52 -
branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/bcatalog.c
r33568 r33580 128 128 LimitDensityCatalog_ByNmeasure (subcatalog, catalog); 129 129 } else { 130 if (VERBOSE ) {130 if (VERBOSE2) { 131 131 char *basename = filebasename (catalog[0].filename); 132 132 fprintf (stderr, "subset of "OFF_T_FMT" ("OFF_T_FMT" total) stars, "OFF_T_FMT" ("OFF_T_FMT" total) measures for catalog %s\n", … … 230 230 } 231 231 232 if (VERBOSE ) {232 if (VERBOSE2) { 233 233 char *basename = filebasename (oldcatalog[0].filename); 234 234 fprintf (stderr, "limited to "OFF_T_FMT" ("OFF_T_FMT" subset, "OFF_T_FMT" total) stars, "OFF_T_FMT" ("OFF_T_FMT" subset, "OFF_T_FMT" total) measures for catalog %s\n", … … 275 275 off_t Nmax = MaxDensityValue * AREA; 276 276 if (subcatalog[0].Naverage <= Nmax) { 277 if (VERBOSE ) {277 if (VERBOSE2) { 278 278 fprintf (stderr, "subcatalog has less than the max density\n"); 279 279 } … … 328 328 } 329 329 330 if (VERBOSE ) {330 if (VERBOSE2) { 331 331 fprintf (stderr, "limited to "OFF_T_FMT" of "OFF_T_FMT" stars ("OFF_T_FMT" of "OFF_T_FMT" measures) for catalog %s\n", 332 332 Nmax, subcatalog[0].Naverage, Nmeasure, subcatalog[0].Nmeasure, catalog[0].filename); -
branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/high_speed_catalogs.c
r33547 r33580 23 23 24 24 // does this host ID match the desired location for the table? 25 if ( PARALLEL &&!HostTableTestHost(skylist[0].regions[i], hostID)) continue;25 if (!HostTableTestHost(skylist[0].regions[i], hostID)) continue; 26 26 27 27 // set up the basic catalog info … … 34 34 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 35 35 36 if (!dvo_catalog_open (&catalog, skylist[0].regions[i], VERBOSE , "r")) {36 if (!dvo_catalog_open (&catalog, skylist[0].regions[i], VERBOSE2, "r")) { 37 37 fprintf (stderr, "ERROR: failure reading catalog %s\n", catalog.filename); 38 38 exit (1); 39 39 } 40 40 if (!catalog.Naves_disk) { 41 if (VERBOSE ) fprintf (stderr, "no data in %s, skipping\n", catalog.filename);41 if (VERBOSE2) fprintf (stderr, "no data in %s, skipping\n", catalog.filename); 42 42 dvo_catalog_unlock (&catalog); 43 43 dvo_catalog_free (&catalog); -
branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/high_speed_objects.c
r33540 r33580 37 37 catalogOut.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 38 38 39 if (!dvo_catalog_open (&catalogOut, region, VERBOSE ,"w")) {39 if (!dvo_catalog_open (&catalogOut, region, VERBOSE2,"w")) { 40 40 fprintf (stderr, "ERROR: failure to open catalog file %s\n", 41 41 filename); … … 274 274 275 275 fprintf (stderr, "found %d matches\n", Nmatch); 276 dvo_catalog_save (&catalogOut, VERBOSE );276 dvo_catalog_save (&catalogOut, VERBOSE2); 277 277 dvo_catalog_unlock (&catalogOut); 278 278 dvo_catalog_free (&catalogOut); -
branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/load_catalogs.c
r33568 r33580 24 24 25 25 // does this host ID match the desired location for the table? 26 if ( PARALLEL &&!HostTableTestHost(skylist[0].regions[i], hostID)) continue;26 if (!HostTableTestHost(skylist[0].regions[i], hostID)) continue; 27 27 28 28 // we only allow output if we do not use a subset. in this case, -
branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/relastro.c
r33448 r33580 32 32 exit (0); 33 33 34 case TARGET_UPDATE_OFFSETS: 35 // iterate over catalogs to make detection coordinates consistant 36 UpdateObjectOffsets (skylist, 0, NULL); 37 34 38 default: 35 39 fprintf (stderr, "impossible!\n"); -
branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/relastro_merge_source.c
r33448 r33580 47 47 catalog_src.Nsecfilt = GetPhotcodeNsecfilt (); 48 48 49 if (!dvo_catalog_open (&catalog_src, region_src, VERBOSE , "w")) {49 if (!dvo_catalog_open (&catalog_src, region_src, VERBOSE2, "w")) { 50 50 fprintf (stderr, "ERROR: failure reading catalog %s\n", catalog_src.filename); 51 51 exit (1); … … 122 122 resort_catalog (&catalog_src); 123 123 124 dvo_catalog_save (&catalog_src, VERBOSE );124 dvo_catalog_save (&catalog_src, VERBOSE2); 125 125 dvo_catalog_unlock (&catalog_src); 126 126 dvo_catalog_free (&catalog_src); -
branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/relastro_objects.c
r33547 r33580 35 35 36 36 // does this host ID match the desired location for the table? 37 if ( PARALLEL &&!HostTableTestHost(skylist[0].regions[i], hostID)) continue;37 if (!HostTableTestHost(skylist[0].regions[i], hostID)) continue; 38 38 39 39 // set up the basic catalog info … … 47 47 48 48 // loads Average, Measure, SecFilt 49 if (!dvo_catalog_open (&catalog, skylist[0].regions[i], VERBOSE , "w")) {49 if (!dvo_catalog_open (&catalog, skylist[0].regions[i], VERBOSE2, "w")) { 50 50 fprintf (stderr, "ERROR: failure reading catalog %s\n", catalog.filename); 51 51 exit (1); 52 52 } 53 53 if (!catalog.Naves_disk) { 54 if (VERBOSE ) fprintf (stderr, "no data in %s, skipping\n", catalog.filename);54 if (VERBOSE2) fprintf (stderr, "no data in %s, skipping\n", catalog.filename); 55 55 dvo_catalog_unlock (&catalog); 56 56 dvo_catalog_free (&catalog); -
branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/save_catalogs.c
r12731 r33580 8 8 for (i = 0; i < Ncatalog; i++) { 9 9 10 if (VERBOSE ) fprintf (stderr, "saving catalog %s\n", catalog[i].filename);11 dvo_catalog_save (&catalog[i], VERBOSE );10 if (VERBOSE2) fprintf (stderr, "saving catalog %s\n", catalog[i].filename); 11 dvo_catalog_save (&catalog[i], VERBOSE2); 12 12 dvo_catalog_unlock (&catalog[i]); 13 13 dvo_catalog_free (&catalog[i]);
Note:
See TracChangeset
for help on using the changeset viewer.
