sourcefinder.gaussian#
Definition of a two-dimensional elliptical Gaussian.
Functions#
|
Return a 2D Gaussian function with the given parameters. |
|
Return the Jacobian of a 2D anisotropic Gaussian. |
Module Contents#
- sourcefinder.gaussian.gaussian(height, center_x, center_y, semimajor, semiminor, theta)[source]#
Return a 2D Gaussian function with the given parameters.
- Parameters:
- heightfloat
(z-)value of the 2D Gaussian.
- center_xfloat
x center of the Gaussian.
- center_yfloat
y center of the Gaussian.
- semimajorfloat
Semi-major axis of the Gaussian.
- semiminorfloat
Semi-minor axis of the Gaussian.
- thetafloat
Angle of the 2D Gaussian in radians, measured between the semi-major and y axes, in counterclockwise direction.
- Returns:
- function
2D Gaussian function of pixel coordinates (x, y).
- sourcefinder.gaussian.jac_gaussian(gaussianargs)[source]#
Return the Jacobian of a 2D anisotropic Gaussian.
- Parameters:
- gaussianargslist or tuple
A list containing the six Gaussian parameters:
height (float): (z-)value of the 2D Gaussian.
center_x (float): x center of the Gaussian.
center_y (float): y center of the Gaussian.
semimajor (float): Major axis of the Gaussian.
semiminor (float): Minor axis of the Gaussian.
theta (float): Angle of the 2D Gaussian in radians, measured between the semi-major and y axes, in counterclockwise direction.
- Returns:
- dict
A dictionary containing the Jacobian of the Gaussian, i.e., the derivatives along each of the six parameters of the Gaussian as functions of pixel coordinates (x, y).