EleFits  4.0.1
A modern C++ API on top of CFitsIO
CFitsIO type mapping table

Type Record code Table code TFORM Image code BITPIX
bool TLOGICAL TBIT X TLOGICAL SBYTE_IMG
char TSBYTE TSBYTE S TSBYTE
short TSHORT TSHORT TSHORT
int TINT TINT TINT
long TLONG TLONG TLONG
long long TLONGLONG TLONGLONG TLONGLONG
std::int16_t I SHORT_IMG
std::int32_t J LONG_IMG
std::int64_t K LONGLONG_IMG
unsigned char TBYTE TBYTE B TBYTE BYTE_IMG
unsigned short TUSHORT TUSHORT TUSHORT
unsigned int TUINT TUINT TUINT
unsigned long TULONG TULONG TULONG
std::uint16_t U USHORT_IMG
std::uint32_t V ULONG_IMG
std::uint64_t W ULONGLONG_IMG
float TFLOAT TFLOAT E TFLOAT FLOAT_IMG
double TDOUBLE TDOUBLE D TDOUBLE DOUBLE_IMG
std::complex<float> TCOMPLEX TCOMPLEX C
std::complex<double> TDBLCOMPLEX TDBLCOMPLEX M
std::string TSTRING TSTRING A