IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27726


Ignore:
Timestamp:
Apr 22, 2010, 11:05:27 AM (16 years ago)
Author:
Paul Price
Message:

Based on simulation and real data, I now believe I have the correct expression for the limiting magnitude. Added a log message with the input parameters to the limiting magnitude.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/psphot/src/psphotEfficiency.c

    r27657 r27726  
    7373    psTrace("psphot.fake", 1, "Limiting flux: %f\n", fluxLim);
    7474    psTrace("psphot.fake", 1, "Limiting mag: %f\n", *magLim);
     75    psLogMsg("psphot", PS_LOG_INFO,
     76             "Detection efficiency:\n"
     77             "  Mean variance: %f * %f\n"
     78             "  Threshold: %f\n"
     79             "  Normalisation: %f\n"
     80             "  Limiting magnitude: %f\n",
     81             meanVar, *covarFactor, thresh, *norm, *magLim);
    7582
    7683    *radius = smoothSigma * smoothNsigma;
     
    166173    // loop over the available readouts
    167174    for (int i = 0; i < num; i++) {
    168         if (i == chisqNum) continue; // skip chisq image
    169         if (!psphotEfficiencyReadout (config, view, "PSPHOT.INPUT", i, recipe)) {
     175        if (i == chisqNum) continue; // skip chisq image
     176        if (!psphotEfficiencyReadout (config, view, "PSPHOT.INPUT", i, recipe)) {
    170177            psError (PSPHOT_ERR_CONFIG, false, "failed to measure detection efficiency for PSPHOT.INPUT entry %d", i);
    171             return false;
    172         }
     178            return false;
     179        }
    173180    }
    174181    return true;
Note: See TracChangeset for help on using the changeset viewer.