IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 27, 2006, 7:12:19 PM (20 years ago)
Author:
Paul Price
Message:

Changes to pmHDU and pmFPAWrite to (hopefully) fix for the last time
this horrible problem of when we write that annoying blank PHU. When
we want to write something out, there are four usage cases for the
pm{FPA,Chip,Cell}Write functions:

(1) Write the blank PHU only: blank=true, recurse=false;
(2) Write an image HDU only: blank=false, recurse=false;
(3) Write an entire file: blank=true, recurse=true; and
(4) Write only image HDUs within the file: blank=false, recurse=true.

So here, the "blank" boolean indicates whether we should write a
"blank" HDU (which consists of a header only, i.e., no pixels) when we
come across it. "recurse" is self-explanatory.

File:
1 edited

Legend:

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

    r7609 r7717  
    9494    PS_ASSERT_PTR_NON_NULL(hdu,);
    9595
    96     if (hdu->phu) {
    97         psTrace(__func__, level, "HDU: %s (PHU)\n", hdu->extname);
     96    if (hdu->blankPHU) {
     97        psTrace(__func__, level, "HDU: (PHU)\n");
    9898    } else {
    9999        psTrace(__func__, level, "HDU: %s\n", hdu->extname);
Note: See TracChangeset for help on using the changeset viewer.