These functions compress (.tif, .img) or decompress (.gz) files contained in a given folder.

.unzip_ALL(folder_name, no_cores)
.unzip(folder_name, list_files, no_cores)
.zip_ALL(folder_name, no_cores)
.zip(folder_name, list_files, no_cores)

Arguments

folder_name

a string corresponding to the directory to be scanned

list_files

a vector containing filenames to be compress or decompress, in order not to scan the whole given directory

no_cores

default 1.
an integer corresponding to the number of computing resources that can be used to parallelize the (de)compression

Author

Maya Guéguen