Changeset 34317 for trunk/psphot/src/psphotStackImageLoop.c
- Timestamp:
- Aug 16, 2012, 2:38:37 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotStackImageLoop.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotStackImageLoop.c
r34258 r34317 21 21 psMemDump("startloop"); 22 22 23 pmFPAview *view = pmFPAviewAlloc (0); 23 24 pmFPAfile *inputRaw = psMetadataLookupPtr (&status, config->files, "PSPHOT.STACK.INPUT.RAW"); 24 25 pmFPAfile *inputCnv = psMetadataLookupPtr (&status, config->files, "PSPHOT.STACK.INPUT.CNV"); … … 37 38 } 38 39 39 pmFPAview *view = pmFPAviewAlloc (0); 40 41 42 // XXX for now, just load the full set of images up front except for EXPNUM which we defer 40 bool radial_apertures = psMetadataLookupBool(NULL, recipe, "RADIAL_APERTURES"); 41 bool match_psfs = radial_apertures; 42 bool needConvolved = radial_apertures || !useRaw; 43 if (!needConvolved) { 44 pmFPAfileActivate (config->files, false, "PSPHOT.STACK.INPUT.CNV"); 45 } 46 47 // just load the full set of images up front except for EXPNUM which we defer 43 48 pmFPAfileActivate (config->files, false, "PSPHOT.STACK.EXPNUM.RAW"); 44 49 pmFPAfileActivate (config->files, false, "PSPHOT.STACK.EXPNUM.CNV"); … … 63 68 psMemDump("load"); 64 69 65 // Generate the 1st PSF-matched image set (larger target PSFs are generated by smoothing this image) 66 if (!psphotStackMatchPSFs (config, view)) { 67 psError(psErrorCodeLast(), false, "failure in psphotStackMatchPSFs for chip %d, cell %d, readout %d\n", view->chip, view->cell, view->readout); 68 psFree (view); 69 return false; 70 } 70 if (match_psfs) { 71 // Generate the 1st PSF-matched image set (larger target PSFs are generated by smoothing this image) 72 if (!psphotStackMatchPSFs (config, view)) { 73 psError(psErrorCodeLast(), false, "failure in psphotStackMatchPSFs for chip %d, cell %d, readout %d\n", view->chip, view->cell, view->readout); 74 psFree (view); 75 return false; 76 } 77 } else { 78 if (!psphotStackAllocateOutput (config, view, recipe)) { 79 psError(psErrorCodeLast(), false, "failure in psphotStackAllocateOutput for chip %d, cell %d, readout %d\n", view->chip, view->cell, view->readout); 80 psFree (view); 81 return false; 82 } 83 } 71 84 psMemDump("stackmatch"); 72 85
Note:
See TracChangeset
for help on using the changeset viewer.
