FITS DLL
Libraries for saving and reading FITS images with two slices (complex)
...Two slices are needed for complex data, Here are a few of the floats functions:
int SaveFITSFile44(const char* filename, const float* pdata1,
const float* pdata2, long nx, long ny, double xleft, double ytop, double dx, double dy, int itype);
int SaveFITSFile4(const char* filename, const float* pdata,
long nx, long ny, double xleft, double ytop, double dx, double dy, int itype);
int ReadFltFITSFileImage(const char* filename, FloatPtrPtr ppdata1, FloatPtrPtr ppdata2, ong naxes[3], long* p_ndims, long* p_ndata,
DoublePtr p_xleft, DoublePtr p_ytop, DoublePtr p_dx, DoublePtr p_dy, int* itype, CharPtrPtr p_card_string);
Fields: XLEFT, YTOP, DX, DY. ITYPE, TITLE, XLABEL, YLABEL, ZLABEL
ITYPE=1 => Cartesian ITYPE=2 => Polar
There are functions for double data and many variants for float data.