Changeset 35416 for trunk/Ohana/src/relastro
- Timestamp:
- Apr 19, 2013, 4:31:05 PM (13 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 8 edited
- 2 copied
-
. (modified) (1 prop)
-
src/relastro/Makefile (modified) (2 diffs)
-
src/relastro/include/relastro.h (modified) (2 diffs)
-
src/relastro/src (modified) (1 prop)
-
src/relastro/src/UpdateObjects.c (modified) (5 diffs)
-
src/relastro/src/args.c (modified) (7 diffs)
-
src/relastro/src/hpm_catalogs.c (copied) (copied from branches/eam_branches/ipp-20130307/Ohana/src/relastro/src/hpm_catalogs.c )
-
src/relastro/src/hpm_objects.c (copied) (copied from branches/eam_branches/ipp-20130307/Ohana/src/relastro/src/hpm_objects.c )
-
src/relastro/src/relastro.c (modified) (1 diff)
-
src/relastro/src/relastro_client.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
trunk/Ohana/src/relastro/Makefile
r33652 r35416 64 64 $(SRC)/high_speed_objects.$(ARCH).o \ 65 65 $(SRC)/high_speed_utils.$(ARCH).o \ 66 $(SRC)/hpm_catalogs.$(ARCH).o \ 67 $(SRC)/hpm_objects.$(ARCH).o \ 66 68 $(SRC)/relastro_merge_source.$(ARCH).o \ 67 69 $(SRC)/resort_catalog.$(ARCH).o \ … … 106 108 $(SRC)/high_speed_objects.$(ARCH).o \ 107 109 $(SRC)/high_speed_utils.$(ARCH).o \ 110 $(SRC)/hpm_catalogs.$(ARCH).o \ 111 $(SRC)/hpm_objects.$(ARCH).o \ 108 112 $(SRC)/relastro_merge_source.$(ARCH).o \ 109 113 $(SRC)/resort_catalog.$(ARCH).o \ -
trunk/Ohana/src/relastro/include/relastro.h
r35105 r35416 20 20 typedef enum {FIT_NONE, FIT_AVERAGE, FIT_PM_ONLY, FIT_PAR_ONLY, FIT_PM_AND_PAR} FitMode; 21 21 22 typedef enum {TARGET_NONE, TARGET_SIMPLE, TARGET_CHIPS, TARGET_MOSAICS, TARGET_HIGH_SPEED, TARGET_MERGE_SOURCE, TARGET_UPDATE_OBJECTS, TARGET_UPDATE_OFFSETS, TARGET_LOAD_OBJECTS } FitTarget;22 typedef enum {TARGET_NONE, TARGET_SIMPLE, TARGET_CHIPS, TARGET_MOSAICS, TARGET_HIGH_SPEED, TARGET_MERGE_SOURCE, TARGET_UPDATE_OBJECTS, TARGET_UPDATE_OFFSETS, TARGET_LOAD_OBJECTS, TARGET_HPM} FitTarget; 23 23 24 24 typedef enum { … … 442 442 443 443 PhotCode **ParsePhotcodeList (char *rawlist, int *nphotcodes, int needAve); 444 445 int hpm_catalogs (SkyTable *sky, SkyList *skylist, int hostID, char *hostpath); 446 int hpm_catalogs_parallel (SkyList *skylist); 447 int hpm_objects (SkyRegion *region, Catalog *catalog); -
trunk/Ohana/src/relastro/src
- Property svn:mergeinfo set to
-
trunk/Ohana/src/relastro/src/UpdateObjects.c
r34749 r35416 224 224 225 225 if ((mode == FIT_PM_ONLY) || (mode == FIT_PM_AND_PAR)) { 226 // project all of the R,D coordinates to a plane centered on this coordinate set226 // project all of the R,D coordinates to a plane centered on this coordinate. set 227 227 // the times to be relative to Tmean (this is required for parallax as well) 228 228 for (k = 0; k < N; k++) { … … 270 270 catalog[i].average[j].flags |= ID_STAR_FIT_PAR; 271 271 Npar ++; 272 } else { 273 // need to set mode = FIT_PM_ONLY if we do not fit for parallax 274 mode = FIT_PM_ONLY; 272 275 } 273 276 } … … 321 324 fit.uD); 322 325 323 // make sure that the fit succeeded326 // make sure that the fit succeeded 324 327 status = TRUE; 325 328 status &= finite(fit.Ro); … … 364 367 catalog[i].average[j].ChiSqPM = fitPM.chisq; 365 368 catalog[i].average[j].ChiSqPar = fitPAR.chisq; 366 catalog[i].average[j].Tmean = (Tmean * 86400 * 365.2 6) + T2000;367 catalog[i].average[j].Trange = (Trange * 86400 * 365.2 6);369 catalog[i].average[j].Tmean = (Tmean * 86400 * 365.25) + T2000; 370 catalog[i].average[j].Trange = (Trange * 86400 * 365.25); 368 371 catalog[i].average[j].Npos = fit.Nfit; 369 372 if (XVERB) fprintf (stderr, "%f %f -> %f %f (%f,%f) pm=(%f %f) chisq=(%f, %f, %f)\n", … … 385 388 } 386 389 387 fprintf (stderr, "fitted "OFF_T_FMT" objects ("OFF_T_FMT" ave, "OFF_T_FMT" pm, "OFF_T_FMT" par), skipped "OFF_T_FMT"\n", (NaveSum + NpmSum + NparSum), NaveSum, NpmSum, NparSum, NskipSum);390 if (VERBOSE) fprintf (stderr, "fitted "OFF_T_FMT" objects ("OFF_T_FMT" ave, "OFF_T_FMT" pm, "OFF_T_FMT" par), skipped "OFF_T_FMT"\n", (NaveSum + NpmSum + NparSum), NaveSum, NpmSum, NparSum, NskipSum); 388 391 return (TRUE); 389 392 } -
trunk/Ohana/src/relastro/src/args.c
r34749 r35416 89 89 if ((N = get_argument (argc, argv, "-high-speed"))) { 90 90 // XXX include a parallax / no-parallax option 91 if (N >= argc - 3) usage();91 if (N >= argc - 4) usage(); 92 92 FIT_TARGET = TARGET_HIGH_SPEED; 93 93 remove_argument (N, &argc, argv); … … 95 95 remove_argument (N, &argc, argv); 96 96 PHOTCODE_B_LIST = strcreate(argv[N]); 97 remove_argument (N, &argc, argv); 98 RADIUS = atof(argv[N]); 99 remove_argument (N, &argc, argv); 100 HIGH_SPEED_DIR = abspath(argv[N], DVO_MAX_PATH); 101 remove_argument (N, &argc, argv); 102 } 103 104 if ((N = get_argument (argc, argv, "-hpm"))) { 105 if (N >= argc - 2) usage(); 106 FIT_TARGET = TARGET_HPM; 97 107 remove_argument (N, &argc, argv); 98 108 RADIUS = atof(argv[N]); … … 106 116 remove_argument (N, &argc, argv); 107 117 PARALLEL_OUTPUT = TRUE; 108 if ( FIT_TARGET != TARGET_HIGH_SPEED) {109 fprintf (stderr, "-parallel-output only valid for -high-speed mode\n");118 if ((FIT_TARGET != TARGET_HIGH_SPEED) && (FIT_TARGET != TARGET_HPM)) { 119 fprintf (stderr, "-parallel-output only valid for -high-speed or -hpm modes\n"); 110 120 exit (1); 111 121 } … … 456 466 if ((N = get_argument (argc, argv, "-high-speed"))) { 457 467 // XXX include a parallax / no-parallax option 458 if (N >= argc - 3) usage_client();468 if (N >= argc - 5) usage_client(); 459 469 FIT_TARGET = TARGET_HIGH_SPEED; 460 470 remove_argument (N, &argc, argv); … … 466 476 remove_argument (N, &argc, argv); 467 477 HIGH_SPEED_DIR = strcreate(argv[N]); 478 remove_argument (N, &argc, argv); 479 } 480 481 if ((N = get_argument (argc, argv, "-hpm"))) { 482 if (N >= argc - 3) usage(); 483 FIT_TARGET = TARGET_HPM; 484 remove_argument (N, &argc, argv); 485 RADIUS = atof(argv[N]); 486 remove_argument (N, &argc, argv); 487 HIGH_SPEED_DIR = abspath(argv[N], DVO_MAX_PATH); 468 488 remove_argument (N, &argc, argv); 469 489 } … … 668 688 fprintf (stderr, " OR: relastro -update-objects [options]\n"); 669 689 fprintf (stderr, " OR: relastro -high-speed [options]\n"); 690 fprintf (stderr, " OR: relastro -hpm [options]\n"); 670 691 fprintf (stderr, " OR: relastro -merge-source [options]\n\n"); 671 692 … … 679 700 fprintf (stderr, " -update-mosaics\n"); 680 701 fprintf (stderr, " -high-speed (code[,code,code]) (code[,code,code]) (radius) (output catdir)\n"); 702 fprintf (stderr, " -hpm (radius) (output catdir)\n"); 681 703 fprintf (stderr, " -merge-source (objID) (catID) into (objID) (catID)\n\n"); 682 704 -
trunk/Ohana/src/relastro/src/relastro.c
r33652 r35416 19 19 /* high-speed is a 2pt cross-correlation process for linking moving objects (high PM) */ 20 20 high_speed_catalogs (sky, skylist, 0, NULL); 21 exit (0); 22 23 case TARGET_HPM: 24 hpm_catalogs (sky, skylist, 0, NULL); 21 25 exit (0); 22 26 -
trunk/Ohana/src/relastro/src/relastro_client.c
r33652 r35416 58 58 } 59 59 60 case TARGET_HPM: { 61 // USAGE: relastro_client -high-speed 62 hpm_catalogs (sky, skylist, HOST_ID, HOSTDIR); 63 break; 64 } 65 60 66 // XXX loading the images is fairly costly -- see if we can do an image subset 61 67 case TARGET_UPDATE_OFFSETS: {
Note:
See TracChangeset
for help on using the changeset viewer.
