Compression

Essential Materials

Download this: 7-zip Portable

Essential Skill

Working with compression is essential for remote sensing. Remote sensing data is often very large and is typically delivered in a compressed format. Students will need to be able to install and use compression software to complete lab assignments.

Objective

Students will understand how to compress and uncompress files using 7-zip Portable

Procedure

Review the following demonstration video and practice compressing and uncompressing files on your own.

Python

You can also extract tar.gz files using Python code and the tarfile module in the standard library:

import tarfile

tar = tarfile.open('C:/path/to/tarfile/tfile.tar.gz', 'r:gz')
tar.extractall('C:/output/path/')