read fits file from c language