IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 20, 2006, 12:33:34 PM (20 years ago)
Author:
Paul Price
Message:

Using pmCellReadHeader now, to ensure all cells get updated 'concepts' following the header read.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/astrom/pmFPARead.c

    r6896 r6932  
    1010#include "pmConcepts.h"
    1111#include "psRegionIsBad.h"
    12 #include "pmHDUUtils.h"
     12#include "pmFPAHeader.h"
    1313
    1414#define MAX(x,y) ((x) > (y) ? (x) : (y))
     
    8787    // Get the HDU and read the header
    8888    pmCell *cell = readout->parent;     // The parent cell
     89    if (!pmCellReadHeader(cell, fits)) {
     90        psError(PS_ERR_IO, false, "Unable to read header for cell!\n");
     91        return false;
     92    }
     93
    8994    pmHDU *hdu = pmHDUFromCell(cell);   // The HDU
    9095    if (!hdu) {
     
    9297    }
    9398
    94     if (!hdu->header) {
    95         if (!pmHDUReadHeader(hdu, fits)) {
    96             psError(PS_ERR_IO, false, "Unable to read HDU header!\n");
    97             return false;
    98         }
    99         pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_HEADER, false, NULL);
    100     }
     99    // Make sure we have the information we need
     100    pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_HEADER, false, NULL);
    101101
    102102    // Get the trim and bias sections
Note: See TracChangeset for help on using the changeset viewer.