Changeset 14817 for trunk/ppSim/src/ppSimMakeStars.c
- Timestamp:
- Sep 11, 2007, 1:18:48 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppSim/src/ppSimMakeStars.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSim/src/ppSimMakeStars.c
r14816 r14817 1 1 # include "ppSim.h" 2 2 3 #define FAINT_FUDGE_FACTOR 1.0// Fraction of the noise in a (boxcar) PSF for the faint limit3 #define FAINT_FUDGE_FACTOR 0.4 // Fraction of the noise in a (boxcar) PSF for the faint limit 4 4 5 5 … … 46 46 // Faintest and brightest (integrated) fluxes (actually fluence, since integrated) for random stars 47 47 float faint = FAINT_FUDGE_FACTOR * sqrtf(PS_SQR(readnoise) + (darkRate + skyRate) * expTime) * 48 seeing; // Faint limit is related to the noise in a (boxcar) PSF48 (2.0 * sqrt(2.0 * log(2.0)) * seeing); // Faint limit is related to the noise in a (boxcar) PSF 49 49 float bright = powf(10.0, -0.4 * (starsMag - zp)) * expTime; // Bright limit is specified by user as mag 50 50 psTrace("ppSim", 6, "Faint limit: %f\n", faint);
Note:
See TracChangeset
for help on using the changeset viewer.
