- Timestamp:
- Oct 21, 2015, 8:33:25 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/addstar/src/mkcmf.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/mkcmf.c
r38909 r38920 1103 1103 float flux, fSN; 1104 1104 1105 // We want some fraction of the stars to have zero psfqfperfect so that we can test the 1106 // ForcedWarpMasked table construction, but we don't want things to be random so we 1107 // change every Nstars / modulo to zero 1108 int modulo = 0; 1109 if (BAD_PSFQF_FRAC > 0) { 1110 modulo = (int) (1.0 / BAD_PSFQF_FRAC); 1111 } 1112 1105 1113 // XXX add gaussian-distributed noise based on counts 1106 1114 // this needs to make different output 'stars' entries depending on the desired type … … 1154 1162 stars[i].fwhmMin = FY*2.8; 1155 1163 1156 // randomly give poor PSFQF values 1157 if ((BAD_PSFQF_FRAC > 0.0) && (drand48() < BAD_PSFQF_FRAC)) { 1158 stars[i].psfQF = 0.25; 1164 if (modulo && ((i+1) % modulo == 0)) { 1165 stars[i].psfQF = 0.0; 1159 1166 stars[i].psfQFperf = 0.0; 1160 1167 } else {
Note:
See TracChangeset
for help on using the changeset viewer.
