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_dir
os.PathLike The directory to search.
- pattern
str, optional The pattern to search with, by default
"*.fits".
- img_dir
- Returns:
dictThe 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.