Module delta.imagery.utilities

Miscellaneous utility classes/functions.

Functions

def progress_bar(text, fill_amount, prefix='', length=80)

Prints a progress bar. Call multiple times with increasing progress to overwrite the printed line.

Parameters

text : str
Text to print after progress bar
fill_amount : float
Percent to fill bar, from 0.0 - 1.0
prefix : str
Text to print before progress bar
length : int
Number of characters to fill as bar
def unpack_to_folder(compressed_path, unpack_folder)

Unpack a file into the given folder.

Parameters

compressed_path : str
Zip or tar file path
unpack_folder : str
Folder to unpack to