make_4gaussians_image#
- photutils.datasets.make_4gaussians_image(noise=True)[source]#
Make an example image containing four 2D Gaussians plus a constant background.
The background has a mean of 5.
If
noiseisTrue, then Gaussian noise with a mean of 0 and a standard deviation of 5 is added to the output image.- Parameters:
- noisebool, optional
Whether to include noise in the output image (default is
True).
- Returns:
- image2D
ndarray Image containing four 2D Gaussian sources.
- image2D
See also
Examples
import matplotlib.pyplot as plt from astropy.visualization import simple_norm from photutils.datasets import make_4gaussians_image image = make_4gaussians_image() fig, ax = plt.subplots() norm = simple_norm(image, 'sqrt', percent=99.5) ax.imshow(image, norm=norm, origin='lower')
(
Source code,png,hires.png,pdf,svg)