Changeset 37957
- Timestamp:
- Mar 5, 2015, 2:05:50 PM (11 years ago)
- Location:
- branches/eam_branches/ipp-20150112/Ohana/src/relphot
- Files:
-
- 7 edited
-
include/relphot.h (modified) (1 diff)
-
src/args.c (modified) (4 diffs)
-
src/help.c (modified) (1 diff)
-
src/initialize.c (modified) (1 diff)
-
src/relphot_synthphot.c (modified) (2 diffs)
-
src/relphot_synthphot_catalog.c (modified) (1 diff)
-
src/synthetic_zpts.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150112/Ohana/src/relphot/include/relphot.h
r37876 r37957 50 50 Coords coords; 51 51 int Nx; 52 int Ny; 52 53 } SynthZeroPoints; 53 54 -
branches/eam_branches/ipp-20150112/Ohana/src/relphot/src/args.c
r37876 r37957 367 367 } 368 368 SYNTH_ZERO_POINTS = NULL; 369 if ((N = get_argument (argc, argv, "-syn phot"))) {369 if ((N = get_argument (argc, argv, "-synthphot_means"))) { 370 370 mode = SYNTH_PHOT; 371 371 remove_argument (N, &argc, argv); 372 myAssert (N < argc, "missing argument to -synthphot_means"); 372 373 SYNTH_ZERO_POINTS = strcreate (argv[N]); 373 374 remove_argument (N, &argc, argv); … … 399 400 400 401 switch (mode) { 402 case SYNTH_PHOT: 401 403 case UPDATE_AVERAGES: 402 404 if (argc != 1) relphot_usage(); … … 475 477 } 476 478 SYNTH_ZERO_POINTS = NULL; 477 if ((N = get_argument (argc, argv, "-syn phot"))) {479 if ((N = get_argument (argc, argv, "-synthphot_means"))) { 478 480 MODE = MODE_SYNTH_PHOT; 479 481 remove_argument (N, &argc, argv); … … 646 648 } 647 649 650 if ((MODE == MODE_SYNTH_PHOT) && (argc == 1)) return TRUE; 648 651 if ((MODE == MODE_UPDATE_OBJECTS) && (argc == 1)) return TRUE; 649 652 if (argc != 2) relphot_client_usage (); -
branches/eam_branches/ipp-20150112/Ohana/src/relphot/src/help.c
r36630 r37957 5 5 fprintf (stderr, " or: relphot -averages\n"); 6 6 fprintf (stderr, " or: relphot -apply-offsets\n"); 7 fprintf (stderr, " or: relphot -synthphot_means\n"); 7 8 fprintf (stderr, " or: relphot (photcodes) -parallel-regions -region-hosts (RegionFile)\n"); 8 9 fprintf (stderr, " or: relphot (photcodes) -parallel-images (ImageTable) -region-hosts (RegionFile)\n\n"); -
branches/eam_branches/ipp-20150112/Ohana/src/relphot/src/initialize.c
r37037 r37957 97 97 args_client (argc, argv); 98 98 99 if (MODE == MODE_SYNTH_PHOT) return; 100 99 101 if (MODE == MODE_UPDATE_OBJECTS) { 100 102 char tmpline1[256]; -
branches/eam_branches/ipp-20150112/Ohana/src/relphot/src/relphot_synthphot.c
r37876 r37957 91 91 } 92 92 93 // ensure that the path for the zero point is absolute 94 { 95 char *tmppath = abspath (SYNTH_ZERO_POINTS, DVO_MAX_PATH); 96 free (SYNTH_ZERO_POINTS); 97 SYNTH_ZERO_POINTS = tmppath; 98 } 99 93 100 int i; 94 101 for (i = 0; i < table->Nhosts; i++) { … … 99 106 table->hosts[i].pathname = tmppath; 100 107 101 // options / arguments that can affect relphot_client -synthphot :108 // options / arguments that can affect relphot_client -synthphot_means: 102 109 // VERBOSE, VERBOSE2 103 110 104 111 char command[1024]; 105 snprintf (command, 1024, "relphot_client -synthphot %s -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f",112 snprintf (command, 1024, "relphot_client -synthphot_means %s -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f", 106 113 SYNTH_ZERO_POINTS, table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax); 107 114 -
branches/eam_branches/ipp-20150112/Ohana/src/relphot/src/relphot_synthphot_catalog.c
r37877 r37957 50 50 // need to look up the (X,Y) coords from this (R,D) location 51 51 double X, Y; 52 RD_to_XY (&X, &Y, average->R, average->D, &zpts->coords); 52 double R = ohana_normalize_angle_to_midpoint (average->R, 0.0); 53 RD_to_XY (&X, &Y, R, average->D, &zpts->coords); 54 if (X < 0) return FALSE; 55 if (Y < 0) return FALSE; 56 if (X >= zpts->Nx) return FALSE; 57 if (Y >= zpts->Ny) return FALSE; 53 58 54 59 int Xpix = X; -
branches/eam_branches/ipp-20150112/Ohana/src/relphot/src/synthetic_zpts.c
r37876 r37957 47 47 GetCoords (&zpts->coords, &zpts->PHU); 48 48 zpts->Nx = zpts->matrix[0].Naxis[0]; 49 zpts->Ny = zpts->matrix[0].Naxis[1]; 49 50 50 51 return zpts;
Note:
See TracChangeset
for help on using the changeset viewer.
