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 (int)
n_spectra Number of measured spectra (1 or 2).
name Source name (str)
position Source position (SkyCoord).
spectral_models Spectral models (either one or two).

Methods Summary

info(self[, info]) Summary info string.

Attributes Documentation

index

Row index of source in catalog (int)

n_spectra

Number of measured spectra (1 or 2).

name

Source name (str)

position

Source position (SkyCoord).

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(self, info='all')[source]

Summary info string.

Parameters:
info : {‘all’, ‘basic’, ‘position’, ‘spectrum’}

Comma separated list of options