IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 30, 2007, 3:24:59 PM (19 years ago)
Author:
eugene
Message:

fixed errors with pmImageDefineFile for DetDB queries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageDefineFile.c

    r13531 r13562  
    55# include "ppImage.h"
    66
    7 bool ppImageDefineFile (pmConfig *config, pmFPA *input, char *filerule, char *argname, pmFPAfileType type) {
     7bool ppImageDefineFile (pmConfig *config, pmFPA *input, char *filerule, char *argname, pmFPAfileType fileType, pmDetrendType detrendType) {
    88
    99    bool status;
     
    1717    }
    1818    if (file) {
    19         if (file->type != type) {
    20             psError(PS_ERR_IO, true, "%s is not of type %s", filerule, pmFPAfileStringFromType (type));
     19        if (file->type != fileType) {
     20            psError(PS_ERR_IO, true, "%s is not of type %s", filerule, pmFPAfileStringFromType (fileType));
    2121            return false;
    2222        }
     
    3131    }
    3232    if (file) {
    33         if (file->type != type) {
    34             psError(PS_ERR_IO, true, "%s is not of type %s", filerule, pmFPAfileStringFromType (type));
     33        if (file->type != fileType) {
     34            psError(PS_ERR_IO, true, "%s is not of type %s", filerule, pmFPAfileStringFromType (fileType));
    3535            return false;
    3636        }
     
    3939
    4040    // look for the file to be loaded from the detrend database
    41     pmFPAfileDefineFromDetDB (&status, config, filerule, input, type);
     41    file = pmFPAfileDefineFromDetDB (&status, config, filerule, input, detrendType);
    4242    if (!status) {
    43         psError (PS_ERR_UNKNOWN, false, "failed to load find definition");
     43        psError (PS_ERR_UNKNOWN, false, "failed to load file definition");
    4444        return false;
    4545    }
    4646    if (file) {
    47         if (file->type != type) {
    48             psError(PS_ERR_IO, true, "%s is not of type %s", filerule, pmFPAfileStringFromType (type));
     47        if (file->type != fileType) {
     48            psError(PS_ERR_IO, true, "%s is not of type %s", filerule, pmFPAfileStringFromType (fileType));
    4949            return false;
    5050        }
Note: See TracChangeset for help on using the changeset viewer.