IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 5, 2008, 3:29:09 AM (18 years ago)
Author:
eugene
Message:

added forced photometry code; compiles, not tested

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080511/ppSim/src/ppSimInsertStars.c

    r17850 r17935  
    114114        source->errMag = sqrt(Area*PS_SQR(roughNoise) + flux) / flux;
    115115
    116         // XXX add the sources to a source array
    117 
    118116        // insert the source flux in the image
    119117        pmSourceAddWithOffset (source, PM_MODEL_OP_FULL, 0xff, dX, dY);
    120118        pmSourceAddWithOffset (source, PM_MODEL_OP_FULL | PM_MODEL_OP_NOISE, 0xff, dX, dY);
    121         psArrayAdd (sources, 100,source);
    122         psFree(source);                 // Drop reference
    123119
    124120        // Blow away the image parts of the source, which makes the memory explode
     
    130126        RESET(source->psfFlux);
    131127        RESET(source->blends);
     128
     129        // add the sources to the source array
     130        psArrayAdd (sources, 100,source);
     131        psFree(source);                 // Drop reference
    132132    }
    133133
Note: See TracChangeset for help on using the changeset viewer.