Changeset 4191 for trunk/psLib/src/fits/psFits.c
- Timestamp:
- Jun 9, 2005, 9:40:51 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/fits/psFits.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFits.c
r4158 r4191 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.3 2$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06-0 8 21:07:59$9 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-09 19:40:51 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 797 797 const psMetadata* header, 798 798 const psImage* input, 799 int numZPlanes, 800 char* extname) 799 int numZPlanes) 801 800 { 802 801 … … 837 836 838 837 fits_create_img(fits->p_fd, bitPix, naxis, naxes, &status); 839 840 if (extname != NULL) {841 fits_update_key_str(fits->p_fd, "EXTNAME", (char*)extname, NULL, &status);842 }843 838 844 839 if (bZero != 0) { // set the bscale/bzero … … 1453 1448 bool psFitsWriteTable(const psFits* fits, 1454 1449 psMetadata* header, 1455 psArray* table, 1456 char* extname) 1450 psArray* table) 1457 1451 { 1458 1452 int status = 0; … … 1524 1518 } 1525 1519 columnTypes->data[n] = fitsType; 1520 } 1521 1522 psBool mStatus = false; 1523 char* extname = psMetadataLookupPtr(&mStatus, header, "EXTNAME"); 1524 if ( ! mStatus) { 1525 extname = psMetadataLookupPtr(&mStatus, header, "HDUNAME"); 1526 if (! mStatus) { 1527 extname = NULL; 1528 } 1526 1529 } 1527 1530
Note:
See TracChangeset
for help on using the changeset viewer.
