HGPS specificities
"models_4fgl_roi"
]
},
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Specificities of the HGPS catalog\n",
+ "\n",
+ "Using the `.to_models()` method for the `gammapy.catalog.SourceCatalogHGPS` will return only the models components of the sources retained in the main catalog, several candidate objects appears only in the Gaussian components table (see section 4.9 of the HGPS paper, https://arxiv.org/abs/1804.02432). To acces these components you can do the following:\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "discarded_ind = np.where([\"Discarded\" in _ for _ in catalog_hgps.table_components[\"Component_Class\"]])[0]\n",
+ "discarded_table = catalog_hgps.table_components[discarded_ind]"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "There is no spectral model available for these components but you can acces their spatial models:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "discarded_spatial = [catalog_hgps.gaussian_component(idx).spatial_model() for idx in discarded_ind]"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "In addition to the source components the HGPS catalog include a large scale diffuse component built by fitting a gaussian model in a sliding window along the Galactic plane. Informations on this model can be accesed via the propoerties `.table_large_scale_component` and `.large_scale_component` of `gammapy.catalog.SourceCatalogHGPS`."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "# here we show the 5 first elements of the table\n",
+ "catalog_hgps.table_large_scale_component[:5]\n",
+ "# you can also try :\n",
+ "# help(catalog_hgps.large_scale_component)"
+ ]
+ },
{
"cell_type": "markdown",
"metadata": {},
