SingleObsCubeMaker¶
-
class
gammapy.cube.
SingleObsCubeMaker
(obs, empty_cube_images, empty_exposure_cube, offset_band, exclusion_mask=None, save_bkg_scale=True)[source]¶ Bases:
object
Compute
SkyCube
images for one observation.The computed cubes are stored in a
SkyCube
with the following name:counts_cube
: Countsbkg_cube
: Background modelexposure_cube
: Exposureexcess_cube
: Excesssignificance_cube
: Significance
Parameters: obs :
DataStoreObservation
Observation data
empty_cube_images :
SkyCube
Reference Cube for images in reco energy
empty_exposure_cube :
SkyCube
Reference Cube for exposure in true energy
offset_band :
Angle
Offset band selection
exclusion_mask :
SkyCube
Exclusion mask
save_bkg_scale: bool
True if you want to save the normalisation of the bkg computed outside the exclusion region in a Table
Methods Summary
background_norm_factor
()Determine background scaling factor. make_bkg_cube
([bkg_norm])Make the background image for one observation from a bkg model. make_counts_cube
()Fill the counts cube for the events of one observation. make_excess_cube
()Compute excess cube between counts and bkg cubes. make_exposure_cube
()Compute the exposure cube. make_significance_cube
(radius)Make the significance cube from the counts and bkg cubes. Methods Documentation
-
background_norm_factor
()[source]¶ Determine background scaling factor.
Compares the events in the counts cube and the bkg cube outside the exclusion regions.
Returns: scale : float
scaling factor between the counts and the bkg images outside the exclusion region.