find_all_matching_datasets#
- ctapipe.utils.datasets.find_all_matching_datasets(pattern, searchpath=None, regexp_group=None, url=None)[source]#
 Returns a list of resource names (or substrings) matching the given pattern, searching first in CTAPIPE_SVC_PATH (a colon-separated list of directories) and then in the download cache.
- Parameters:
 - pattern: str
 regular expression to use for matching
- searchpath: str
 colon-seprated list of directories in which to search, defaulting to CTAPIPE_SVC_PATH environment variable
- regexp_group: int
 if not None, return the regular expression group indicated (assuming pattern has a group specifier in it)
- Returns:
 - list(str):
 resources names, use get_dataset_path() to retrieve the full filename