IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 23, 2012, 6:56:57 AM (14 years ago)
Author:
eugene
Message:

need to use double for the imageSum

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120601/ppSim/src/ppSimInsertStars.c

    r34054 r34057  
    66    PTR = NULL;
    77
    8 float imageSum (psImage *image);
     8double imageSum (psImage *image);
    99
    1010bool ppSimInsertStars (pmReadout *readout, psImage *expCorr, psArray *stars, pmConfig *config) {
     
    111111
    112112        // XXX test:
    113         flux = star->flux * expCorr->data.F32[0][0];
     113        // flux = star->flux * expCorr->data.F32[0][0];
    114114
    115115        // instantiate a model for the PSF at this location, set desired flux
     
    145145            readout->image->data.F32[(int)(yCell)][(int)(xCell)] += flux;
    146146        } else {
    147             // insert the source flux in the image
     147            // insert the source flux in the image and measure inserted flux
     148            // this is a difference of 2 large numbers : must use 'double' or we get floating
     149            // point errors and trends on a scale of ~0.005 mags at > -10 mags instrumental
    148150            double sum1 = imageSum(source->pixels);
    149151            pmSourceAddWithOffset (source, PM_MODEL_OP_FULL, 0xff, dX, dY);
Note: See TracChangeset for help on using the changeset viewer.