gaussian_psf

artpop.image.gaussian_psf(fwhm, pixel_scale=0.2, shape=41)[source]

Gaussian point-spread function.

Parameters
fwhmfloat or Quantity

Full width at half maximum of the psf. If a float is given, the units will be assumed to be arcsec. The units can be angular or in pixels.

pixel_scalefloat or Quantity, optional

The pixel scale of the psf image. If a float is given, the units are assumed to be arcsec per pixel (why would you want anything different?).

shapeint or list-like, optional

Shape of the psf image. Must be odd. If an int is given, the x and y dimensions will be set to this value: (shape, shape).

Returns
psfndarray

The PSF image normalized such that its sum is equal to one.