IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18002 for trunk/psphot/src


Ignore:
Timestamp:
Jun 8, 2008, 2:45:29 PM (18 years ago)
Author:
eugene
Message:

psf must be put on chip; select explicitly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotLoadPSF.c

    r14749 r18002  
    44pmPSF *psphotLoadPSF (pmConfig *config, const pmFPAview *view, psMetadata *recipe) {
    55
     6    // find the currently selected chip
     7    pmChip *chip = pmFPAfileThisChip (config->files, view, "PSPHOT.PSF.LOAD");
     8    if (!chip) return NULL;
     9
    610    // 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");
    812    if (!readout) return NULL;
    913
    1014    // 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");
    1216    if (psf == NULL) {
    13         psLogMsg ("psphot", 3, "no psf supplied for this readout");
     17        psLogMsg ("psphot", 3, "no psf supplied for this chip");
    1418        return NULL;
    1519    }
Note: See TracChangeset for help on using the changeset viewer.