Changeset 12549 for trunk/psLib/src/fits/psFitsTable.c
- Timestamp:
- Mar 22, 2007, 11:40:47 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/fits/psFitsTable.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFitsTable.c
r12431 r12549 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.2 6$ $Name: not supported by cvs2svn $10 * @date $Date: 2007-03- 14 00:39:50$9 * @version $Revision: 1.27 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2007-03-22 21:40:47 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 585 585 (char**)columnTypes->data, // format of the columns 586 586 NULL, // physical unit of columns 587 (char*)extname, // extension name; casting away const because cfitsio is horrible587 NULL, // skip extension name: we set the by hand below 588 588 &status); 589 589 } else { … … 605 605 (char**)columnTypes->data, // format of the columns 606 606 NULL, // physical unit of columns 607 (char*)extname, // extension name; casting away const because cfitsio is horrible607 NULL, // skip extension name: we set this by hand below 608 608 0, &status); 609 609 } … … 629 629 } 630 630 631 // write the header, if any. 632 if (extname && strlen(extname) > 0) { 633 if (!psFitsSetExtName(fits, extname)) { 634 psError(PS_ERR_IO, false, "Unable to write FITS header extension name.\n"); 635 psFree(colSpecsIter); 636 psFree(colSpecs); 637 return false; 638 } 639 } 631 640 632 641 // cfitsio requires that we write the data by columns --- urgh!
Note:
See TracChangeset
for help on using the changeset viewer.
