Changeset 32676 for trunk/ppSub/src/ppSubMakePSF.c
- Timestamp:
- Nov 16, 2011, 10:48:28 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubMakePSF.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubMakePSF.c
r31435 r32676 46 46 bool noConvolve = psMetadataLookupBool(&mdok, recipe, "NOCONVOLVE"); // Do not use convolved images. 47 47 48 if (!noConvolve) { 49 printf("Using Convolved images because NOCONVOLVE is FALSE\n"); 50 if (reverse) { 51 minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.REF.CONV"); 52 minuendFile = psMetadataLookupPtr(&mdok, config->files, "PPSUB.REF.CONV"); 53 } else { 54 minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT.CONV"); 55 minuendFile = psMetadataLookupPtr(&mdok, config->files, "PPSUB.INPUT.CONV"); 56 } 57 } 58 else { 59 psWarning("Not using Convolved images because NOCONVOLVE is TRUE\n"); 60 if (reverse) { 61 minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.REF"); 62 minuendFile = psMetadataLookupPtr(&mdok, config->files, "PPSUB.REF"); 63 } else { 64 minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT"); 65 minuendFile = psMetadataLookupPtr(&mdok, config->files, "PPSUB.INPUT"); 66 } 48 if (noConvolve) { 49 // if we do not convolve, we need to copy the detections to the image for analysis 50 pmReadout *psfSourcesRO = NULL; // readout containing loaded sources for psf model 51 psWarning("Not using Convolved images because NOCONVOLVE is TRUE\n"); 52 if (reverse) { 53 minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.REF"); 54 minuendFile = psMetadataLookupPtr(&mdok, config->files, "PPSUB.REF"); 55 psfSourcesRO = pmFPAfileThisReadout(config->files, view, "PPSUB.REF.SOURCES"); 56 } else { 57 minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT"); 58 minuendFile = psMetadataLookupPtr(&mdok, config->files, "PPSUB.INPUT"); 59 psfSourcesRO = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT.SOURCES"); 60 } 61 psAssert (psfSourcesRO, "missing readout with sources"); 62 pmDetections *psfDetections = psMetadataLookupPtr(&mdok, psfSourcesRO->analysis, "PSPHOT.DETECTIONS"); 63 psMetadataAddPtr(minuend->analysis, PS_LIST_TAIL, "PSPHOT.DETECTIONS", PS_META_REPLACE | PS_DATA_UNKNOWN, "Merged source list", psfDetections); 64 } else { 65 printf("Using Convolved images because NOCONVOLVE is FALSE\n"); 66 if (reverse) { 67 minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.REF.CONV"); 68 minuendFile = psMetadataLookupPtr(&mdok, config->files, "PPSUB.REF.CONV"); 69 } else { 70 minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT.CONV"); 71 minuendFile = psMetadataLookupPtr(&mdok, config->files, "PPSUB.INPUT.CONV"); 72 } 67 73 } 68 74
Note:
See TracChangeset
for help on using the changeset viewer.
