IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7266


Ignore:
Timestamp:
Jun 1, 2006, 11:56:59 AM (20 years ago)
Author:
Paul Price
Message:

It appears that cfitsio doesn't really distinguish between short int
and int with fits_get_keytype, but just reports them as 'I' (short
int). S16 is not sufficient to hold 65535 (a typical saturation
value), since it translates to -1, but this is what was happening.
Updated psLib type for fits_get_keytype 'I' to S32.

File:
1 edited

Legend:

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

    r7246 r7266  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2006-05-30 22:44:37 $
     9 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2006-06-01 21:56:59 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    122122                                        (psF32)-INFINITY);
    123123            } else {
    124                 success = psMetadataAdd(out, PS_LIST_TAIL, keyName, PS_DATA_S16 | dupFlag, keyComment,
    125                                         (psS16)atoi(keyValue));
     124                success = psMetadataAdd(out, PS_LIST_TAIL, keyName, PS_DATA_S32 | dupFlag, keyComment,
     125                                        atoi(keyValue));
    126126            }
    127127            break;
Note: See TracChangeset for help on using the changeset viewer.