GaussPSF

class gammapy.irf.GaussPSF(sigma=1)[source]

Bases: gammapy.image.models.Gauss2DPDF

Extension of Gauss2D PDF by PSF-specific functionality.

Attributes Summary

amplitude PDF amplitude at the center (float)

Methods Summary

__call__(x[, y]) dp / (dx dy) at position (x, y)
containment_fraction(theta) Containment fraction.
containment_radius(containment_fraction) Containment angle for a given containment fraction.
dpdtheta2(theta2) dp / dtheta2 at position theta2 = theta ^ 2
gauss_convolve(sigma) Convolve with another Gaussian 2D PDF.
to_hess()
to_sherpa(binsz) Generate gauss2d parameters for Sherpa such

Attributes Documentation

amplitude

PDF amplitude at the center (float)

Methods Documentation

__call__(x, y=0)

dp / (dx dy) at position (x, y)

Parameters:

x : ndarray

x coordinate

y : ndarray, optional

y coordinate

Returns:

dpdxdy : ndarray

dp / (dx dy)

containment_fraction(theta)

Containment fraction.

Parameters:

theta : ndarray

Offset

Returns:

containment_fraction : ndarray

Containment fraction

containment_radius(containment_fraction)

Containment angle for a given containment fraction.

Parameters:

containment_fraction : ndarray

Containment fraction

Returns:

containment_radius : ndarray

Containment radius

dpdtheta2(theta2)

dp / dtheta2 at position theta2 = theta ^ 2

Parameters:

theta2 : ndarray

Offset squared

Returns:

dpdtheta2 : ndarray

dp / dtheta2

gauss_convolve(sigma)

Convolve with another Gaussian 2D PDF.

Parameters:

sigma : ndarray or float

Gaussian width of the new Gaussian 2D PDF to covolve with.

Returns:

gauss_convolve : Gauss2DPDF

Convolution of both Gaussians.

to_hess()[source]
to_sherpa(binsz)[source]

Generate gauss2d parameters for Sherpa such that the integral is 1