IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 29, 2006, 1:25:46 PM (19 years ago)
Author:
Paul Price
Message:

Adding functions to add version information.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageLoop.c

    r10213 r10294  
    66#include "ppImage.h"
    77#include "ppImageDetrendFringe.h"
     8#include "ppImageVersion.h"
    89
    910
     
    3637    }
    3738
    38     pmFPAview *view = pmFPAviewAlloc(0);
     39    pmFPAview *view = pmFPAviewAlloc(0);// View for level of interest
     40    pmHDU *lastHDU = NULL;              // Last HDU that was updated
    3941
    4042    // files associated with the science image
     
    6163                return false;
    6264            }
     65
     66            // Put version information into the header
     67            pmHDU *hdu = pmHDUFromCell(cell);
     68            if (!hdu) {
     69                psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find HDU for cell (%d,%d)!\n",
     70                        view->chip, view->cell);
     71                return false;
     72            }
     73            if (hdu != lastHDU) {
     74                ppImageVersionMetadata(hdu->header);
     75                lastHDU = hdu;
     76            }
     77
    6378
    6479            // process each of the readouts
Note: See TracChangeset for help on using the changeset viewer.