astropy.io#
General examples of the astropy.io
subpackages.

Create a multi-extension FITS (MEF) file from scratch
Create a multi-extension FITS (MEF) file from scratch

Accessing data stored as a table in a multi-extension FITS (MEF) file
Accessing data stored as a table in a multi-extension FITS (MEF) file

Convert a 3-color image (JPG) to separate FITS images
Convert a 3-color image (JPG) to separate FITS images