fetch_fermi_catalog¶
-
gammapy.catalog.
fetch_fermi_catalog
(catalog, extension=None)[source]¶ Fetch Fermi catalog data.
Reference: http://fermi.gsfc.nasa.gov/ssc/data/access/lat/.
The Fermi catalogs contain the following relevant catalog HDUs:
- 3FGL Catalog : LAT 4-year Point Source Catalog
LAT_Point_Source_Catalog
Point Source Catalog Table.ExtendedSources
Extended Source Catalog Table.
- 2FGL Catalog : LAT 2-year Point Source Catalog
LAT_Point_Source_Catalog
Point Source Catalog Table.ExtendedSources
Extended Source Catalog Table.
- 1FGL Catalog : LAT 1-year Point Source Catalog
LAT_Point_Source_Catalog
Point Source Catalog Table.
- 2FHL Catalog : Second Fermi-LAT Catalog of High-Energy Sources
Count Map
AIT projection 2D count image2FHL Source Catalog
Main catalogExtended Sources
Extended Source Catalog TableROIs
Regions of interest
- 1FHL Catalog : First Fermi-LAT Catalog of Sources above 10 GeV
LAT_Point_Source_Catalog
Point Source Catalog Table.ExtendedSources
Extended Source Catalog Table.
- 2PC Catalog : LAT Second Catalog of Gamma-ray Pulsars
PULSAR_CATALOG
Pulsar Catalog Table.SPECTRAL
Table of Pulsar Spectra Parameters.OFF_PEAK
Table for further Spectral and Flux data for the Catalog.
Parameters: catalog : {‘3FGL’, ‘2FGL’, ‘1FGL’, ‘1FHL’, ‘2FHL’, ‘2PC’}
Specifies which catalog to display.
extension : str
Specifies which catalog HDU to provide as a table (optional). See list of catalog HDUs above.
Returns: hdu_list (Default) :
HDUList
Catalog FITS HDU list (for access to full catalog dataset).
catalog_table :
Table
Catalog table for a selected hdu extension.
Examples
>>> from gammapy.catalog import fetch_fermi_catalog >>> fetch_fermi_catalog('2FGL') [<astropy.io.fits.hdu.image.PrimaryHDU at 0x3330790>, <astropy.io.fits.hdu.table.BinTableHDU at 0x338b990>, <astropy.io.fits.hdu.table.BinTableHDU at 0x3396450>, <astropy.io.fits.hdu.table.BinTableHDU at 0x339af10>, <astropy.io.fits.hdu.table.BinTableHDU at 0x339ff10>]
>>> from gammapy.catalog import fetch_fermi_catalog >>> fetch_fermi_catalog('2FGL', 'LAT_Point_Source_Catalog') <Table rows=1873 names= ... >