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/ppSimInsertGalaxies.c

    r34054 r34057  
    22static char *defaultModel = "PS_MODEL_SERSIC";
    33
     4// this is used to measure the inserted flux as a difference of 2 large numbers : must use
     5// 'double' or we get floating point errors and trends on a scale of ~0.005 mags at > -10 mags
     6// instrumental
    47double imageSum (psImage *image) {
    58    double sum = 0.0;
     
    165168       
    166169        // insert the source flux in the image
    167         float sum1 = imageSum(source->pixels);
     170        double sum1 = imageSum(source->pixels);
    168171        pmSourceAddWithOffset (source, PM_MODEL_OP_FULL, 0xff, dX, dY);
    169         float sum2 = imageSum(source->pixels);
     172        double sum2 = imageSum(source->pixels);
    170173        float flux = sum2 - sum1;
    171174
Note: See TracChangeset for help on using the changeset viewer.