SourceCatalogRegistry

class gammapy.catalog.SourceCatalogRegistry[source]

Bases: object

Source catalog registry.

Provides simple and efficient access to source catalogs by lazy-loading and caching catalog objects.

You should use these catalogs read-only, if you modify them you can get non-reproducible results if you access the modified version later on.

Attributes Summary

catalog_names Catalog names (list).
info_table Summary info table on catalogs.

Methods Summary

builtins() Factory function that make a catalog registry and registers the built-in catalogs.
info([file]) Print summary info about catalogs.
register(name, factory[, args]) Register a source catalog.

Attributes Documentation

catalog_names

Catalog names (list).

info_table

Summary info table on catalogs.

Loads all catalogs.

Methods Documentation

classmethod builtins()[source]

Factory function that make a catalog registry and registers the built-in catalogs.

info(file=None)[source]

Print summary info about catalogs.

register(name, factory, args=())[source]

Register a source catalog.

It must be possible to load it via factory(*args).