- Timestamp:
- Jan 27, 2010, 9:17:17 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/psphot.stack.20100120/src/psphotChoosePSF.c
r26688 r26691 10 10 psAssert (recipe, "missing recipe?"); 11 11 12 int num = psMetadata AddS32 (&status, config->arguments, "PSPHOT.INPUT.NUM");12 int num = psMetadataLookupS32 (&status, config->arguments, "PSPHOT.INPUT.NUM"); 13 13 psAssert (status, "programming error: must define PSPHOT.INPUT.NUM"); 14 14 … … 28 28 bool status; 29 29 30 // do not generate a PSF if we already were supplied one31 if (psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.PSF")) {32 psLogMsg ("psphot", PS_LOG_DETAIL, "psf model supplied for input file %d", i);33 return true;34 }35 36 30 psTimerStart ("psphot.choose.psf"); 37 31 … … 42 36 pmReadout *readout = pmFPAviewThisReadout(view, file->fpa); 43 37 psAssert (readout, "missing readout?"); 38 39 // do not generate a PSF if we already were supplied one 40 if (psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.PSF")) { 41 psLogMsg ("psphot", PS_LOG_DETAIL, "psf model supplied for input file %d", index); 42 return true; 43 } 44 44 45 45 pmDetections *detections = psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.DETECTIONS"); … … 350 350 351 351 // save PSF on readout->analysis 352 if (!psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.PSF", PS_DATA_PTR, "psphot psf model", psf)) {352 if (!psMetadataAddPtr (readout->analysis, PS_LIST_TAIL, "PSPHOT.PSF", PS_META_REPLACE | PS_DATA_UNKNOWN, "psphot psf model", psf)) { 353 353 psError (PSPHOT_ERR_UNKNOWN, false, "problem saving sources on readout"); 354 354 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
