IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31157


Ignore:
Timestamp:
Apr 4, 2011, 1:14:37 PM (15 years ago)
Author:
eugene
Message:

updates from eam branch

Location:
trunk/ppSim
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSim

    • Property svn:ignore
      •  

        old new  
        1414missing
        1515test
         16a.out.dSYM
  • trunk/ppSim/src/Makefile.am

    r30618 r31157  
    4848        ppSimLoop.c               \
    4949        ppSimMergeReadouts.c      \
    50         ppSimDetections.c         \
    5150        ppSimMergeSources.c       \
    5251        ppSimMosaicChip.c         \
  • trunk/ppSim/src/ppSimDetectionLimits.c

    r18011 r31157  
    33// compare injected sources (PPSIM.SOURCES) and measured fake sources (PPSIM.FAKE.SOURCES)
    44// to determine detection limits and recovered magnitude errors
     5// XXX this function is not used
    56bool ppSimDetectionLimits (pmConfig *config, pmFPAview *view) {
    67
  • trunk/ppSim/src/ppSimDetections.c

    r18011 r31157  
    11# include "ppSim.h"
    22
     3// XXX this function is not used
    34bool ppSimDetections (psImage *significance, psMetadata *recipe, psArray *sources) {
    45    psAssert (sources, "programming error: ppSimDetections passed NULL sources");
     
    1213    float SIGMA_SMTH  = psMetadataLookupF32 (&status, recipe, "SIGMA_SMOOTH");
    1314    psAssert (status, "SIGMA_SMOOTH missing: call psphotSignificanceImage first");
    14     float effArea = 4.0*M_PI*PS_SQR(SIGMA_SMTH);
     15    // float effArea = 4.0*M_PI*PS_SQR(SIGMA_SMTH);
    1516
    1617    int row0 = significance->row0;
     
    2324        psAssert (peak, "peak is not defined for the source");
    2425
    25         peak->value = significance->data.F32[peak->y-row0][peak->x-col0];
    26         peak->SN = sqrt(peak->value*effArea);
    27 
     26        peak->detValue = significance->data.F32[peak->y-row0][peak->x-col0];
    2827    }
    2928    return true;
  • trunk/ppSim/src/ppSimMakeGalaxies.c

    r30618 r31157  
    1616
    1717    bool galaxyGrid       = psMetadataLookupBool(&mdok, recipe, "GALAXY.GRID"); // Density of fakes
    18     int galaxyGridDX      = psMetadataLookupS32(&mdok, recipe, "GALAXY.GRID.DX"); // Density of fakes
    19     int galaxyGridDY      = psMetadataLookupS32(&mdok, recipe, "GALAXY.GRID.DY"); // Density of fakes
     18    int galaxyGridDX      = psMetadataLookupS32 (&mdok, recipe, "GALAXY.GRID.DX"); // Density of fakes
     19    int galaxyGridDY      = psMetadataLookupS32 (&mdok, recipe, "GALAXY.GRID.DY"); // Density of fakes
    2020    bool galaxyGridRandom = psMetadataLookupBool(&mdok, recipe, "GALAXY.GRID.RANDOM"); // Density of fakes
     21    float galaxyGridPeak  = psMetadataLookupF32 (&mdok, recipe, "GALAXY.GRID.PEAK"); // peak flux of fakes
    2122   
    2223    float galaxyRmajorMax = psMetadataLookupF32(&mdok, recipe, "GALAXY.RMAJOR.MAX"); // Density of fakes
     
    107108                galaxy->x    = ix;
    108109                galaxy->y    = iy;
    109 
    110                 // galaxy->peak = 1000;
    111                 galaxy->peak = bright / 100.0;
    112                 // fprintf (stderr, "Io: %f\n", bright);
     110                galaxy->peak = galaxyGridPeak;
    113111
    114112                // galaxyIndex from user should be for function of this form: exp(-r^(1/n))
Note: See TracChangeset for help on using the changeset viewer.