get_table_dataset

ctapipe.utils.get_table_dataset(table_name, role='resource', **kwargs)[source]

get a tabular dataset as an astropy.table.Table object

Parameters
table_name: str

base name of table, without file extension

role: str

should be set to the CTA data hierarchy name when possible (e.g. dl1.sub.svc.arraylayout). This will be recorded in the provenance system.

kwargs:

extra arguments to pass to Table.read()

Returns
Table