gauss_image

mpdaf.obj.gauss_image(shape=(101, 101), wcs=None, factor=1, gauss=None, center=None, flux=1.0, fwhm=(1.0, 1.0), peak=False, rot=0.0, cont=0, unit_center=Unit('deg'), unit_fwhm=Unit('arcsec'), unit=Unit(dimensionless))[source]

Create a new image from a 2D gaussian.

Parameters:
shapeint or (int,int)

Lengths of the image in Y and X with python notation: (ny,nx). (101,101) by default. If wcs object contains dimensions, shape is ignored and wcs dimensions are used.

wcsmpdaf.obj.WCS

World coordinates.

factorint

If factor<=1, gaussian value is computed in the center of each pixel. If factor>1, for each pixel, gaussian value is the sum of the gaussian values on the factor*factor pixels divided by the pixel area.

gaussmpdaf.obj.Gauss2D

Object that contains all Gaussian parameters. If it is present, the following parameters are not used.

center(float,float)

Gaussian center (y_peak, x_peak). If None the center of the image is used. The unit is given by the unit_center parameter (degrees by default).

fluxfloat

Integrated gaussian flux or gaussian peak value if peak is True.

fwhm(float,float)

Gaussian fwhm (fwhm_y,fwhm_x). The unit is given by the unit_fwhm parameter (arcseconds by default).

peakbool

If true, flux contains a gaussian peak value.

rotfloat

Angle position in degree.

contfloat

Continuum value. 0 by default.

unit_centerastropy.units.Unit

type of the center and position coordinates. Degrees by default (use None for coordinates in pixels).

unit_fwhmastropy.units.Unit

FWHM unit. Arcseconds by default (use None for radius in pixels)

Returns:
outImage