SourceCatalogObject#
- class gammapy.catalog.SourceCatalogObject(data, data_extended=None, data_spectral=None)[source]#
Bases:
object
Source catalog object.
This class can be used directly, but it is mostly used as a base class for the other source catalog classes.
The catalog data on this source is stored in the
source.data
attribute as a dict.The source catalog object is decoupled from the source catalog, it doesn’t hold a reference back to it, except for a key
_row_index
of typeint
that links to the catalog table row the source information comes from.- Parameters:
- datadict
Dictionary of data from a catalog for a given source.
- data_extendeddict
Dictionary of data from a catalog for a given source in the case where the catalog contains an extended sources table (Fermi-LAT).
- data_spectraldict
Dictionary of data from a catalof for a given source in the case where the catalog contains a spectral table (Fermi-LAT 2PC and 3PC).
Attributes Summary
Source name as a string.
Source position as an
SkyCoord
object.Row index of source in catalog as an integer.
Attributes Documentation
- name#
Source name as a string.
- row_index#
Row index of source in catalog as an integer.