- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/ppSim
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/ppSim merged eligible /branches/eam_branches/stackphot.20100406/ppSim 27629-27654 /branches/pap_delete/ppSim 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/ppSim/src/ppSimPhotomReadoutFake.c
r21365 r27840 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 } … … 118 111 psAssert (fakeReadout, "no fakeReadout?"); 119 112 pmChipSetDataStatus (fakeChip, true); 120 psMetadataAddArray (fakeReadout->analysis, PS_LIST_TAIL, "PSPHOT.SOURCES", PS_META_REPLACE, "fake photometry ", fakeSources); 113 114 pmDetections *detections = pmDetectionsAlloc(); 115 detection->allSources = fakeSources; 116 117 psMetadataAddArray (fakeReadout->analysis, PS_LIST_TAIL, "PSPHOT.DETECTIONS", PS_META_REPLACE, "fake photometry ", detections); 118 psFree(detections); 121 119 122 120 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
