SourceCatalog2PC#

class gammapy.catalog.SourceCatalog2PC(filename='$GAMMAPY_DATA/catalogs/fermi/2PC_catalog_v04.fits.gz')[source]#

Bases: SourceCatalog

Fermi-LAT 2nd pulsar catalog.

One source is represented by SourceCatalogObject2PC.

Attributes Summary

description

positions

Source positions as a SkyCoord object.

tag

Methods Summary

row_index(name)

Look up row index of source by name.

source_name(index)

Look up source name by row index.

to_models(**kwargs)

Create Models object from catalog.

Attributes Documentation

description = 'LAT 2nd pulsar catalog'#
positions#

Source positions as a SkyCoord object.

tag = '2PC'#

Methods Documentation

row_index(name)#

Look up row index of source by name.

Parameters:
namestr

Source name.

Returns:
indexint

Row index of source in table.

source_name(index)#

Look up source name by row index.

Parameters:
indexint

Row index of source in table.

to_models(**kwargs)[source]#

Create Models object from catalog.