SourceCatalogObjectHGPS#
- class gammapy.catalog.SourceCatalogObjectHGPS(data, data_extended=None)[source]#
Bases:
gammapy.catalog.core.SourceCatalogObject
One object from the HGPS catalog.
The catalog is represented by
SourceCatalogHGPS
. Examples are given there.Attributes Summary
Spectral model energy range as a
Quantity
with length 2.Flux points as a
FluxPoints
object.Flux points table as a
Table
.Source name as a string.
Source position as an
SkyCoord
object.Row index of source in catalog as an integer.
Methods Summary
components_models
([which, linked])Models of the source components.
info
([info])Information string.
sky_model
([which])Source sky model.
Spatial model as a
SpatialModel
object.spectral_model
([which])Spectral model as a
SpectralModel
object.Attributes Documentation
- flux_points#
Flux points as a
FluxPoints
object.
- name#
Source name as a string.
- row_index#
Row index of source in catalog as an integer.
Methods Documentation
- components_models(which='best', linked=False)[source]#
Models of the source components.
- Parameters
- which{‘best’, ‘pl’, ‘ecpl’}
Which spectral model.
- linkedbool
Each subcomponent of a source is given as a different
SkyModel
. If True, the spectral parameters except the normalisation are linked. Default is False.
- Returns
- sky_model
Models
Models of the catalog object.
- sky_model
- info(info='all')[source]#
Information string.
- Parameters
- info{‘all’, ‘basic’, ‘map’, ‘spec’, ‘flux_points’, ‘components’, ‘associations’, ‘id’}
Comma separated list of options.
- sky_model(which='best')[source]#
Source sky model.
- Parameters
- which{‘best’, ‘pl’, ‘ecpl’}
Which spectral model.
- Returns
- sky_model
Models
Models of the catalog object.
- sky_model
- spatial_model()[source]#
Spatial model as a
SpatialModel
object.One of the following models (given by
Spatial_Model
in the catalog):Point-Like
or has a size upper limit :PointSpatialModel
Gaussian
:GaussianSpatialModel
2-Gaussian
or3-Gaussian
: composite model (using+
with Gaussians)Shell
:ShellSpatialModel
- spectral_model(which='best')[source]#
Spectral model as a
SpectralModel
object.One of the following models (given by
Spectral_Model
in the catalog):- Parameters
- which{‘best’, ‘pl’, ‘ecpl’}
Which spectral model.