SourceCatalog3FGL¶
-
class
gammapy.catalog.SourceCatalog3FGL(filename='$GAMMAPY_EXTRA/datasets/catalogs/fermi/gll_psc_v16.fit.gz')[source]¶ Bases:
gammapy.catalog.SourceCatalogFermi-LAT 3FGL source catalog.
One source is represented by
SourceCatalogObject3FGL.Attributes Summary
descriptionnamepositionsSkyCoordsource_categoriesMethods 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 4-year point source catalog'¶
-
name= '3fgl'¶
-
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()¶ 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 :
ndarraySelection 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 :
SkyImageSky image
Returns: catalog :
SourceCatalogSource catalog selection.
-
select_source_class(source_class)[source]¶ Select all sources of a given source class.
See
SourceCatalog3FHL.is_source_classfor further documentationParameters: source_class : str
Source class designator.
Returns: selection :
SourceCatalog3FHLSubset 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
-