parse_images_from_pattern#

niriss_tools.pipeline.parse_images_from_pattern(img_dir, pattern='*.fits')[source]#

Populate a dict with info and locations of images matching a pattern.

Parameters:
img_diros.PathLike

The directory to search.

patternstr, optional

The pattern to search with, by default "*.fits".

Returns:
dict

The keys of each entry are lower case, and in the format "{telescope}-{instrument}-{filter}". Each entry is itself a dictionary, containg basic information on the image and its location.