Morphology models (gammapy.image.models
)¶
Introduction¶
gammapy.image.models
contains implementations of common morphology models.
TODO: explain about astropy.modeling
and sherpa
models.
TODO: write me
Getting Started¶
TODO: write me
Reference/API¶
gammapy.image.models Package¶
Morphology models.
Functions¶
gaussian_sum_moments (F, sigma, x, y, cov_matrix) |
Compute image moments with uncertainties for sum of Gaussians. |
Classes¶
Delta2D (amplitude, x_0, y_0, **constraints) |
Two dimensional delta function . |
Gauss2DPDF ([sigma]) |
2D symmetric Gaussian PDF. |
ModelThetaCalculator (source, psf, fov, binsz) |
Compute containment radius for given radially symmetric source and psf as well as desired containment fraction. |
MultiGauss2D (sigmas[, norms]) |
Sum of multiple 2D Gaussians. |
Shell2D (amplitude, x_0, y_0, r_in[, width, …]) |
Projected homogeneous radiating shell model. |
Sphere2D (amplitude, x_0, y_0, r_0[, normed]) |
Projected homogeneous radiating sphere model. |
Template2D (image[, amplitude, frame]) |
Two dimensional table model. |
ThetaCalculator (dist, theta_max, n_bins[, …]) |
Provides methods containment_fraction(theta) and containment_radius(containment_fraction) given some 1D distribution (not necessarily normalized). |
ThetaCalculator2D (dist, x, y) |
Methods to compute theta and containment for a given 2D probability distribution image. |
ThetaCalculatorScipy (dist, theta_max[, …]) |
Same functionality as NumericalThetaCalculator, but uses scipy.integrate.quad and scipy.optimize.fsolve instead. |