geoips.filenames package#
Submodules#
geoips.filenames.base_paths module#
Collection of base path names used throughout GeoIPS.
Everything defaults to subdirectories relative to the REQUIRED environment variable GEOIPS_OUTDIRS.
Individual GEOIPS_OUTDIRS relative paths can be overridden by setting appropriate environment variables.
geoips.filenames.duplicate_files module#
Module to handle removing duplicate files, based on filename formats.
If an individual filename format has a method named
"<filename_formatter>_remove_duplicates"
defined, use that method to remove duplicates for the given current filename.
- geoips.filenames.duplicate_files.remove_duplicates(fnames, remove_files=False)[source]#
Remove duplicate files from all filenames included in dict fnames.
- Parameters:
fnames (dict) – Dictionary with individual filenames as keys, and a field named “filename_formatter” which indicates the filename format used to generate the given filename.
remove_files (bool, optional) – Specify whether to remove files (True), or just list what would have been removed, default to False
- Returns:
removed_files (list) – List of files that were removed.
saved_files (list) – List of files that were not removed.
Module contents#
geoips.filenames init file.