BackgroundIRF#
- class gammapy.irf.BackgroundIRF[source]#
Bases:
IRFBackground IRF base class.
- Parameters:
- axeslist of
MapAxisorMapAxes Axes.
- data
ndarray 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_alignment
FoVAlignment, 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 usedbounds_error=False,fill_value=0.0andvalues_scale="log". Default is None.
- axeslist of
Attributes Summary
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:
- table
Table Table with background data.
- format{“gadf-dl3”}
Format specification. Default is “gadf-dl3”.
- table
- Returns:
- bkg
Background2DorBackground2D Background IRF class.
- bkg
- __init__(axes, data=0, unit='', is_pointlike=False, fov_alignment=FoVAlignment.RADEC, meta=None, interp_kwargs=None)#
- classmethod __new__(*args, **kwargs)#