list_fits_files#
- astropop.file_collection.list_fits_files(location, fits_extensions=None, glob_include=None, glob_exclude=None)#
List all fist files in a directory, if compressed or not.
- Parameters:
- locationstr
Main directory to look for the files. Files will be listed recursively.
- fits_extensionsstr or list, optional
FITS file name extension to be used. Default is None, wich means that the default extensions will be used, like ‘.fits’ and ‘.fit’.
- glob_includestr, optional
Glob pattern to include files. Default is None.
- glob_excludestr, optional
Glob pattern to exclude files. Default is None.
- Returns:
- list
List of files found.