SourceCatalog¶
-
class
gammapy.catalog.
SourceCatalog
(table, source_name_key='Source_Name', source_name_alias=())[source]¶ Bases:
abc.ABC
Generic source catalog.
This class can be used directly, but it’s mostly used as a base class for the other source catalog classes.
This is a thin wrapper around
Table
, which is stored in thecatalog.table
attribute.- Parameters
- table
Table
Table with catalog data.
- source_name_keystr
Column with source name information
- source_name_aliastuple of str
Columns with source name aliases. This will allow accessing the source row by alias names as well.
- table
Attributes Summary
Source positions (
SkyCoord
).Methods Summary
Catalog description (str).
name
()Catalog name (str).
row_index
(self, name)Look up row index of source by name.
source_name
(self, index)Look up source name by row index.
Attributes Documentation
Methods Documentation