SourceCatalog3FGL

class gammapy.catalog.SourceCatalog3FGL(filename='$GAMMAPY_DATA/catalogs/fermi/gll_psc_v16.fit.gz')[source]

Bases: gammapy.catalog.SourceCatalog

Fermi-LAT 3FGL source catalog.

Reference: https://ui.adsabs.harvard.edu/#abs/2015ApJS..218…23A

One source is represented by SourceCatalogObject3FGL.

Attributes Summary

description
name
positions Source positions (SkyCoord).
source_categories

Methods Summary

copy(self) Copy catalog
is_source_class(self, source_class) Check if source belongs to a given source class.
row_index(self, name) Look up row index of source by name.
select_source_class(self, source_class) Select all sources of a given source class.
source_name(self, index) Look up source name by row index.

Attributes Documentation

description = 'LAT 4-year point source catalog'
name = '3fgl'
positions

Source positions (SkyCoord).

source_categories = {'EXTRA-GALACTIC': ['CSS', 'BLL', 'FSRQ', 'AGN', 'NLSY1', 'RDG', 'SEY', 'BCU', 'GAL', 'SBG', 'SSRQ'], 'GALACTIC': ['PSR', 'PWN', 'SNR', 'HMB', 'BIN', 'NOV', 'SFR'], 'extra-galactic': ['css', 'bll', 'fsrq', 'agn', 'nlsy1', 'rdg', 'sey', 'bcu', 'gal', 'sbg', 'ssrq'], 'galactic': ['psr', 'pwn', 'snr', 'spp', 'glc'], 'unassociated': ['']}

Methods Documentation

copy(self)

Copy catalog

is_source_class(self, source_class)[source]

Check if source belongs to a given source class.

The classes are described in Table 3 of the 3FGL paper:

http://adsabs.harvard.edu/abs/2015arXiv150102003T

Parameters:
source_class : str

Source class designator as defined in Table 3. There are a few extra selections available:

  • ‘ALL’: all identified objects
  • ‘all’: all objects with associations
  • ‘galactic’: all sources with an associated galactic object
  • ‘GALACTIC’: all identified galactic sources
  • ‘extra-galactic’: all sources with an associated extra-galactic object
  • ‘EXTRA-GALACTIC’: all identified extra-galactic sources
  • ‘unassociated’: all unassociated objects
Returns:
selection : ndarray

Selection mask.

row_index(self, name)

Look up row index of source by name.

Parameters:
name : str

Source name

Returns:
index : int

Row index of source in table

select_source_class(self, source_class)[source]

Select all sources of a given source class.

See SourceCatalog3FHL.is_source_class for further documentation

Parameters:
source_class : str

Source class designator.

Returns:
selection : SourceCatalog3FHL

Subset of the 3FHL catalog containing only the selected source class.

source_name(self, index)

Look up source name by row index.

Parameters:
index : int

Row index of source in table