compute_npred_cube

gammapy.cube.compute_npred_cube(flux_cube, exposure_cube, energy_bins, integral_resolution=10)[source]

Compute predicted counts cube in energy bins.

Parameters:

flux_cube : SkyCube

Differential flux cube.

exposure_cube : SkyCube

Instrument exposure cube.

integral_resolution : int (optional)

Number of integration steps in energy bin when computing integral flux.

Returns:

npred_cube : SkyCube

Predicted counts cube in energy bins.