IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4191 for trunk/psLib/src/fits


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

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

Location:
trunk/psLib/src/fits
Files:
2 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
  • trunk/psLib/src/fits/psFits.h

    r4190 r4191  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-06-09 19:26:48 $
     9 *  @version $Revision: 1.14 $ $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
     
    178178    const psMetadata* header,          ///< header items for the new HDU.  Can be NULL.
    179179    const psImage* input,              ///< the image to output
    180     int depth,                         ///< the number of z-planes of the FITS image data cube
    181     char* extname                      ///< extension name
     180    int depth                          ///< the number of z-planes of the FITS image data cube
    182181);
    183182
     
    248247    const psFits* fits,                ///< the psFits object
    249248    psMetadata* header,                ///< header items for the new HDU.  Can be NULL.
    250     psArray* table,
     249    psArray* table
    251250    ///< Array of psMetadata items, which contains the output data items of each row.
    252     char* extname                      ///< extension name
    253251);
    254252
Note: See TracChangeset for help on using the changeset viewer.