- 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/ppSimPhotomReadoutForce.c
r21365 r27840 14 14 # if 0 15 15 // set the photcode for this image 16 if (!psphotAddPhotcode (recipe, config, view, "PPSIM.FAKE.CHIP")) {16 if (!psphotAddPhotcodeReadout (recipe, config, view, "PPSIM.FAKE.CHIP", 0)) { 17 17 psError (PSPHOT_ERR_CONFIG, false, "trouble defining the photcode"); 18 18 return false; … … 36 36 37 37 // Generate the mask and variance images, including the user-defined analysis region of interest 38 psphotSetMaskAndVariance (config, readout, recipe);38 psphotSetMaskAndVariance (config, view, recipe); 39 39 40 40 // XXX need to define the source pixels … … 58 58 59 59 // generate a background model (median, smoothed image) 60 if (!psphotModelBackground (config, view, "PPSIM.FORCE.CHIP")) {60 if (!psphotModelBackgroundReadoutFileIndex (config, view, "PPSIM.FORCE.CHIP", 0)) { 61 61 return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL); 62 62 } 63 if (!psphotSubtractBackground (config, view, "PPSIM.FORCE.CHIP")) {63 if (!psphotSubtractBackgroundReadout (config, view, "PPSIM.FORCE.CHIP", 0)) { 64 64 return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL); 65 65 } … … 98 98 99 99 // create the exported-metadata and free local data 100 // XXX this places the sources on readout->analysis as PSPHOT.SOURCES. modify?101 // (or don't supply the sources, and do this with a different function)102 100 psphotReadoutCleanup(config, readout, recipe, NULL, psf, NULL); 103 101 … … 111 109 psAssert (forceReadout, "no forceReadout?"); 112 110 pmChipSetDataStatus (forceChip, true); 113 psMetadataAddArray (forceReadout->analysis, PS_LIST_TAIL, "PSPHOT.SOURCES", PS_META_REPLACE, "force photometry ", forceSources); 111 112 pmDetections *detections = pmDetectionsAlloc(); 113 detection->allSources = forceSources; 114 psMetadataAddArray (forceReadout->analysis, PS_LIST_TAIL, "PSPHOT.DETECTIONS", PS_META_REPLACE, "force photometry ", detections); 115 psFree(detections); 114 116 115 117 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
