IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24257


Ignore:
Timestamp:
May 26, 2009, 5:51:51 PM (17 years ago)
Author:
Paul Price
Message:

Adding new error code to treat bad data quality: SMALL_AREA = insufficient area for PSF-matching (triggers high masked pixel fraction in pmSubtractionMask)

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubMatchPSFs.c

    r24181 r24257  
    166166            ppSubDataQuality(data, error, PPSUB_FILES_ALL);
    167167            return true;
     168        } else if (error == PM_ERR_SMALL_AREA) {
     169            psErrorStackPrint(stderr, "Insufficient area for PSF matching");
     170            psWarning("Insufficient area for PSF matching --- suspect bad data quality.");
     171            ppSubDataQuality(data, error, PPSUB_FILES_ALL);
     172            return true;
    168173        } else {
    169174            psError(PS_ERR_UNKNOWN, false, "Unable to match images.");
  • trunk/psModules/src/config/pmErrorCodes.dat

    r23688 r24257  
    1212SKY                     Problem in sky
    1313STAMPS                  Unable to select stamps for PSF-matching
     14SMALL_AREA              Small area for PSF-matching
    1415# these errors correspond to standard exit conditions
    1516ARGUMENTS               Incorrect arguments
  • trunk/psModules/src/imcombine/pmSubtractionMask.c

    r23851 r24257  
    66#include <pslib.h>
    77
     8#include "pmErrorCodes.h"
    89#include "pmSubtraction.h"
    910#include "pmSubtractionKernels.h"
     
    7879        }
    7980        if (numBad > badFrac * numCols * numRows) {
    80             psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     81            psError(PM_ERR_SMALL_AREA, true,
    8182                    "Fraction of bad pixels (%d/%d=%f) exceeds limit (%f)\n",
    8283                    numBad, numCols * numRows, (float)numBad/(float)(numCols * numRows), badFrac);
  • trunk/psModules/src/imcombine/pmSubtractionMatch.c

    r24181 r24257  
    246246                                         badFrac, mode); // Subtraction mask
    247247    if (!subMask) {
    248         psError(PS_ERR_UNKNOWN, false, "Unable to generate subtraction mask.");
     248        psError(psErrorCodeLast(), false, "Unable to generate subtraction mask.");
    249249        psFree(kernels);
    250250        psFree(regions);
Note: See TracChangeset for help on using the changeset viewer.