Changeset 7162
- Timestamp:
- May 22, 2006, 12:39:07 PM (20 years ago)
- Location:
- trunk/psLib/src/fits
- Files:
-
- 2 edited
-
psFitsHeader.c (modified) (3 diffs)
-
psFitsHeader.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFitsHeader.c
r6884 r7162 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-0 4-18 19:01:21$9 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-05-22 22:39:07 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 240 240 } 241 241 242 bool psFitsWriteHeader( constpsMetadata* output,242 bool psFitsWriteHeader(psMetadata* output, 243 243 psFits* fits) 244 244 { … … 257 257 258 258 int status = 0; 259 260 // Add required header keywords 261 int chdu = psFitsGetExtNum(fits); 262 if (chdu == 0) { 263 psMetadataAddBool(output, PS_LIST_HEAD, "SIMPLE", PS_META_NO_REPLACE, "Simple FITS file?", true); 264 } 265 psMetadataAddS32(output, PS_LIST_HEAD + 1, "BITPIX", PS_META_NO_REPLACE, "Bits per pixel (default)", 16); 266 psMetadataAddS32(output, PS_LIST_HEAD + 2, "NAXIS", PS_META_NO_REPLACE, "Number of axes (default)", 0); 259 267 260 268 //transverse the metadata list and add each key. -
trunk/psLib/src/fits/psFitsHeader.h
r6767 r7162 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-0 4-04 19:52:42$9 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-05-22 22:39:07 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 46 46 */ 47 47 bool psFitsWriteHeader( 48 const psMetadata* output,///< the psMetadata data in which to write48 psMetadata* output, ///< the psMetadata data in which to write 49 49 psFits* fits ///< the psFits object 50 50 );
Note:
See TracChangeset
for help on using the changeset viewer.
