IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 15, 2009, 12:45:01 PM (17 years ago)
Author:
Paul Price
Message:

Merging branches/pap (detection efficiency development) into trunk.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/psphot/src/psphotAddNoise.c

    r21519 r25383  
    11# include "psphotInternal.h"
    22
    3 bool psphotAddNoise (pmReadout *readout, psArray *sources, psMetadata *recipe) {
     3bool psphotAddNoise (pmReadout *readout, const psArray *sources, const psMetadata *recipe) {
    44  return psphotAddOrSubNoise (readout, sources, recipe, true);
    55}
    66
    7 bool psphotSubNoise (pmReadout *readout, psArray *sources, psMetadata *recipe) {
     7bool psphotSubNoise (pmReadout *readout, const psArray *sources, const psMetadata *recipe) {
    88  return psphotAddOrSubNoise (readout, sources, recipe, false);
    99}
    1010
    11 bool psphotAddOrSubNoise (pmReadout *readout, psArray *sources, psMetadata *recipe, bool add) {
     11bool psphotAddOrSubNoise (pmReadout *readout, const psArray *sources, const psMetadata *recipe, bool add) {
    1212
    1313    bool status = false;
     
    4242    PS_ASSERT (status, false);
    4343    if (isfinite(GAIN)) {
    44         FACTOR /= GAIN;
     44        FACTOR /= GAIN;
    4545    }
    4646
     
    7070        oldshape.sxy = PAR[PM_PAR_SXY];
    7171
    72         // XXX can this be done more intelligently?
    73         if (oldI0 == 0.0) continue;
    74         if (!isfinite(oldI0)) continue;
     72        // XXX can this be done more intelligently?
     73        if (oldI0 == 0.0) continue;
     74        if (!isfinite(oldI0)) continue;
    7575
    7676        // increase size and height of source
Note: See TracChangeset for help on using the changeset viewer.