[AstroPy] Data Analysis and Programming in Python
Next message (by thread): [AstroPy] Coding in Python to Read/Write a fits file.All you would need to do would be define the functions you need to interpret the image formats from your hardware into numpy arrays, and plug it into this example to write it out as a FITS file.