IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 11, 2007, 1:18:48 PM (19 years ago)
Author:
Paul Price
Message:

Was using the sigma instead of FWHM.

File:
1 edited

Legend:

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

    r14816 r14817  
    11# include "ppSim.h"
    22
    3 #define FAINT_FUDGE_FACTOR   1.0        // Fraction of the noise in a (boxcar) PSF for the faint limit
     3#define FAINT_FUDGE_FACTOR   0.4        // Fraction of the noise in a (boxcar) PSF for the faint limit
    44
    55
     
    4646    // Faintest and brightest (integrated) fluxes (actually fluence, since integrated) for random stars
    4747    float faint = FAINT_FUDGE_FACTOR * sqrtf(PS_SQR(readnoise) + (darkRate + skyRate) * expTime) *
    48         seeing; // Faint limit is related to the noise in a (boxcar) PSF
     48        (2.0 * sqrt(2.0 * log(2.0)) * seeing); // Faint limit is related to the noise in a (boxcar) PSF
    4949    float bright = powf(10.0, -0.4 * (starsMag - zp)) * expTime; // Bright limit is specified by user as mag
    5050    psTrace("ppSim", 6, "Faint limit: %f\n", faint);
Note: See TracChangeset for help on using the changeset viewer.