IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33757


Ignore:
Timestamp:
Apr 10, 2012, 4:35:23 PM (14 years ago)
Author:
watersc1
Message:

Backing out my ppMerge change on the trunk, in case I forget about this later. It's still active on the working tag, which is where I need it at the moment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeCamera.c

    r33755 r33757  
    210210
    211211// Check an FPA level to ensure the camera format and PHU are consistent across all input files
     212#define CHECK_LEVEL(HDU, CHIP, CELL) { \
     213    if (HDU) { \
     214        if (!phuView) { \
     215            phuView = pmFPAviewAlloc(0); \
     216            phuView->chip = CHIP; \
     217            phuView->cell = CELL; \
     218        } else if ((phuView->chip != (CHIP)) && (phuView->cell != (CELL))) { \
     219            psError(PS_ERR_UNKNOWN, true, "Differing PHU for input %d", i); \
     220            psFree(phuView); \
     221            return false; \
     222        } \
     223        if (!format) { \
     224            format = (HDU)->format; \
     225        } else if (format != (HDU)->format) { \
     226          psError(PS_ERR_UNKNOWN, true, "Camera format %d doesn't match: %p vs %p on %s %s", \
     227                  i, format, (HDU)->format, (HDU)->extname, psMetadataLookupStr(NULL,(HDU)->header,"FILENAME")); \
     228            psFree(phuView); \
     229            return false; \
     230        } \
     231        continue; \
     232    } \
     233}
     234    // CZW: 2012-04-10 Version of above to allow different camera formats to be processed together.
    212235/* #define CHECK_LEVEL(HDU, CHIP, CELL) { \ */
    213236/*     if (HDU) { \ */
     
    224247/*             format = (HDU)->format; \ */
    225248/*         } else if (format != (HDU)->format) { \ */
    226 /*        psError(PS_ERR_UNKNOWN, true, "Camera format %d doesn't match: %p vs %p on %s %s", \ */
    227 /*                i, format, (HDU)->format, (HDU)->extname, psMetadataLookupStr(NULL,(HDU)->header,"FILENAME")); \ */
    228 /*             psFree(phuView); \ */
    229 /*             return false; \ */
    230249/*         } \ */
    231250/*         continue; \ */
    232251/*     } \ */
    233252/* } */
    234 #define CHECK_LEVEL(HDU, CHIP, CELL) { \
    235     if (HDU) { \
    236         if (!phuView) { \
    237             phuView = pmFPAviewAlloc(0); \
    238             phuView->chip = CHIP; \
    239             phuView->cell = CELL; \
    240         } else if ((phuView->chip != (CHIP)) && (phuView->cell != (CELL))) { \
    241             psError(PS_ERR_UNKNOWN, true, "Differing PHU for input %d", i); \
    242             psFree(phuView); \
    243             return false; \
    244         } \
    245         if (!format) { \
    246             format = (HDU)->format; \
    247         } else if (format != (HDU)->format) { \
    248         } \
    249         continue; \
    250     } \
    251 }
    252253
    253254    psMetadata *format = NULL;          ///< Camera format
Note: See TracChangeset for help on using the changeset viewer.