Changeset 18869
- Timestamp:
- Aug 1, 2008, 4:50:41 PM (18 years ago)
- Location:
- trunk/psLib/src/fits
- Files:
-
- 2 edited
-
psFitsHeader.c (modified) (4 diffs)
-
psFitsImage.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFitsHeader.c
r18421 r18869 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.4 6$ $Name: not supported by cvs2svn $10 * @date $Date: 2008-0 7-04 03:18:06$9 * @version $Revision: 1.47 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2008-08-02 02:50:41 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 47 47 // List of FITS header keys not to write (handled by cfitsio); NULL-terminated 48 48 static const char *noWriteFitsKeys[] = { "SIMPLE", "XTENSION", "BITPIX", "NAXIS", "EXTNAME", "BSCALE", 49 "BZERO", "TFIELDS", "PCOUNT", "GCOUNT", "PSBITPIX", NULL };49 "BZERO", "TFIELDS", "PCOUNT", "GCOUNT", "PSBITPIX", "BLANK", NULL }; 50 50 51 51 // List of the start of FITS header keys not to write (handled by cfitsio); NULL-terminated … … 53 53 54 54 // List of compressed FITS header keys not to write (handled by cfitsio); NULL-terminated 55 static const char *noWriteCompressedKeys[] = { "ZBITPIX", "ZIMAGE", "ZBITPIX", "ZCMPTYPE", NULL }; 55 static const char *noWriteCompressedKeys[] = { "ZBITPIX", "ZIMAGE", "ZBITPIX", "ZCMPTYPE", "ZSIMPLE", 56 "ZEXTEND", "ZBLANK", NULL }; 56 57 57 58 // List of the start of FITS header keys not to write (handled by cfitsio); NULL-terminated … … 555 556 556 557 // Options for compression 557 if (compress != PS_FITS_COMPRESS_NONE && 558 (!fits->options || fits->options->conventions.compression)) { 558 if (!fits->options || fits->options->conventions.compression) { 559 559 // Check to see if the keyword should be translated 560 560 name = (char*)keywordUntranslate(name, compressTranslation); // Casting away const for cfitsio -
trunk/psLib/src/fits/psFitsImage.c
r18590 r18869 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.3 6$ $Name: not supported by cvs2svn $10 * @date $Date: 2008-0 7-17 03:34:22$9 * @version $Revision: 1.37 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2008-08-02 02:50:41 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 623 623 } 624 624 625 if (blank != 0 ) {625 if (blank != 0 && bitPix > 0) { 626 626 // Some quantisation has taken place --- record the blank ("magic") pixel value 627 627 char *keyword = (psFitsCompressionGetType(fits) != PS_FITS_COMPRESS_NONE &&
Note:
See TracChangeset
for help on using the changeset viewer.
