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/pmSubtraction.c

    r26893 r27086  
    1717#include <pslib.h>
    1818
     19#include "pmErrorCodes.h"
    1920#include "pmHDU.h"                      // Required for pmFPA.h
    2021#include "pmFPA.h"
     
    752753
    753754    if (stamp->status != PM_SUBTRACTION_STAMP_CALCULATE) {
    754         psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Stamp not marked for calculation.");
     755        psError(PM_ERR_PROG, true, "Stamp not marked for calculation.");
    755756        return false;
    756757    }
     
    808809
    809810    if (numStamps == 0) {
    810         psError(PS_ERR_UNKNOWN, true, "No good stamps found.");
     811        psError(PM_ERR_STAMPS, true, "No good stamps found.");
    811812        psFree(mask);
    812813        return -1;
     
    816817                                  PS_STAT_SAMPLE_MEDIAN | PS_STAT_SAMPLE_QUARTILE); // Statistics for deviatns
    817818    if (!psVectorStats(stats, deviations, NULL, mask, 0xff)) {
    818         psError(PS_ERR_UNKNOWN, false, "Unable to measure statistics for deviations.");
     819        psError(PM_ERR_DATA, false, "Unable to measure statistics for deviations.");
    819820        psFree(stats);
    820821        psFree(mask);
     
    11991200    if (region && psRegionIsNaN(*region)) {
    12001201        psString string = psRegionToString(*region);
    1201         psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Input region (%s) contains NAN values", string);
     1202        psError(PM_ERR_PROG, true, "Input region (%s) contains NAN values", string);
    12021203        psFree(string);
    12031204        return false;
     
    13031304
    13041305    if (!psThreadPoolWait(false)) {
    1305         psError(PS_ERR_UNKNOWN, false, "Error waiting for threads.");
     1306        psError(psErrorCodeLast(), false, "Error waiting for threads.");
    13061307        return false;
    13071308    }
Note: See TracChangeset for help on using the changeset viewer.