find_matches#

niriss_tools.pipeline.find_matches(img_dir, info_dict, pattern='*{filt}-*_drc_var.fits*', key_name='var', case_sensitive=False)[source]#

Update an info_dict with matches from a specified directory.

Parameters:
img_diros.PathLike

The directory to search.

info_dictdict

A nested dictionary, where each entry contains information about observed images.

patternstr, optional

The filename pattern to match, by default "*{filt}-*_drc_var.fits*".

key_namestr, optional

The name to add to each dictionary item, by default "var".

case_sensitivebool, optional

Whether to match on case, by default False.

Returns:
dict

The modified input info_dict.