IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20367


Ignore:
Timestamp:
Oct 24, 2008, 2:54:19 PM (18 years ago)
Author:
eugene
Message:

record the unmodified flux in the output cmf file

File:
1 edited

Legend:

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

    r20318 r20367  
    118118        psF64 Area = 2.0 * M_PI * axes.major * axes.minor;
    119119
    120         source->psfMag = -2.5*log10(flux);
     120        // this value is the pure (input) flux, and is saved in the output source cmf files
     121        source->psfMag = -2.5*log10(star->flux);
    121122        source->errMag = sqrt(Area*PS_SQR(roughNoise) + flux) / flux;
    122123
     
    125126        // insert the source flux in the image
    126127        pmSourceAddWithOffset (source, PM_MODEL_OP_FULL, 0xff, dX, dY);
     128
     129        // insert the source flux in the noise image
    127130        pmSourceAddWithOffset (source, PM_MODEL_OP_FULL | PM_MODEL_OP_NOISE, 0xff, dX, dY);
    128131
Note: See TracChangeset for help on using the changeset viewer.