astrowisp.utils.file_utilities module

Collection of utilities for working with files.

astrowisp.utils.file_utilities.get_fits_fname_root(fits_fname)[source]

Return the FITS filename withou directories or extension.

astrowisp.utils.file_utilities.get_fname_pattern_substitutions(fits_fname, fits_header=None)[source]

Return a dictionary that can be used to complete a filename pattern.

astrowisp.utils.file_utilities.get_unpacked_fits(fits_fname)[source]

Ensure the result is an unpacked version of the frame.

astrowisp.utils.file_utilities.prepare_file_output(fname, allow_existing, allow_dir_creation, delete_existing=False)[source]

Ger ready to create/overwrite a file with the given name.