compute_npred_cube_simple

gammapy.cube.compute_npred_cube_simple(flux_cube, exposure_cube)[source]

Compute predicted counts cube (using a simple method).

  • Simply multiplies flux and exposure and pixel solid angle and energy bin width.
  • No spatial reprojection, or interpolation or integration in energy.
  • This is very fast, but can be inaccurate (e.g. for very large energy bins.)
  • If you want a more fancy method, call compute_npred_cube instead.

Output cube energy bounds will be the same as for the exposure cube.

Parameters:

flux_cube : SkyCube

Differential flux cube

exposure_cube : SkyCube

Exposure cube

Returns:

npred_cube : SkyCube

Predicted counts cube