Changeset 18002 for trunk/psphot/src
- Timestamp:
- Jun 8, 2008, 2:45:29 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotLoadPSF.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotLoadPSF.c
r14749 r18002 4 4 pmPSF *psphotLoadPSF (pmConfig *config, const pmFPAview *view, psMetadata *recipe) { 5 5 6 // find the currently selected chip 7 pmChip *chip = pmFPAfileThisChip (config->files, view, "PSPHOT.PSF.LOAD"); 8 if (!chip) return NULL; 9 6 10 // find the currently selected readout 7 pmReadout *readout = pmFPAfileThisReadout (config->files, view, "PSPHOT.PSF.LOAD");11 pmReadout *readout = pmFPAfileThisReadout (config->files, view, "PSPHOT.PSF.LOAD"); 8 12 if (!readout) return NULL; 9 13 10 14 // check if a PSF model is supplied by the user 11 pmPSF *psf = psMetadataLookupPtr (NULL, readout->parent->parent->analysis, "PSPHOT.PSF");15 pmPSF *psf = psMetadataLookupPtr (NULL, chip->analysis, "PSPHOT.PSF"); 12 16 if (psf == NULL) { 13 psLogMsg ("psphot", 3, "no psf supplied for this readout");17 psLogMsg ("psphot", 3, "no psf supplied for this chip"); 14 18 return NULL; 15 19 }
Note:
See TracChangeset
for help on using the changeset viewer.
