IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 22, 2007, 11:40:47 AM (19 years ago)
Author:
magnier
Message:

adding user-definable fits->extword to psFits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFitsTable.c

    r12431 r12549  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.26 $ $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 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    585585                        (char**)columnTypes->data, // format of the columns
    586586                        NULL, // physical unit of columns
    587                         (char*)extname, // extension name; casting away const because cfitsio is horrible
     587                        NULL, // skip extension name: we set the by hand below
    588588                        &status);
    589589    } else {
     
    605605                         (char**)columnTypes->data, // format of the columns
    606606                         NULL, // physical unit of columns
    607                          (char*)extname, // extension name; casting away const because cfitsio is horrible
     607                         NULL, // skip extension name: we set this by hand below
    608608                         0, &status);
    609609    }
     
    629629    }
    630630
     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    }
    631640
    632641    // cfitsio requires that we write the data by columns --- urgh!
Note: See TracChangeset for help on using the changeset viewer.