Changeset 19270 for trunk/psLib/src/fits/psFitsImage.c
- Timestamp:
- Aug 28, 2008, 3:01:39 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/fits/psFitsImage.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFitsImage.c
r18869 r19270 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.3 7$ $Name: not supported by cvs2svn $10 * @date $Date: 2008-08- 02 02:50:41$9 * @version $Revision: 1.38 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2008-08-29 01:01:39 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 624 624 625 625 if (blank != 0 && bitPix > 0) { 626 // Some quantisation has taken place --- record the blank ("magic") pixel value 627 char *keyword = (psFitsCompressionGetType(fits) != PS_FITS_COMPRESS_NONE && 628 (!fits->options || fits->options->conventions.compression)) ? 629 "ZBLANK" : "BLANK"; // Keyword for recording blank pixel value 630 fits_write_key_lng(fits->fd, keyword, blank, "Value for undefined pixels", &status); 626 // Some quantisation has taken place --- record the blank ("magic") pixel value. 627 // 628 // According to http://heasarc.gsfc.nasa.gov/docs/heasarc/fits/compress/compress_image.html, 629 // the keyword is "BLANK" when BITPIX > 0, and "ZBLANK" when BITPIX < 0. Since we do our 630 // own quantisation, the correct keyword is always "BLANK" instead of "ZBLANK". 631 fits_write_key_lng(fits->fd, "BLANK", blank, "Value for undefined pixels", &status); 631 632 fits_set_imgnull(fits->fd, blank, &status); 632 633 if (psFitsError(status, true, "Could not write BLANK header to file.")) {
Note:
See TracChangeset
for help on using the changeset viewer.
