Changeset 39389
- Timestamp:
- Feb 24, 2016, 12:01:00 PM (10 years ago)
- Location:
- trunk/Ohana/src/relastro
- Files:
-
- 3 edited
-
include/relastro.h (modified) (1 diff)
-
src/args.c (modified) (2 diffs)
-
src/launch_region_hosts.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relastro/include/relastro.h
r39375 r39389 348 348 float *LoopWeight2MASS; 349 349 float *LoopWeightTycho; 350 char *LoopWeight2MASSstr; 351 char *LoopWeightTychostr; 350 352 351 353 int ImagSelect; -
trunk/Ohana/src/relastro/src/args.c
r39364 r39389 538 538 // NOTE: this must come after -nloop above 539 539 LoopWeight2MASS = NULL; 540 LoopWeight2MASSstr = NULL; 540 541 if ((N = get_argument (argc, argv, "-loop-weights-2mass"))) { 541 542 remove_argument (N, &argc, argv); 543 LoopWeight2MASSstr = strcreate(argv[N]); 542 544 LoopWeight2MASS = ParseLoopWeights (argv[N]); 543 545 remove_argument (N, &argc, argv); … … 546 548 if ((N = get_argument (argc, argv, "-loop-weights-tycho"))) { 547 549 remove_argument (N, &argc, argv); 550 LoopWeightTychostr = strcreate(argv[N]); 548 551 LoopWeightTycho = ParseLoopWeights (argv[N]); 549 552 remove_argument (N, &argc, argv); -
trunk/Ohana/src/relastro/src/launch_region_hosts.c
r39388 r39389 134 134 if (MaxMeanOffset != 10.0) strextend (&command, "-max-mean-offset %f", MaxMeanOffset); 135 135 136 if (LoopWeight2MASS) { 137 char *weightline = NULL; 138 for (i = 0; i < NLOOP; i++) { 139 strextend (&weightline, "%f,", LoopWeight2MASS[i]); 140 } 141 strextend (&command, "-loop-weights-2mass %s", weightline); 142 free (weightline); 143 } 144 if (LoopWeightTycho) { 145 char *weightline = NULL; 146 for (i = 0; i < NLOOP; i++) { 147 strextend (&weightline, "%f,", LoopWeightTycho[i]); 148 } 149 strextend (&command, "-loop-weights-tycho %s", weightline); 150 free (weightline); 151 } 136 if (LoopWeight2MASS) { strextend (&command, "-loop-weights-2mass %s", LoopWeight2MASSstr); } 137 if (LoopWeightTycho) { strextend (&command, "-loop-weights-tycho %s", LoopWeightTychostr); } 152 138 153 139 strextend (&command, "-D RELASTRO_SRC_MEAS_TOOFEW %d", SRC_MEAS_TOOFEW);
Note:
See TracChangeset
for help on using the changeset viewer.
