IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 26, 2006, 5:22:12 PM (20 years ago)
Author:
Paul Price
Message:

Changed psFitsWriteHeader to psFitsWriteBlank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmHDU.c

    r7238 r7241  
    186186
    187187    // Only a header
    188     if (!hdu->images && !hdu->table) {
    189         #if 0
    190         // Tell CFITSIO there's nothing there
    191         psMetadataItem *naxis = psMetadataLookup(hdu->header, "NAXIS");
    192         if (naxis) {
    193             naxis->data.S32 = 0;
    194         }
    195         #endif
    196 
    197         if (!psFitsWriteHeader(fits, hdu->header)) {
    198             psError(PS_ERR_IO, false, "Unable to write header for extension %s\n", extname);
    199         }
     188    if (!hdu->images && !hdu->table && !psFitsWriteBlank(fits, hdu->header)) {
     189        psError(PS_ERR_IO, false, "Unable to write header for extension %s\n", extname);
    200190    }
    201191
Note: See TracChangeset for help on using the changeset viewer.