ReflectedRegionsBackgroundEstimator¶
-
class
gammapy.background.ReflectedRegionsBackgroundEstimator(on_region, observations, **kwargs)[source]¶ Bases:
objectReflected Regions background estimator.
This class is responsible for creating a
BackgroundEstimateby placing reflected regions given a target region and an observation.For a usage example see spectrum_analysis.html
Parameters: on_region :
CircleSkyRegionTarget region
observations :
ObservationsObservations to process
kwargs : dict
Forwarded to
gammapy.background.ReflectedRegionsFinderMethods Summary
plot([fig, ax, cmap, idx, add_legend])Standard debug plot. process(obs)Estimate background for one observation. run()Run all steps. Methods Documentation
-
plot(fig=None, ax=None, cmap=None, idx=None, add_legend=False)[source]¶ Standard debug plot.
Parameters: cmap :
ListedColormap, optionalColor map to use
idx : int, optional
Observations to include in the plot, default: all
add_legend : boolean, optional
Enable/disable legend in the plot, default: False
-