SourceCatalogObject3PC#

class gammapy.catalog.SourceCatalogObject3PC(data, data_extended=None, data_spectral=None)[source]#

Bases: SourceCatalogObjectFermiPCBase

One source from the 3PC catalog.

Attributes Summary

asso

flux_points

Flux points (FluxPoints).

flux_points_table

Flux points (Table).

lightcurve

Light-curve.

name

Source name as a string.

position

Source position as an SkyCoord object.

pulse_profile_best_fit

Best fit of the > 100 MeV 3PC pulse profile.

pulse_profile_radio

Radio pulse profile provided in the auxiliary file of 3PC.

pulse_profiles

The 3PC pulse profiles are provided in different energy ranges, each represented in weighted counts.

row_index

Row index of source in catalog as an integer.

Methods Summary

info([info])

sky_model([name])

Sky model (SkyModel).

spatial_model()

spectral_model([fit])

In the 3PC, Fermi-LAT collaboration tried to fit a SuperExpCutoffPowerLaw4FGLDR3SpectralModel with the exponential index index_2 free, or fixed to 2/3.

Attributes Documentation

asso = ['assoc_new']#
flux_points#

Flux points (FluxPoints).

flux_points_table#

Flux points (Table). Flux point is an upper limit if its significance is less than 2.

lightcurve#

Light-curve.

name#

Source name as a string.

position#

Source position as an SkyCoord object.

pulse_profile_best_fit#

Best fit of the > 100 MeV 3PC pulse profile.

Returns:
best_fit_profile: RegionNDMap

Map containing the best fit.

pulse_profile_radio#

Radio pulse profile provided in the auxiliary file of 3PC.

Returns:
radio_profile: RegionNDMap

Map containing the radio profile.

pulse_profiles#

The 3PC pulse profiles are provided in different energy ranges, each represented in weighted counts. These profiles are stored in a Maps of RegionNDMap, one per energy bin.

The Maps keys correspond to specific energy ranges as follows:

  • GT100_WtCnt: > 0.1 GeV

  • 50_100_WtCt: 0.05 – 0.1 GeV

  • 100_300_WtCt: 0.1 – 0.3 GeV

  • 300_1000_WtCt: 0.3 – 1 GeV

  • 1000_3000_WtCt: 1 – 3 GeV

  • 3000_100000_WtCt: 3 – 1000 GeV

  • 10000_100000_WtCt: 10 – 1000 GeV

Each pulse profile has an associated uncertainty map, which can be accessed by prepending "Unc_" to the corresponding key.

Returns:
maps: Maps

Maps containing the pulse profile in the different energy bin.

row_index#

Row index of source in catalog as an integer.

Methods Documentation

info(info='all')#
sky_model(name=None)#

Sky model (SkyModel).

spatial_model()#
spectral_model(fit='auto')[source]#

In the 3PC, Fermi-LAT collaboration tried to fit a SuperExpCutoffPowerLaw4FGLDR3SpectralModel with the exponential index index_2 free, or fixed to 2/3. These two models are referred as “b free” and “b 23”. For most pulsars, both models are available. However, in some cases the “b free” model did not fit correctly.

Parameters:
fitstr, optional

Which fitted model to return. The user can choose between “auto”, “b free” and “b 23”. “auto” will always try to return the “b free” first and fall back to the “b 23” fit if “b free” is not available. Default is “auto”.