IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 7, 2006, 5:05:28 PM (20 years ago)
Author:
Paul Price
Message:

Working on pmFPACopy for lris blue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/astrom/pmHDU.c

    r6734 r6815  
    145145    }
    146146
    147     if (!hdu->images && !psFitsWriteHeader(hdu->header, fits)) {
    148         psError(PS_ERR_IO, false, "Unable to write header for extension %s\n", extname);
     147    // Only a header
     148    if (!hdu->images && !hdu->table) {
     149        // Tell CFITSIO there's nothing there
     150        psMetadataItem *naxis = psMetadataLookup(hdu->header, "NAXIS");
     151        naxis->data.S32 = 0;
     152
     153        if (!psFitsWriteHeader(hdu->header, fits)) {
     154            psError(PS_ERR_IO, false, "Unable to write header for extension %s\n", extname);
     155        }
    149156    }
    150157
Note: See TracChangeset for help on using the changeset viewer.