Changeset 26783
- Timestamp:
- Feb 5, 2010, 1:31:21 PM (16 years ago)
- Location:
- branches/eam_branches/20091201/ppSim/src
- Files:
-
- 3 edited
-
Makefile.am (modified) (2 diffs)
-
ppSimPhotom.c (modified) (2 diffs)
-
ppSimPhotomReadoutFake.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/ppSim/src/Makefile.am
r26374 r26783 48 48 ppSimLoadSpots.c \ 49 49 ppSimPhotom.c \ 50 ppSimPhotomReadoutFake.c \51 ppSimPhotomReadoutForce.c \52 50 ppSimPhotomFiles.c \ 53 51 ppSimLoadForceSources.c \ … … 60 58 ppSimBadCTE.c \ 61 59 ppSimVersion.c 60 61 # these functions have been broken by the API change in psphot (Jan 2010) 62 # ppSimPhotomReadoutFake.c 63 # ppSimPhotomReadoutForce.c 62 64 63 65 ppSimSequence_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(PSASTRO_CFLAGS) $(ppSim_CFLAGS) -
branches/eam_branches/20091201/ppSim/src/ppSimPhotom.c
r21183 r26783 46 46 if (! readout->data_exists) { continue; } 47 47 48 // these are broken by the Jan 2010 API changes to psphot 49 #if 0 48 50 // run the actual photometry analysis 49 51 if (!ppSimPhotomReadoutFake (config, view)) { … … 56 58 } 57 59 // ppSimDetectionLimits (config, view); 60 #endif 58 61 } 59 62 } -
branches/eam_branches/20091201/ppSim/src/ppSimPhotomReadoutFake.c
r26543 r26783 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 (!psphotAddPhotcodeReadout (recipe, config, view, "PPSIM.FAKE.CHIP", 0)) {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, view , 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 … … 68 61 return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL); 69 62 } 70 if (!psphotSubtractBackgroundReadout (config, view, "PPSIM.FAKE.CHIP", 0 )) {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.
