Changeset 34735 for branches/eam_branches/ipp-20120905/psphot
- Timestamp:
- Nov 29, 2012, 2:15:01 PM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120905
- Files:
-
- 9 edited
-
. (modified) (1 prop)
-
psphot (modified) (1 prop)
-
psphot/src (modified) (1 prop)
-
psphot/src/psphotDeblendSatstars.c (modified) (1 diff)
-
psphot/src/psphotReplaceUnfit.c (modified) (1 diff)
-
psphot/src/psphotStackImageLoop.c (modified) (1 prop)
-
psphot/src/psphotStackMatchPSFs.c (modified) (1 diff)
-
psphot/src/psphotStackMatchPSFsUtils.c (modified) (2 diffs)
-
psphot/src/psphotStackReadout.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120905
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20120905/psphot
- Property svn:mergeinfo changed
/trunk/psphot merged: 34704,34708,34721
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20120905/psphot/src
- Property svn:mergeinfo changed
/trunk/psphot/src merged: 34704,34708,34721
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20120905/psphot/src/psphotDeblendSatstars.c
r34570 r34735 498 498 psStatsInit (fluxStats); 499 499 500 while ( logR->data.F32[bin] < lRmax) {500 while (bin < logR->n && logR->data.F32[bin] < lRmax) { 501 501 if (isfinite(flux->data.F32[bin])) { 502 502 psVectorAppend (fluxVals, flux->data.F32[bin]); -
branches/eam_branches/ipp-20120905/psphot/src/psphotReplaceUnfit.c
r34570 r34735 35 35 // loop over the available readouts 36 36 for (int i = 0; i < num; i++) { 37 if (!psphotReplaceAllSourcesReadout (config, view, filerule, i, recipe, ignoreState)) { 38 psError (PSPHOT_ERR_CONFIG, false, "failed to replace all sources for %s entry %d", filerule, i); 39 return false; 40 } 37 // ignore return value. False means "sources not subtracted", not a failure condition 38 (void) psphotReplaceAllSourcesReadout (config, view, filerule, i, recipe, ignoreState); 41 39 } 42 40 return true; -
branches/eam_branches/ipp-20120905/psphot/src/psphotStackImageLoop.c
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/psphot/src/psphotStackMatchPSFs.c
r34404 r34735 108 108 bool notMatched = psMetadataLookupBool(NULL, readoutOut->analysis, "NOT.PSF.MATCHED"); 109 109 if (notMatched) { 110 if (!readoutOut->image) { 111 // our images got freed in the matching process. Recreate them so that they 112 // are available when sources are copied to this readout. 113 readoutOut->image = psImageCopy(NULL, readoutSrc->image, PS_TYPE_F32); 114 if (readoutSrc->variance) { 115 psFree(readoutOut->variance); 116 readoutOut->variance = psImageCopy(NULL, readoutSrc->variance, PS_TYPE_F32); 117 } 118 if (readoutSrc->mask) { 119 psFree(readoutOut->mask); 120 readoutOut->mask = psImageCopy(NULL, readoutSrc->mask, PS_TYPE_IMAGE_MASK); 121 } 110 psFree(readoutOut->image); 111 readoutOut->image = psImageCopy(NULL, readoutSrc->image, PS_TYPE_F32); 112 psFree(readoutOut->variance); 113 if (readoutSrc->variance) { 114 readoutOut->variance = psImageCopy(NULL, readoutSrc->variance, PS_TYPE_F32); 115 } 116 psFree(readoutOut->mask); 117 if (readoutSrc->mask) { 118 readoutOut->mask = psImageCopy(NULL, readoutSrc->mask, PS_TYPE_IMAGE_MASK); 122 119 } 123 120 } -
branches/eam_branches/ipp-20120905/psphot/src/psphotStackMatchPSFsUtils.c
r34352 r34735 303 303 if (!pmSubtractionMatch(NULL, readoutOut, fake, readoutSrc, footprint, stride, regionSize, spacing, threshold, stampSources, stampsName, type, size, order, widthsCopy, orders, inner, ringsOrder, binning, penalty, optimum, optWidths, optOrder, optThresh, iter, rej, normFrac, sysError, skyErr, kernelError, covarFrac, maskVal, maskBad, maskPoor, poorFrac, badFrac, PM_SUBTRACTION_MODE_2)) { 304 304 int errorCode = psErrorCodeLast(); 305 if (errorCode == PM_ERR_SMALL_AREA ) {305 if (errorCode == PM_ERR_SMALL_AREA || errorCode == PM_ERR_STAMPS) { 306 306 // failed to match but, don't fault. Just drop this input from measurements that need the 307 307 // matched readout. 308 psErrorClear(); 308 309 rejectReadout = true; 309 psLogMsg("psphot", PS_LOG_WARN, "PSF match failed for input %d. Too few pixels.", index); 310 if (errorCode == PM_ERR_SMALL_AREA) { 311 psLogMsg("psphot", PS_LOG_WARN, "PSF match failed for input %d. Too few pixels.", index); 312 } else if (errorCode == PM_ERR_STAMPS) { 313 psLogMsg("psphot", PS_LOG_WARN, "PSF match failed for input %d. Failed to find stamps.", index); 314 } 310 315 } else { 311 316 psError(psErrorCodeLast(), false, "Unable to match images."); … … 324 329 325 330 if (rejectReadout) { 331 psMetadataAddBool(readoutSrc->analysis, PS_LIST_TAIL, "NOT.PSF.MATCHED", PS_META_REPLACE, "", true); 326 332 psMetadataAddBool(readoutOut->analysis, PS_LIST_TAIL, "NOT.PSF.MATCHED", PS_META_REPLACE, "", true); 327 333 } else { 334 psMetadataAddBool(readoutSrc->analysis, PS_LIST_TAIL, "NOT.PSF.MATCHED", PS_META_REPLACE, "", false); 328 335 psMetadataAddBool(readoutOut->analysis, PS_LIST_TAIL, "NOT.PSF.MATCHED", PS_META_REPLACE, "", false); 329 336 } -
branches/eam_branches/ipp-20120905/psphot/src/psphotStackReadout.c
r34570 r34735 409 409 } 410 410 } 411 // mark any inputs that we want to skip the matched apertures for 412 psphotStackSetInputsToSkip(config, view, STACK_CNV, true); 413 psphotStackSetInputsToSkip(config, view, STACK_OUT, true); 411 414 psphotRadialApertures (config, view, STACK_CNV, 0); // entry 0 == unmatched 412 415 psMemDump("extmeas"); 413 416 414 // mark any inputs that we want to skip the matched apertures for415 psphotStackSetInputsToSkip(config, view, STACK_OUT, true);416 417 417 418 int nRadialEntries = psphotStackMatchPSFsEntries(config, view, STACK_OUT); … … 439 440 } 440 441 } 442 psphotStackSetInputsToSkip(config, view, STACK_CNV, false); 441 443 psphotStackSetInputsToSkip(config, view, STACK_OUT, false); 442 444
Note:
See TracChangeset
for help on using the changeset viewer.
