IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 5, 2009, 4:47:00 PM (17 years ago)
Author:
Paul Price
Message:

Merging pap_branch_20090128. Resolved a small number of conflicts. Compiles, but not tested in detail.

File:
1 edited

Legend:

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

    r21183 r21365  
    1212    }
    1313
    14 # if 0   
     14# if 0
    1515    // set the photcode for this image
    1616    if (!psphotAddPhotcode (recipe, config, view, "PPSIM.FAKE.CHIP")) {
     
    2222    // *** in this section, perform the photometry for real + fake sources on PPSIM.FAKE.CHIP ***
    2323
    24     // find the currently selected readout. 
     24    // find the currently selected readout.
    2525    // we always perform photometry on the mosaiced chip
    2626    pmReadout  *readout = pmFPAfileThisReadout (config->files, view, "PPSIM.FAKE.CHIP");
     
    3535    PS_ASSERT_PTR_NON_NULL (injectedSources, false);
    3636
    37     // Generate the mask and weight images, including the user-defined analysis region of interest
    38     psphotSetMaskAndWeight (config, readout, recipe);
     37    // Generate the mask and variance images, including the user-defined analysis region of interest
     38    psphotSetMaskAndVariance (config, readout, recipe);
    3939
    4040    // XXX need to define the source pixels
     
    5353    psArray *realSources = psArrayAlloc (realMeasuredSources->n);
    5454    for (int i = 0; i < realMeasuredSources->n; i++) {
    55         realSources->data[i] = pmSourceCopy (realMeasuredSources->data[i]);
     55        realSources->data[i] = pmSourceCopy (realMeasuredSources->data[i]);
    5656    }
    5757
    5858    // load the psf model, if suppled.  FWHM_X,FWHM_Y,etc are saved in the recipe
    59     // this function uses PSPHOT.PSF.LOAD as the pmFPAfile 
     59    // this function uses PSPHOT.PSF.LOAD as the pmFPAfile
    6060    pmPSF *psf = psphotLoadPSF (config, view, recipe);
    6161    assert (psf);
    6262
    63     // remove all sources 
     63    // remove all sources
    6464    psphotRemoveAllSources (realSources, recipe);
    6565
     
    7676
    7777    // XXX fake sources should measure peak->x,y, force sources should not
    78     psImageMaskType maskVal = 0xff; 
     78    psImageMaskType maskVal = 0xff;
    7979    psImage *significance = psphotSignificanceImage (readout, recipe, 1, maskVal);
    8080    ppSimDetections (significance, recipe, fakeSources);
     
    9090    psphotGuessModels (config, readout, realSources, psf);
    9191    psphotGuessModels (config, readout, fakeSources, psf);
    92    
     92
    9393    // linear fit to real + fake sources
    9494    psArray *sources = ppSimMergeSources (realSources, fakeSources);
     
    113113    pmReadout *fakeReadout = pmFPAfileThisReadout (config->files, view, "PPSIM.FAKE.SOURCES");
    114114    if (!fakeReadout) {
    115         fakeReadout = pmReadoutAlloc (fakeCell);
    116         psFree (fakeReadout); // there is a copy on 'cell' as well
     115        fakeReadout = pmReadoutAlloc (fakeCell);
     116        psFree (fakeReadout); // there is a copy on 'cell' as well
    117117    }
    118118    psAssert (fakeReadout, "no fakeReadout?");
Note: See TracChangeset for help on using the changeset viewer.