chimgtyp - Converts (changes) the data type (BITPIX) of an image array of the FITS image extension.
chimgtyp infile outfile datatype
CHIMGTYP converts the data type of the image extension. It writes the image array to an output file with modified bitpix value and modified array values as requested by user. The FITS defined data types are:
---------------------------------------------- datatype meaning bitpix ---------------------------------------------- UBYTE 8-bit unsigned byte 8 USHORT unsigned short 16 SHORT signed short 16 ULONG unsigned long 32 LONG signed long 32 FLOAT single precision float -32 DOUBLE double precision float -64
Note that certain convertions (e.g., float --> int, double --> float, long --> short, etc.) may cause loss of information.
datatype limits ------------------------------------- UBYTE 0 to 255 USHORT 0 to 65535 SHORT -32768 to +32767 ULONG 0 to 4294967295 LONG -2147483648 to 2147483647 -------------------------------------
1. To convert image type from DOUBLE to ULONG,
prompt> chimgtyp infile outfile datatype=ULONG Inull=99
None Known
V1.0.0 (1997 August)
Banashree M Seifert
http://heasarc.gsfc.nasa.gov/cgi-bin/ftoolshelp