SourceCatalogObject2HWC#
- class gammapy.catalog.SourceCatalogObject2HWC(data, data_extended=None)[source]#
Bases:
gammapy.catalog.hawc.SourceCatalogObjectHWCBase
One source from the HAWC 2HWC catalog.
Catalog is represented by
SourceCatalog2HWC
.Attributes Summary
Number of models (1 or 2).
Source name as a string.
Source position as an
SkyCoord
object.Row index of source in catalog as an integer.
Methods Summary
info
([info])Summary information string.
sky_model
([which])Sky model (
SkyModel
).spatial_model
([which])Spatial model (
SpatialModel
).spectral_model
([which])Spectral model (
PowerLawSpectralModel
).Attributes Documentation
- n_models#
Number of models (1 or 2).
- name#
Source name as a string.
- row_index#
Row index of source in catalog as an integer.
Methods Documentation
- info(info='all')#
Summary information string.
- Parameters
- info{‘all’, ‘basic’, ‘position’, ‘spectrum’}
Comma separated list of options
- sky_model(which='point')[source]#
Sky model (
SkyModel
).which="point"
- Sky model for point source analysis.which="extended"
- Sky model for extended source analysis. Only available for some sources. Raise ValueError if not available.
According to the paper, the radius of the extended source model is only a rough estimate of the source size, based on the residual excess.
- spatial_model(which='point')[source]#
Spatial model (
SpatialModel
).which="point"
-PointSpatialModel
.which="extended"
-DiskSpatialModel
. Only available for some sources. Raise ValueError if not available.
- spectral_model(which='point')[source]#
Spectral model (
PowerLawSpectralModel
).which="point"
– Spectral model under the point source assumption.which="extended"
– Spectral model under the extended source assumption. Only available for some sources. Raise ValueError if not available.