- Timestamp:
- Mar 5, 2012, 5:19:48 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/psModules
- Property svn:mergeinfo set to
-
branches/meh_branches/ppstack_test/psModules/src/imcombine/pmSubtraction.c
r30738 r33415 905 905 } 906 906 } 907 if (!psThreadPoolWait(true )) {907 if (!psThreadPoolWait(true, true)) { 908 908 psError(psErrorCodeLast(), false, "Error waiting for threads."); 909 909 return false; … … 1019 1019 } 1020 1020 } 1021 pmSubtractionStampPrint(ds9, stamp->x, stamp->y, stamps->footprint, "red"); 1021 1022 psString ds9text = NULL; 1023 1024 psStringAppend(&ds9text, "flux: %.0f ", match->fluxes->data.F32[i]); 1025 psStringAppend(&ds9text, "chi2: %.0f ", match->chisq->data.F32[i]); 1026 1027 pmSubtractionStampPrint(ds9, stamp->x, stamp->y, stamps->footprint, "red", ds9text); 1028 1029 psFree(ds9text); 1022 1030 1023 1031 // Set stamp for replacement … … 1041 1049 } else { 1042 1050 numGood++; 1043 pmSubtractionStampPrint(ds9, stamp->x, stamp->y, stamps->footprint, "green"); 1051 1052 //MEH bad way to do this - should also add to rej/red one as well 1053 // -- is match from subQuality what want? 1054 psString ds9text = NULL; 1055 1056 psStringAppend(&ds9text, "flux: %.0f ", match->fluxes->data.F32[i]); 1057 psStringAppend(&ds9text, "chi2: %.0f ", match->chisq->data.F32[i]); 1058 1059 pmSubtractionStampPrint(ds9, stamp->x, stamp->y, stamps->footprint, "green", ds9text); 1060 1061 psFree(ds9text); 1044 1062 } 1045 1063 } … … 1427 1445 } 1428 1446 1429 if (!psThreadPoolWait(false )) {1447 if (!psThreadPoolWait(false, true)) { 1430 1448 psError(psErrorCodeLast(), false, "Error waiting for threads."); 1431 1449 return false; … … 1487 1505 } 1488 1506 } 1507 psFree(out1->covariance); 1489 1508 out1->covariance = psImageCovarianceAverage(covars); 1490 1509 psFree(covars); … … 1527 1546 } 1528 1547 } 1548 psFree(out2->covariance); 1529 1549 out2->covariance = psImageCovarianceAverage(covars); 1530 1550 psFree(covars);
Note:
See TracChangeset
for help on using the changeset viewer.
