SourceCatalogObject2HWC¶
-
class
gammapy.catalog.
SourceCatalogObject2HWC
(data, data_extended=None)[source]¶ Bases:
gammapy.catalog.SourceCatalogObject
One source from the HAWC 2HWC catalog.
Catalog is represented by
SourceCatalog2HWC
.Attributes Summary
index
Row index of source in catalog n_spectra
Number of measured spectra (1 or 2). name
Source name position
SkyCoord
spectral_models
Spectral models (either one or two). Methods Summary
info
([info])Summary info string. pprint
([file])Pretty-print source data Attributes Documentation
-
index
¶ Row index of source in catalog
-
n_spectra
¶ Number of measured spectra (1 or 2).
-
name
¶ Source name
-
spectral_models
¶ Spectral models (either one or two).
The HAWC catalog has one or two spectral measurements for each source.
Returns: models : list
List of
SpectralModel
Methods Documentation
-
info
(info='all')[source]¶ Summary info string.
Parameters: info : {‘all’, ‘basic’, ‘position’, ‘spectrum’}
Comma separated list of options
-
pprint
(file=None)¶ Pretty-print source data
-