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. |
make_test_model([nsources, npix, ampl, ...]) |
Create a model of several Gaussian sources. |
read_ascii(filename, setter) |
Read from ASCII file. |
read_json(source, setter) |
Read from JSON file. |
write_all([filename]) |
Dump source, fit results and conf results to a JSON file. |
write_ascii(pars, filename) |
Write to ASCII |
write_json(pars, filename) |
Write to JSON file. |
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. |
MorphModelImageCreator(cfg_file, exposure[, ...]) |
Create model images from a HGPS pipeline source config file. |
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. |
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. |