IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 18, 2010, 4:11:53 PM (16 years ago)
Author:
eugene
Message:

merge changes from branches/eam_branches/psphot,psModules.20100506 (finish basic psphotStack)

Location:
trunk/psphot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot

  • trunk/psphot/src/psphotEfficiency.c

    r28006 r28013  
    156156}
    157157
    158 bool psphotEfficiency (pmConfig *config, const pmFPAview *view)
     158bool psphotEfficiency (pmConfig *config, const pmFPAview *view, const char *filerule)
    159159{
    160160    bool status = true;
     
    173173    // loop over the available readouts
    174174    for (int i = 0; i < num; i++) {
    175         if (i == chisqNum) continue; // skip chisq image
    176         if (!psphotEfficiencyReadout (config, view, "PSPHOT.INPUT", i, recipe)) {
    177             psError (PSPHOT_ERR_CONFIG, false, "failed to measure detection efficiency for PSPHOT.INPUT entry %d", i);
     175        if (i == chisqNum) continue; // skip chisq image
     176        if (!psphotEfficiencyReadout (config, view, filerule, i, recipe)) {
     177            psError (PSPHOT_ERR_CONFIG, false, "failed to measure detection efficiency for %s entry %d", filerule, i);
    178178            return false;
    179179        }
     
    183183
    184184// Determine detection efficiency
    185 bool psphotEfficiencyReadout(pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe)
     185bool psphotEfficiencyReadout(pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe)
    186186{
    187187    bool status = true;
     
    190190
    191191    // find the currently selected readout
    192     pmFPAfile *file = pmFPAfileSelectSingle(config->files, filename, index); // File of interest
     192    pmFPAfile *file = pmFPAfileSelectSingle(config->files, filerule, index); // File of interest
    193193    psAssert (file, "missing file?");
    194194
Note: See TracChangeset for help on using the changeset viewer.