Delta2D

class gammapy.image.models.Delta2D(amplitude, x_0, y_0, **constraints)[source]

Bases: astropy.modeling.Fittable2DModel

Two dimensional delta function .

This model can be used for a point source morphology.

Parameters:

amplitude : float

Peak value of the point source

x_0 : float

x position center of the point source

y_0 : float

y position center of the point source

See also

Shell2D, Sphere2D, astropy.modeling.models.Gaussian2D

Notes

Model formula:

\[\begin{split}f(x, y) = \cdot \left \{ \begin{array}{ll} A & : x = x_0 \ \mathrm{and} \ y = y_0 \\ 0 & : else \end{array} \right.\end{split}\]

The pixel positions x_0 and y_0 are rounded to integers. Sub-pixel information is lost.

Attributes Summary

amplitude
param_names
x_0
y_0

Methods Summary

evaluate(x, y, amplitude, x_0, y_0) Two dimensional delta model function

Attributes Documentation

amplitude
param_names = ('amplitude', 'x_0', 'y_0')
x_0
y_0

Methods Documentation

static evaluate(x, y, amplitude, x_0, y_0)[source]

Two dimensional delta model function