find_files_to_process
- breads.jwst_tools.find_files_to_process(input_dir, filetype='uncal.fits', exp_numbers=None, verbose=True)[source]
Utility function to find files of a given type
- Parameters:
- input_dirstr
Input directory to search for files
- filetypestr
Filename match pattern. Either a simple ending string like ‘uncal.fits’ or a more complex regular expression search pattern. This will be used to search the input directory for all FITS files matching this pattern.
- exp_numberslist or ndarray of ints
Optional list of exposure numbers. The list of files will be filtered to contain only this subset of exposure numbers.
- verbosebool
Be more verbose in outputs
- Returns:
- fileslist of str
List of filenames found in input_dir matching the filetype (and exp_numbers, if provided)