SourceCatalog3FHL

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

Bases: gammapy.catalog.SourceCatalog

Fermi-LAT 3FHL source catalog.

One source is represented by SourceCatalogObject3FHL.

Attributes Summary

description
name
positions SkyCoord
source_categories

Methods Summary

copy() Copy catalog
info() Print info string.
is_source_class(source_class) Check if source belongs to a given source class.
row_index(name) Look up row index of source by name.
select_image_region(image) Select all source within an image
select_source_class(source_class) Select all sources of a given source class.
source_name(index) Look up source name by row index.

Attributes Documentation

description = 'LAT third high-energy source catalog'
name = '3fhl'
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()

Copy catalog

info()

Print info string.

is_source_class(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(name)

Look up row index of source by name.

Parameters:

name : str

Source name

Returns:

index : int

Row index of source in table

select_image_region(image)

Select all source within an image

Parameters:

image : SkyImage

Sky image

Returns:

catalog : SourceCatalog

Source catalog selection.

select_source_class(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(index)

Look up source name by row index.

Parameters:

index : int

Row index of source in table