IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 2, 2009, 10:14:15 AM (17 years ago)
Author:
Paul Price
Message:

Since we're now writing a covariance matrix to the end of the variance image, they have no longer been identified as 'SingleCompressedImagePHU' because there's more than one extension. Realised that this is not what this function is supposed to check, but merely whether the PHU is a dummy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFitsHeader.c

    r22432 r22729  
    149149
    150150
    151 bool psFitsCheckSingleCompressedImagePHU(const psFits *fits, psMetadata *header)
     151bool psFitsCheckCompressedImagePHU(const psFits *fits, psMetadata *header)
    152152{
    153153    PS_ASSERT_FITS_NON_NULL(fits, false);
     
    163163    }
    164164
    165     if (psFitsGetSize(fits) != 2) {
    166         // No second extension, or multiple extensions
     165    if (psFitsGetSize(fits) == 1) {
     166        // No extension present
    167167        return false;
    168168    }
     
    416416    // Explore the potential case that this is an empty PHU, and the first extension contains the sole image,
    417417    // which is compressed.
    418     if (psFitsCheckSingleCompressedImagePHU(fits, header)) {
     418    if (psFitsCheckCompressedImagePHU(fits, header)) {
    419419        // This is really what we want, not the empty PHU
    420420        psTrace("psLib.fits", 1,
Note: See TracChangeset for help on using the changeset viewer.