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_cubeinstead.
Output cube energy bounds will be the same as for the exposure cube.
Parameters: flux_cube :
SkyCubeDifferential flux cube
exposure_cube :
SkyCubeExposure cube
Returns: npred_cube :
SkyCubePredicted counts cube
See also