IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 10, 2010, 7:42:33 PM (16 years ago)
Author:
eugene
Message:

updates from eam_branches/20091201

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSim/src/ppSimPhotomReadoutFake.c

    r21365 r26900  
    11# include "ppSim.h"
    22
     3// XXX this function is currently disabled -- need to update code below to distinguish the fake
     4// and force positions, etc
    35bool ppSimPhotomReadoutFake(pmConfig *config, const pmFPAview *view) {
    46
     
    1113        return false;
    1214    }
    13 
    14 # if 0
    15     // set the photcode for this image
    16     if (!psphotAddPhotcode (recipe, config, view, "PPSIM.FAKE.CHIP")) {
    17         psError (PSPHOT_ERR_CONFIG, false, "trouble defining the photcode");
    18         return false;
    19     }
    20 # endif
    2115
    2216    // *** in this section, perform the photometry for real + fake sources on PPSIM.FAKE.CHIP ***
     
    3630
    3731    // Generate the mask and variance images, including the user-defined analysis region of interest
    38     psphotSetMaskAndVariance (config, readout, recipe);
     32    psphotSetMaskAndVariance (config, view);
    3933
    4034    // XXX need to define the source pixels
     
    5852    // load the psf model, if suppled.  FWHM_X,FWHM_Y,etc are saved in the recipe
    5953    // this function uses PSPHOT.PSF.LOAD as the pmFPAfile
    60     pmPSF *psf = psphotLoadPSF (config, view, recipe);
    61     assert (psf);
     54    psphotLoadPSF (config, view);
    6255
    6356    // remove all sources
     
    6558
    6659    // generate a background model (median, smoothed image)
    67     if (!psphotModelBackground (config, view, "PPSIM.FAKE.CHIP")) {
     60    if (!psphotModelBackgroundReadoutFileIndex (config, view, "PPSIM.FAKE.CHIP", 0)) {
    6861        return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL);
    6962    }
    70     if (!psphotSubtractBackground (config, view, "PPSIM.FAKE.CHIP")) {
     63    if (!psphotSubtractBackgroundReadout (config, view, "PPSIM.FAKE.CHIP", 0, recipe)) {
    7164        return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL);
    7265    }
Note: See TracChangeset for help on using the changeset viewer.