IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 25, 2010, 12:33:42 PM (16 years ago)
Author:
Paul Price
Message:

Fixing error codes for PSF-matching.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionParams.c

    r26893 r27086  
    88#include <pslib.h>
    99
     10#include "pmErrorCodes.h"
    1011#include "pmSubtractionStamps.h"
    1112#include "pmSubtraction.h"
     
    281282        }
    282283        if (!pmSubtractionConvolveStamp(stamp, kernels, footprint)) {
    283             psError(PS_ERR_UNKNOWN, false, "Unable to convolve stamp %d.", i);
     284            psError(psErrorCodeLast(), false, "Unable to convolve stamp %d.", i);
    284285            psFree(targets);
    285286            psFree(kernels);
     
    297298        }
    298299        if (!isfinite(sum1)) {
    299             psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     300            psError(PM_ERR_DATA, true,
    300301                    "Sum of 1/sigma^2 is non-finite for stamp %d (%d,%d)\n",
    301302                    i, (int)stamp->x, (int)stamp->y);
     
    369370
    370371        if (bestIndex == -1) {
    371             psError(PS_ERR_UNKNOWN, false, "Unable to find best kernel component in round %d.", iter);
     372            psError(PM_ERR_DATA, true, "Unable to find best kernel component in round %d.", iter);
    372373            psFree(targets);
    373374            psFree(sumC);
     
    408409
    409410    if (cutIndex < 0) {
    410         psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Unable to converge to tolerance %g\n", tolerance);
     411        psError(PM_ERR_DATA, true, "Unable to converge to tolerance %g\n", tolerance);
    411412        psFree(ranking);
    412413        psFree(kernels);
Note: See TracChangeset for help on using the changeset viewer.