Changeset 39751
- Timestamp:
- Oct 13, 2016, 12:53:56 PM (10 years ago)
- Location:
- branches/czw_branch/20160809/Ohana/src/relastro
- Files:
-
- 4 edited
-
include/relastro.h (modified) (1 diff)
-
src/ImageOps.c (modified) (1 diff)
-
src/UpdateChips.c (modified) (1 diff)
-
src/args.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20160809/Ohana/src/relastro/include/relastro.h
r39747 r39751 422 422 int DCR_RED_NSEC_POS, DCR_RED_NSEC_NEG; 423 423 424 int NLoopWeight2MASS; 424 425 float *LoopWeight2MASS; 425 426 char *LoopWeight2MASSstr; 426 427 428 int NLoopWeightTycho; 427 429 float *LoopWeightTycho; 428 430 char *LoopWeightTychostr; 429 431 432 int NLoopWeightGAIA; 430 433 float *LoopWeightGAIA; 431 434 char *LoopWeightGAIAstr; -
branches/czw_branch/20160809/Ohana/src/relastro/src/ImageOps.c
r39731 r39751 793 793 ref[i].D = catalog[c].average[n].D; 794 794 795 int XVERB = FALSE; 796 XVERB |= (catalog[c].average[n].objID == OBJ_ID_SRC) && (catalog[c].average[n].catID == CAT_ID_SRC); 797 XVERB |= (catalog[c].average[n].objID == OBJ_ID_DST) && (catalog[c].average[n].catID == CAT_ID_DST); 798 if (XVERB) { 799 fprintf (stderr, "found test object\n"); 800 } 801 795 802 // if we are applying the galaxy model, move the reference position... 796 803 if (APPLY_PROPER_MOTION) { -
branches/czw_branch/20160809/Ohana/src/relastro/src/UpdateChips.c
r39731 r39751 60 60 for (i = 0; i < Nimage; i++) { 61 61 62 VERBOSE_IMAGE = !strcmp(image[i].name, "o5745g0516o.356887.cm.982631.smf[XY54]"); 62 VERBOSE = FALSE; 63 VERBOSE_IMAGE |= !strcmp(image[i].name, "o5745g0516o.356887.cm.982631.smf[XY45]"); 64 VERBOSE_IMAGE |= !strcmp(image[i].name, "o5745g0526o.356899.cm.982643.smf[XY45]"); 65 VERBOSE_IMAGE |= !strcmp(image[i].name, "o5748g0436o.358811.cm.982690.smf[XY34]"); 63 66 64 67 // XXX looks like everything below is thread safe : we can unroll this into a set of -
branches/czw_branch/20160809/Ohana/src/relastro/src/args.c
r39747 r39751 4 4 void usage_merge_source (void); 5 5 void usage_merge_source_id (char *name); 6 float *ParseLoopWeights (char *rawlist );6 float *ParseLoopWeights (char *rawlist, int *nloop); 7 7 8 8 int args (int argc, char **argv) { … … 657 657 remove_argument (N, &argc, argv); 658 658 LoopWeight2MASSstr = strcreate(argv[N]); 659 LoopWeight2MASS = ParseLoopWeights (argv[N] );659 LoopWeight2MASS = ParseLoopWeights (argv[N], &NLoopWeight2MASS); 660 660 remove_argument (N, &argc, argv); 661 661 } … … 665 665 remove_argument (N, &argc, argv); 666 666 LoopWeightTychostr = strcreate(argv[N]); 667 LoopWeightTycho = ParseLoopWeights (argv[N] );667 LoopWeightTycho = ParseLoopWeights (argv[N], &NLoopWeightTycho); 668 668 remove_argument (N, &argc, argv); 669 669 } … … 673 673 remove_argument (N, &argc, argv); 674 674 LoopWeightGAIAstr = strcreate(argv[N]); 675 LoopWeightGAIA = ParseLoopWeights (argv[N] );675 LoopWeightGAIA = ParseLoopWeights (argv[N], &NLoopWeightGAIA); 676 676 remove_argument (N, &argc, argv); 677 677 } … … 1319 1319 } 1320 1320 1321 float *ParseLoopWeights (char *rawlist ) {1321 float *ParseLoopWeights (char *rawlist, int *nloop) { 1322 1322 1323 1323 float *weights = NULL; … … 1344 1344 } 1345 1345 1346 // this sets the last loops to match the last value... 1346 1347 while (Nloop < NLOOP) { 1347 1348 weights[Nloop] = weights[Nloop - 1]; 1348 1349 Nloop ++; 1349 1350 } 1351 1352 *nloop = Nloop; 1350 1353 return weights; 1351 1354 }
Note:
See TracChangeset
for help on using the changeset viewer.
