Changeset 26900 for trunk/ppSim/src/ppSimPhotomReadoutFake.c
- Timestamp:
- Feb 10, 2010, 7:42:33 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ppSim/src/ppSimPhotomReadoutFake.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSim/src/ppSimPhotomReadoutFake.c
r21365 r26900 1 1 # include "ppSim.h" 2 2 3 // XXX this function is currently disabled -- need to update code below to distinguish the fake 4 // and force positions, etc 3 5 bool ppSimPhotomReadoutFake(pmConfig *config, const pmFPAview *view) { 4 6 … … 11 13 return false; 12 14 } 13 14 # if 015 // set the photcode for this image16 if (!psphotAddPhotcode (recipe, config, view, "PPSIM.FAKE.CHIP")) {17 psError (PSPHOT_ERR_CONFIG, false, "trouble defining the photcode");18 return false;19 }20 # endif21 15 22 16 // *** in this section, perform the photometry for real + fake sources on PPSIM.FAKE.CHIP *** … … 36 30 37 31 // Generate the mask and variance images, including the user-defined analysis region of interest 38 psphotSetMaskAndVariance (config, readout, recipe);32 psphotSetMaskAndVariance (config, view); 39 33 40 34 // XXX need to define the source pixels … … 58 52 // load the psf model, if suppled. FWHM_X,FWHM_Y,etc are saved in the recipe 59 53 // this function uses PSPHOT.PSF.LOAD as the pmFPAfile 60 pmPSF *psf = psphotLoadPSF (config, view, recipe); 61 assert (psf); 54 psphotLoadPSF (config, view); 62 55 63 56 // remove all sources … … 65 58 66 59 // generate a background model (median, smoothed image) 67 if (!psphotModelBackground (config, view, "PPSIM.FAKE.CHIP")) {60 if (!psphotModelBackgroundReadoutFileIndex (config, view, "PPSIM.FAKE.CHIP", 0)) { 68 61 return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL); 69 62 } 70 if (!psphotSubtractBackground (config, view, "PPSIM.FAKE.CHIP")) {63 if (!psphotSubtractBackgroundReadout (config, view, "PPSIM.FAKE.CHIP", 0, recipe)) { 71 64 return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL); 72 65 }
Note:
See TracChangeset
for help on using the changeset viewer.
