IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 15, 2008, 10:25:00 AM (18 years ago)
Author:
eugene
Message:

re-organization of the named mask bit handling: pmConfigMaskSetBits now assigns the bits to names and make the recipe consistent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfileDefine.c

    r18061 r18554  
    1010#include "pmErrorCodes.h"
    1111#include "pmConfig.h"
     12#include "pmConfigMask.h"
    1213#include "pmDetrendDB.h"
    1314
     
    489490        psFree(realName);
    490491        return NULL;
     492    }
     493
     494    if (file->type == PM_FPA_FILE_MASK) {
     495        if (!pmConfigMaskReadHeader (config, phu)) {
     496            psError(PS_ERR_IO, false, "error in mask bits");
     497            return NULL;
     498        }
    491499    }
    492500
     
    660668    file->fileLevel = input->fileLevel;
    661669
     670
    662671    // define the rule to identify these files in the file->names data
    663672    psFree (file->filerule);
     
    735744        psMetadataAddStr (file->names, PS_LIST_TAIL, name, 0, "", infiles->data[i]);
    736745
     746        if ((i == 0) && (file->type == PM_FPA_FILE_MASK)) {
     747            if (!pmConfigMaskReadHeader (config, phu)) {
     748                psError(PS_ERR_IO, false, "error in mask bits");
     749                return NULL;
     750            }
     751        }
     752
    737753        psFree(view);
    738754        psFree(name);
     
    806822        psFree(formatName);
    807823        return NULL;
     824    }
     825
     826    if (file->type == PM_FPA_FILE_MASK) {
     827        if (!pmConfigMaskReadHeader (config, phu)) {
     828            psError(PS_ERR_IO, false, "error in mask bits");
     829            return NULL;
     830        }
    808831    }
    809832
Note: See TracChangeset for help on using the changeset viewer.