IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38920


Ignore:
Timestamp:
Oct 21, 2015, 8:33:25 AM (11 years ago)
Author:
bills
Message:

when creating cmfs for forced warp (Lensing version) set bad psfqf values using
a deterministic method rather than random. Using random would make the results
inconsistent between runs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/mkcmf.c

    r38909 r38920  
    11031103  float flux, fSN;
    11041104
     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
    11051113  // XXX add gaussian-distributed noise based on counts
    11061114  // this needs to make different output 'stars' entries depending on the desired type
     
    11541162    stars[i].fwhmMin   = FY*2.8;
    11551163
    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;
    11591166      stars[i].psfQFperf = 0.0;
    11601167    } else {
Note: See TracChangeset for help on using the changeset viewer.