GammaCatResourceIndex¶
-
class
gammapy.catalog.GammaCatResourceIndex(resources)[source]¶ Bases:
objectResource index for gamma-cat.
Parameters: - resources : list
List of
GammaCatResourceobjects
Attributes Summary
global_idsList of global resource IDs (list of str). unique_reference_idsSorted list of unique source IDs (list of str). unique_source_idsSorted list of unique source IDs (list of int). Methods Summary
from_list(data)Create from list of dicts. from_pandas(dataframe)Create from pandas.DataFrame.from_table(table)Create from Table.query(self, \*args, \*\*kwargs)Query to select subset of resources. sort(self)Return a sorted copy (leave self unchanged). to_list(self)Convert to list of dict. to_pandas(self)Convert to pandas.DataFrame.to_table(self)Convert to Table.Attributes Documentation
-
global_ids¶ List of global resource IDs (list of str).
In original order, not sorted.
-
unique_reference_ids¶ Sorted list of unique source IDs (list of str).
-
unique_source_ids¶ Sorted list of unique source IDs (list of int).
Methods Documentation