IACTBasicImageEstimator

class gammapy.image.IACTBasicImageEstimator(reference, emin, emax, offset_max=<Angle 2.5 deg>, spectral_model=None, background_estimator=None, exclusion_mask=None)[source]

Bases: gammapy.image.BasicImageEstimator

Estimate the basic sky images for a set of IACT observations.

The following images will be computed:

  • counts
  • exposure
  • background
Parameters:

reference : SkyImage

Reference sky image.

emin : Quantity

Lower bound of energy range.

emax : Quantity

Upper bound of energy range.

offset_max : Angle

Upper bound of offset range.

spectral_model : SpectralModel

Spectral model assumption to compute mean exposure and psf image.

background_estimator : TODO

Instance of background estimation method.

exclusion_mask : SkyImage

Exclusion mask.

Methods Summary

excess() Estimate excess image.
flux() Estimate flux image.
psf(observations[, containment_fraction, …]) Mean point spread function kernel image.
run(observations[, which]) Run IACT basic image estimation for a list of observations.

Methods Documentation

static excess()

Estimate excess image.

Requires ‘counts’ and ‘background’ image.

Parameters:

images : SkyImageList

List of sky images.

Returns:

excess : SkyImage

Excess sky image.

static flux()

Estimate flux image.

Requires ‘counts’, ‘background’ and ‘exposure’ image.

Parameters:

images : SkyImageList

List of sky images.

Returns:

flux : SkyImage

Flux sky image.

psf(observations, containment_fraction=0.99, rad_max=None)[source]

Mean point spread function kernel image.

Parameters:

observations : ObservationList

List of observations

containment_fraction : float (0.99)

Minimum PSF containment fraction included in kernel image.

rad_max : Angle (None)

If specified, passed to kernel; containment_fraction is then ignored.

Returns:

kernel : SkyImage

PSF kernel as sky image.

run(observations, which='all')[source]

Run IACT basic image estimation for a list of observations.

Parameters:

observations : ObservationList

List of observations

Returns:

sky_images : SkyImageList

List of sky images