Changeset 11434 for trunk/psModules/src/camera/pmHDU.c
- Timestamp:
- Jan 30, 2007, 9:51:54 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmHDU.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmHDU.c
r10081 r11434 8 8 9 9 #include <pslib.h> 10 #include "pmConfig.h" 10 11 #include "pmFPA.h" 11 12 … … 179 180 } 180 181 182 // Make sure it's recognisable as what it's supposed to be 183 if (!hdu->header) { 184 hdu->header = psMetadataAlloc(); 185 } 186 if (!pmConfigConformHeader(hdu->header, hdu->format)) { 187 psError(PS_ERR_UNKNOWN, false, "Unable to conform header to format.\n"); 188 return false; 189 } 190 181 191 // Only a header 182 192 if (!images && !psFitsWriteBlank(fits, hdu->header, extname)) { 183 193 psError(PS_ERR_IO, false, "Unable to write header for extension %s\n", extname); 194 return false; 184 195 } 185 196
Note:
See TracChangeset
for help on using the changeset viewer.
