Changeset 34136 for trunk/psphot/src/psphotStackMatchPSFsNext.c
- Timestamp:
- Jul 10, 2012, 3:44:12 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotStackMatchPSFsNext.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotStackMatchPSFsNext.c
r32996 r34136 7 7 int nRadialEntries = 0; 8 8 9 // find the currently selected readout 10 pmFPAfile *file = pmFPAfileSelectSingle(config->files, filerule, 0); // File of interest 11 psAssert (file, "missing file?"); 9 // find the numer of fwhmValues in the first non-skipped input 10 int num = psphotFileruleCount(config, filerule); 11 for (int i=0; i<num; i++) { 12 pmFPAfile *file = pmFPAfileSelectSingle(config->files, filerule, i); // File of interest 13 psAssert (file, "missing file?"); 12 14 13 pmReadout *readout = pmFPAviewThisReadout(view, file->fpa); 14 psAssert (readout, "missing readout?"); 15 16 bool status = false; 17 psVector *fwhmValues = psMetadataLookupVector(&status, readout->analysis, "STACK.PSF.FWHM.VALUES"); 18 if (!fwhmValues) { 19 return 1; 15 pmReadout *readout = pmFPAviewThisReadout(view, file->fpa); 16 psAssert (readout, "missing readout?"); 17 bool status = false; 18 if (!psMetadataLookupBool (&status, readout->analysis, "PSPHOT.SKIP.INPUT")) { 19 psVector *fwhmValues = psMetadataLookupVector(&status, readout->analysis, "STACK.PSF.FWHM.VALUES"); 20 if (fwhmValues) { 21 nRadialEntries = fwhmValues->n; 22 } else { 23 nRadialEntries = 1; 24 } 25 break; 26 } 20 27 } 21 22 nRadialEntries = fwhmValues->n;23 28 return nRadialEntries; 24 29 } … … 60 65 pmReadout *readout = pmFPAviewThisReadout(view, file->fpa); 61 66 psAssert (readout, "missing readout?"); 67 68 if (psMetadataLookupBool (&status, readout->analysis, "PSPHOT.SKIP.INPUT")) { 69 psLogMsg("psphot", PS_LOG_INFO, "skipping smooth %d to next psf", index); 70 return true; 71 } 62 72 63 73 psLogMsg("psphot", PS_LOG_INFO, "smooth %d to next psf", index);
Note:
See TracChangeset
for help on using the changeset viewer.
