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: shape : int 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.
wcs :
mpdaf.obj.WCS
World coordinates.
factor : int
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.
gauss :
mpdaf.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).
flux : float
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).
peak : bool
If true, flux contains a gaussian peak value.
rot : float
Angle position in degree.
cont : float
Continuum value. 0 by default.
unit_center :
astropy.units.Unit
type of the center and position coordinates. Degrees by default (use None for coordinates in pixels).
unit_fwhm :
astropy.units.Unit
FWHM unit. Arcseconds by default (use None for radius in pixels)
Returns: out :
Image