IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 27, 2010, 9:17:17 AM (16 years ago)
Author:
eugene
Message:

build works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/psphot.stack.20100120/src/psphotEfficiency.c

    r26688 r26691  
    66//#define TESTING
    77
     8
     9# if 0
    810
    911// Calculate the limiting magnitude for an image
     
    148150}
    149151
     152# endif
    150153
    151154bool psphotEfficiency (pmConfig *config, const pmFPAview *view)
     
    157160    psAssert (recipe, "missing recipe?");
    158161
    159     int num = psMetadataAddS32 (&status, config->arguments, "PSPHOT.INPUT.NUM");
     162    int num = psMetadataLookupS32 (&status, config->arguments, "PSPHOT.INPUT.NUM");
    160163    psAssert (status, "programming error: must define PSPHOT.INPUT.NUM");
    161164
    162165    // loop over the available readouts
    163166    for (int i = 0; i < num; i++) {
    164         if (!psphotReadout (config, view, "PSPHOT.INPUT", i, recipe)) {
     167        if (!psphotEfficiencyReadout (config, view, "PSPHOT.INPUT", i, recipe)) {
    165168            psError (PSPHOT_ERR_CONFIG, false, "failed on saturated star deblend analysis for PSPHOT.INPUT entry %d", i);
    166169            return false;
     
    173176bool psphotEfficiencyReadout(pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe)
    174177{
     178# if 0
     179    bool status = true;
     180
    175181    psTimerStart("psphot.fake");
    176182
    177183    // find the currently selected readout
    178184    pmFPAfile *file = pmFPAfileSelectSingle(config->files, filename, index); // File of interest
    179     psAssert (readout, "missing file?");
     185    psAssert (file, "missing file?");
    180186
    181187    pmReadout *readout = pmFPAviewThisReadout(view, file->fpa);
     
    512518    psLogMsg("psphot", PS_LOG_INFO, "Detection efficiency: %lf sec\n", psTimerClear("psphot.fake"));
    513519
     520# endif
    514521
    515522    return true;
Note: See TracChangeset for help on using the changeset viewer.