Changeset 30045
- Timestamp:
- Dec 15, 2010, 11:34:46 AM (15 years ago)
- File:
-
- 1 edited
-
tags/ipp-20101206/ppSub/src/ppSubLoop.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20101206/ppSub/src/ppSubLoop.c
r29937 r30045 70 70 } 71 71 if (data->forcedPhot2) { 72 // XXX: Change the recipe to use a higher nsigma limit and quit after pass1 73 psMetadata *recipe = psMetadataLookupPtr (NULL, config->recipes, PSPHOT_RECIPE); 74 75 psF32 nsigma_peak_save = psMetadataLookupF32 (NULL, recipe, "PEAKS_NSIGMA_LIMIT"); 76 char *breakPt_save = psMetadataLookupStr (NULL, recipe, "BREAK_POINT"); 77 78 // XXX: add recipe entries for this instead of hard coding it 79 psMetadataAddF32(recipe, PS_LIST_TAIL, "PEAKS_NSIGMA_LIMIT", PS_META_REPLACE, "", 25.0); 80 psMetadataAddStr(recipe, PS_LIST_TAIL, "BREAK_POINT", PS_META_REPLACE, "", "PASS1"); 81 72 82 bool foundDetections = false; 73 83 if (!ppSubInputDetections(&foundDetections, "PPSUB.POS2.SOURCES", "PPSUB.REF", data)) { 74 84 psError(psErrorCodeLast(), false, "Unable to measure positive detections (2)"); 75 return false; 76 } 85 psMetadataAddF32(recipe, PS_LIST_TAIL, "PEAKS_NSIGMA_LIMIT", PS_META_REPLACE, "", nsigma_peak_save); 86 psMetadataAddStr(recipe, PS_LIST_TAIL, "BREAK_POINT", PS_META_REPLACE, "", breakPt_save); 87 return false; 88 } 89 psMetadataAddF32(recipe, PS_LIST_TAIL, "PEAKS_NSIGMA_LIMIT", PS_META_REPLACE, "", nsigma_peak_save); 90 psMetadataAddStr(recipe, PS_LIST_TAIL, "BREAK_POINT", PS_META_REPLACE, "", breakPt_save); 77 91 // if nothing was found, don't bother doing the forced photometry below 78 92 if (!foundDetections) { 79 psWarning ("no sources found in positive image 1, skipping forced photometry");80 data->forcedPhot 1= false;93 psWarning ("no sources found in positive image 2, skipping forced photometry"); 94 data->forcedPhot2 = false; 81 95 } 82 96 }
Note:
See TracChangeset
for help on using the changeset viewer.
