SourceCatalog3FHL

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

Bases: gammapy.catalog.SourceCatalog

Fermi-LAT 3FHL source catalog.

Reference: https://ui.adsabs.harvard.edu/abs/2017ApJS..232…18A

One source is represented by SourceCatalogObject3FHL.

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 third high-energy source catalog'
name = '3fhl'
positions

Source positions (SkyCoord).

source_categories = {'EXTRA-GALACTIC': ['BLL', 'FSRQ', 'NLSY1', 'RDG'], 'GALACTIC': ['BIN', 'HMB', 'PSR', 'PWN', 'SFR', 'SNR'], 'extra-galactic': ['agn', 'bcu', 'bll', 'fsrq', 'rdg', 'sbg'], 'galactic': ['glc', 'hmb', 'psr', 'pwn', 'sfr', 'snr', 'spp'], '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:

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

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