ImageProfileEstimator¶
-
class
gammapy.estimators.
ImageProfileEstimator
(x_edges=None, method='sum', axis='lon', center=None)[source]¶ Bases:
object
Estimate profile from image.
- Parameters
Examples
This example shows how to compute a counts profile for the Fermi galactic center region:
import matplotlib.pyplot as plt from gammapy.maps import ImageProfileEstimator from gammapy.maps import Map from astropy import units as u # load example data filename = '$GAMMAPY_DATA/fermi-3fhl-gc/fermi-3fhl-gc-counts.fits.gz' fermi_cts = Map.read(filename) # set up profile estimator and run p = ImageProfileEstimator(axis='lon', method='sum') profile = p.run(fermi_cts) # smooth profile and plot smoothed = profile.smooth(kernel='gauss') smoothed.peek() plt.show()
Methods Summary
run
(self, image[, image_err, mask])Run image profile estimator.
Methods Documentation
-
run
(self, image, image_err=None, mask=None)[source]¶ Run image profile estimator.
- Parameters
- Returns
- profile
ImageProfile
Result image profile object.
- profile