- Timestamp:
- Jan 31, 2010, 5:01:05 PM (16 years ago)
- Location:
- branches/eam_branches/psphot.stack.20100120
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/psphotLoadPSF.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/psphot.stack.20100120
- Property svn:mergeinfo changed
/branches/eam_branches/20091201/psphot (added) merged: 26645-26646,26648,26705,26746
- Property svn:mergeinfo changed
-
branches/eam_branches/psphot.stack.20100120/src/psphotLoadPSF.c
r26691 r26748 1 1 # include "psphotInternal.h" 2 2 3 // NOTE : pmPSF_IO.c functions must load the psf model onto the chip->analysis metadata because 4 // the I/O operation likely occurs before the readout exists. This implementation assumes that 5 // a single psf model is valid for the entire set of readouts (not valid for a time series of readouts) 6 7 // XXX for now (2010.01.27), the supporting programs do not define multiple PSPHOT.PSF.LOAD 8 // files to go with multiple PSPHOT.INPUT files. as a result, the implementation below is 9 // currently going to work for the case of a single input file, but will fail if we try with a 10 // stack of images. 11 3 12 // load an externally supplied psf model 4 bool psphotLoadPSFReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index , psMetadata *recipe) {13 bool psphotLoadPSFReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index) { 5 14 6 15 bool status; … … 25 34 } 26 35 27 if (!psphotPSFstats (readout, recipe,psf)) {36 if (!psphotPSFstats (readout, psf)) { 28 37 psAbort("cannot measure PSF shape terms"); 29 38 } … … 44 53 bool status = false; 45 54 46 // select the appropriate recipe information 47 psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, PSPHOT_RECIPE); 48 psAssert (recipe, "missing recipe?"); 49 50 // XXX PSPHOT.PSF.LOAD vs PSPHOT.INPUT?? 55 // XXX PSPHOT.PSF.LOAD vs PSPHOT.INPUT -- see note at top 51 56 int num = psMetadataLookupS32 (&status, config->arguments, "PSPHOT.INPUT.NUM"); 52 57 psAssert (status, "programming error: must define PSPHOT.INPUT.NUM"); … … 56 61 57 62 // Generate the mask and weight images, including the user-defined analysis region of interest 58 if (!psphotLoadPSFReadout (config, view, "PSPHOT.PSF.LOAD", i , recipe)) {63 if (!psphotLoadPSFReadout (config, view, "PSPHOT.PSF.LOAD", i)) { 59 64 psError (PSPHOT_ERR_CONFIG, false, "failed to load PSF model for PSPHOT.PSF.LOAD entry %d", i); 60 65 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
