SourceCatalogGammaCat¶
-
class
gammapy.catalog.
SourceCatalogGammaCat
(filename='$GAMMA_CAT/docs/data/gammacat.fits.gz')[source]¶ Bases:
gammapy.catalog.SourceCatalog
Gammacat open TeV source catalog.
See: https://github.com/gammapy/gamma-cat
One source is represented by
SourceCatalogObjectGammaCat
.Parameters: filename : str
Path to the gamma-cat fits file.
Examples
Load the catalog data:
>>> from gammapy.catalog import SourceCatalogGammaCat >>> cat = SourceCatalogGammaCat()
Access a source by name:
>>> source = cat['Vela Junior']
Access source spectral data and plot it:
>>> source.spectral_model.plot() >>> source.spectral_model.plot_error() >>> source.flux_points.plot()
Attributes Summary
description
name
Methods Summary
to_source_library
()Convert to a SourceLibrary
.Attributes Documentation
-
description
= 'An open catalog of gamma-ray sources'¶
-
name
= 'gamma-cat'¶
Methods Documentation
-
to_source_library
()[source]¶ Convert to a
SourceLibrary
.TODO: add an option whether to skip or raise on missing models or data.
-