IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 15, 2010, 11:36:45 AM (16 years ago)
Author:
Paul Price
Message:

Let the flux limit be a user-defined number of sky sigmas (not just 1.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/ppSim/src/ppSimInsertStars.c

    r21365 r26613  
    2626    float expTime   = psMetadataLookupF32(NULL, recipe, "EXPTIME"); // Exposure time
    2727    float darkRate  = psMetadataLookupF32(NULL, recipe, "DARK.RATE"); // Dark rate
     28    float nSigmaLim = psMetadataLookupF32(NULL, recipe, "STARS.SIGMA.LIM"); // significance of faintest stars
    2829
    2930    float readnoise = psMetadataLookupF32(NULL, cell->concepts, "CELL.READNOISE");// CCD read noise, e
     
    106107        pmModelSetFlux (model, flux);
    107108
    108         // XXX let the flux limit be a user-defined number of sky sigmas (not just 1.0)
    109         float radius = model->modelRadius (model->params, roughNoise);
     109        float radius = model->modelRadius (model->params, nSigmaLim * roughNoise);
    110110        radius = PS_MAX (radius, 1.0);
    111111
Note: See TracChangeset for help on using the changeset viewer.