Changeset 6815 for branches/rel10_ifa/psModules/src/astrom/pmHDU.c
- Timestamp:
- Apr 7, 2006, 5:05:28 PM (20 years ago)
- File:
-
- 1 edited
-
branches/rel10_ifa/psModules/src/astrom/pmHDU.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/rel10_ifa/psModules/src/astrom/pmHDU.c
r6734 r6815 145 145 } 146 146 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 } 149 156 } 150 157
Note:
See TracChangeset
for help on using the changeset viewer.
