This is a script for generating arbitrarily large FITS images filled with Gaussian noise, suitable for testing. The method for generating images larger than the available memory is taken from the AstroPy documentation.
Various additional options are provided, for example for adding different distributions of NAN and INF pixels. Not all of these options are fully compatible with the option to restrict memory usage.
Python 3, numpy, astropy.
This is a single-file script. Copy or symlink it into your path.
Type make_image.py -h
for a list of options.