IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33755


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

ppMergeCamera.c fix to allow me to finish generating detrends. This needs to be rolled back once these are completed.

File:
1 edited

Legend:

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

    r33666 r33755  
    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/* } */
    212234#define CHECK_LEVEL(HDU, CHIP, CELL) { \
    213235    if (HDU) { \
     
    224246            format = (HDU)->format; \
    225247        } else if (format != (HDU)->format) { \
    226             psError(PS_ERR_UNKNOWN, true, "Camera format %d doesn't match: %p vs %p", \
    227                     i, format, (HDU)->format); \
    228             psFree(phuView); \
    229             return false; \
    230248        } \
    231249        continue; \
Note: See TracChangeset for help on using the changeset viewer.