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/ppSimPhotomReadoutForce.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 + force sources on PPSIM.FORCE.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.FORCE.CHIP");
     
    3535    psAssert (forceSources, "failed to load force photometry sources");
    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
     
    4646    psArray *realSources = psArrayAlloc (realMeasuredSources->n);
    4747    for (int i = 0; i < realMeasuredSources->n; i++) {
    48         realSources->data[i] = pmSourceCopy (realMeasuredSources->data[i]);
     48        realSources->data[i] = pmSourceCopy (realMeasuredSources->data[i]);
    4949    }
    5050
    5151    // load the psf model, if suppled.  FWHM_X,FWHM_Y,etc are saved in the recipe
    52     // this function uses PSPHOT.PSF.LOAD as the pmFPAfile 
     52    // this function uses PSPHOT.PSF.LOAD as the pmFPAfile
    5353    pmPSF *psf = psphotLoadPSF (config, view, recipe);
    5454    assert (psf);
    5555
    56     // remove all sources 
     56    // remove all sources
    5757    psphotRemoveAllSources (realSources, recipe);
    5858
     
    6969
    7070    // XXX fake sources should measure peak->x,y, force sources should not
    71     psImageMaskType maskVal = 0xff; 
     71    psImageMaskType maskVal = 0xff;
    7272    psImage *significance = psphotSignificanceImage (readout, recipe, 1, maskVal);
    7373    ppSimDetections (significance, recipe, forceSources);
     
    8383    psphotGuessModels (config, readout, realSources, psf);
    8484    psphotGuessModels (config, readout, forceSources, psf);
    85    
     85
    8686    // linear fit to real + force sources
    8787    psArray *sources = ppSimMergeSources (realSources, forceSources);
     
    106106    pmReadout *forceReadout = pmFPAfileThisReadout (config->files, view, "PPSIM.FORCE.SOURCES");
    107107    if (!forceReadout) {
    108         forceReadout = pmReadoutAlloc (forceCell);
    109         psFree (forceReadout); // there is a copy on 'cell' as well
     108        forceReadout = pmReadoutAlloc (forceCell);
     109        psFree (forceReadout); // there is a copy on 'cell' as well
    110110    }
    111111    psAssert (forceReadout, "no forceReadout?");
Note: See TracChangeset for help on using the changeset viewer.