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

    r7589 r7717  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-06-17 01:50:43 $
     5 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-06-28 05:12:19 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    253253    if (view->chip < 0) {
    254254        hdu = pmHDUFromFPA (fpa);
    255         if (hdu->phu)
     255        if (hdu->blankPHU)
    256256            return hdu;
    257257        return NULL;
     
    260260        chip = pmFPAviewThisChip (view, fpa);
    261261        hdu  = pmHDUFromChip (chip);
    262         if (hdu->phu)
     262        if (hdu->blankPHU)
    263263            return hdu;
    264264        new.chip = -1;
     
    269269        cell = pmFPAviewThisCell (view, fpa);
    270270        hdu  = pmHDUFromCell (cell);
    271         if (hdu->phu)
     271        if (hdu->blankPHU)
    272272            return hdu;
    273273        new.cell = -1;
Note: See TracChangeset for help on using the changeset viewer.