IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10294 for trunk/ppImage/src


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

Adding functions to add version information.

Location:
trunk/ppImage/src
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/Makefile.am

    r9953 r10294  
    55        ppImageOptions.h \
    66        ppImageDetrendFringe.h \
     7        ppImageVersion.h \
    78        ppMem.h
    89
     
    2425        ppImagePhotom.c \
    2526        ppImageAstrom.c \
    26         ppImageAddstar.c
     27        ppImageAddstar.c \
     28        ppImageVersion.c
    2729
    2830ppFocus_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(PSPHOT_CFLAGS) $(PSASTRO_CFLAGS) $(PPSTATS_CFLAGS) $(ppImage_CFLAGS)
     
    4547        ppImagePhotom.c \
    4648        ppImageAstrom.c \
    47         ppImageAddstar.c
     49        ppImageAddstar.c \
     50        ppImageVersion.c
    4851
    4952ppTest_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(ppImage_CFLAGS)
  • 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.