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

    r18330 r18554  
    99
    1010#include "pmConfig.h"
     11#include "pmConfigMask.h"
    1112#include "pmDetrendDB.h"
    1213
     
    428429            }
    429430            pmConfigConformHeader(hdu->header, file->format);
     431
     432            // whenever we write out a mask image, we should define the bits which represent mask concepts
     433            if (file->type == PM_FPA_FILE_MASK) {
     434                assert (hdu->header);
     435                if (!pmConfigMaskWriteHeader (config, hdu->header)) {
     436                    psError(PS_ERR_UNKNOWN, false, "failed to set the bitmask names in the PHU header for Image %s (%s)\n", file->filename, file->name);
     437                    return false;
     438                }
     439            }
    430440        }
    431441
     
    792802          }
    793803
     804          // XXX if we have a mask file, then we need to read the mask bit names
     805          // defined for this file
     806          if (file->type == PM_FPA_FILE_MASK) {
     807            if (!pmConfigMaskReadHeader (config, phu)) {
     808                psError(PS_ERR_IO, false, "error in mask bits");
     809                return false;
     810            }
     811          }
     812
    794813          // determine the current format from the header
    795814          // determine camera if not specified already
Note: See TracChangeset for help on using the changeset viewer.