Changeset 7289
- Timestamp:
- Jun 1, 2006, 5:27:46 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/fits/psFitsHeader.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFitsHeader.c
r7266 r7289 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-06-0 1 21:56:59$9 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-06-02 03:27:46 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 36 36 37 37 // List of FITS header keys not to write (handled by cfitsio); NULL-terminated 38 static char *noWriteFitsKeys[] = {" SIMPLE", "XTENSION", "BITPIX", "NAXIS", "EXTNAME", "BSCALE", "BZERO",38 static char *noWriteFitsKeys[] = {"XTENSION", "BITPIX", "NAXIS", "EXTNAME", "BSCALE", "BZERO", 39 39 "TFIELDS", NULL}; 40 40 // List of the start of FITS header keys not to write (handled by cfitsio); NULL-terminated … … 282 282 } 283 283 284 // We allow the user to write SIMPLE, but it must be boolean 285 if (strcmp(item->name, "SIMPLE") == 0 && item->type != PS_DATA_BOOL) { 286 psError(PS_ERR_BAD_PARAMETER_TYPE, true, "SIMPLE in a FITS header must be of boolean type: not " 287 "%x --- ignored.\n", item->type); 288 continue; 289 } 290 284 291 switch (item->type) { 285 292 case PS_DATA_BOOL: {
Note:
See TracChangeset
for help on using the changeset viewer.
