IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 9, 2005, 9:40:51 AM (21 years ago)
Author:
desonia
Message:

removed extname from psFitsWrite* functions (Bug #412).

File:
1 edited

Legend:

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

    r4158 r4191  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-06-08 21:07:59 $
     9 *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-06-09 19:40:51 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    797797                      const psMetadata* header,
    798798                      const psImage* input,
    799                       int numZPlanes,
    800                       char* extname)
     799                      int numZPlanes)
    801800{
    802801
     
    837836
    838837    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     }
    843838
    844839    if (bZero != 0) {        // set the bscale/bzero
     
    14531448bool psFitsWriteTable(const psFits* fits,
    14541449                      psMetadata* header,
    1455                       psArray* table,
    1456                       char* extname)
     1450                      psArray* table)
    14571451{
    14581452    int status = 0;
     
    15241518        }
    15251519        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        }
    15261529    }
    15271530
Note: See TracChangeset for help on using the changeset viewer.