catalog_xmatch_circle¶
-
gammapy.catalog.
catalog_xmatch_circle
(catalog, other_catalog, radius='Association_Radius', other_radius=<Angle 0. deg>)[source]¶ Find associations within a circle around each source.
This is convenience function built on
search_around_sky
, extending it in two ways:- Each source can have a different association radius.
- Handle source catalogs (
Table
) instead ofSkyCoord
.
Sources are associated if the sum of their radii is smaller than their separation on the sky.
Parameters: catalog :
Table
Main source catalog
other_catalog :
Table
Other source catalog of potential associations
radius, other_radius :
Angle
orstr
Main source catalog association radius. For
str
this must be a column name (in degrees if without units)Returns: associations :
Table
The list of associations.