BackgroundIRF#

class gammapy.irf.BackgroundIRF[source]#

Bases: IRF

Background IRF base class.

Parameters:
axeslist of MapAxis or MapAxes

Axes.

datandarray

Data array.

unitstr or Unit

Data unit usually s^-1 MeV^-1 sr^-1.

is_pointlikebool, optional

Whether the IRF is point-like. True for point-like IRFs, False for full-containment. Default is False.

fov_alignmentFoVAlignment, optional

The orientation of the field of view coordinate system. Default is FoVAlignment.RADEC.

metadict

Metadata dictionary.

interp_kwargsdict, optional

Keyword arguments passed to ScaledRegularGridInterpolator. If None, the following inputs are used bounds_error=False, fill_value=0.0 and values_scale="log". Default is None.

Attributes Summary

default_interp_kwargs

Default Interpolation kwargs to extrapolate.

Methods Summary

from_table(table[, format])

Read from Table.

Attributes Documentation

default_interp_kwargs = {'bounds_error': False, 'fill_value': 0.0, 'values_scale': 'log'}#

Default Interpolation kwargs to extrapolate.

Methods Documentation

classmethod from_table(table, format='gadf-dl3')[source]#

Read from Table.

Parameters:
tableTable

Table with background data.

format{“gadf-dl3”}

Format specification. Default is “gadf-dl3”.

Returns:
bkgBackground2D or Background2D

Background IRF class.

__init__(axes, data=0, unit='', is_pointlike=False, fov_alignment=FoVAlignment.RADEC, meta=None, interp_kwargs=None)#
classmethod __new__(*args, **kwargs)#