create_image_header

turbustat.io.sim_tools.create_image_header(pixel_scale, beamfwhm, imshape, restfreq, bunit)[source] [edit on github]

Create a basic FITS header for an image.

Adapted from: https://github.com/radio-astro-tools/uvcombine/blob/master/uvcombine/tests/utils.py

Parameters:
pixel_scale : Quantity

Angular scale of one pixel

beamfwhm : Quantity

Angular size for a circular Gaussian beam.

imshape : tuple

Shape of the data array.

restfreq : Quantity

Rest frequency of the spectral line.

bunit : Unit

Unit of intensity.

Returns:
header : fits.Header

FITS Header.