matlab.io.fits.getImgType
Get data type of FITS image
Syntax
datatype = matlab.io.fits.getImgType(fptr)
Description
datatype = matlab.io.fits.getImgType(fptr) returns the data type
of an image. The function returns datatype as
'BYTE_IMG', 'SHORT_IMG',
'LONG_IMG', 'LONGLONG_IMG',
'FLOAT_IMG', or 'DOUBLE_IMG'.
Examples
Tips
This function corresponds to the
fits_get_img_type(ffgidt) function in the CFITSIO library C API.To use this function, you must be familiar with the CFITSIO C interface. You can access the CFITSIO documentation at the CFITSIO website.