|Uncompressing tar.gz files (Windows) #0148
||OS/platforms(s): Windows only
Contributor/author(s): Wren Weburg
The DEM files downloaded from the USGS site are compressed in a format that is somewhat difficult to understand. Essentially, the DEM files reside in a .tar archive file, which is then compressed into a .gz file. Neither file type is really standard on the Windows platform--at least not like the popular zip file format. Fortunately, if you have WinZip (version 6.3 or later; possibly older versions), you can extract the files for use. This article explains the process in detail.
Before proceeding, you must have WinZip 6.3 or later installed on your computer. WinZip can be downloaded from www.winzip.com. This procedure uses WinZip 6.3. Newer versions should work about the same, but older versions are not guaranteed to work.
- Download the tar.gz file and save it to disk in a place you'll remember. For this example, we'll be downloading a compressed DEM file called 22.214.171.1246240.tar.gz.
- Now open Windows Explorer and locate the file. (Note: all periods in the filename may have been replaced with an underscore. This is fine. For example, our example file was renamed to 30_1_1_926240_tar.gz automatically.) Once found, open the downloaded file. The file should load with WinZip if WinZip is installed properly. If the file does not open with WinZip, launch WinZip manually, then locate the file, and then open it.
- WinZip should ask you to enter the full name of the file within the archive. All you have to do here is ensure the extension of the filename in the dialog box ends with a ".tar". You can either add the .tar to the filename if it doesn't already exist. Or, if the file ends with the text "_tar", you can replace the "_tar" with ".tar". For example, 30_1_1_926240_tar would be renamed to 30_1_1_926240.tar. Renaming it to 30_1_1_926240_tar.tar would also work. Then click OK.
- WinZip should tell you the archive contains one file and will ask you if you want to open it. Say yes.
- Now WinZip displays a list of files. You can now extract the file(s) you need from the archive.
Note: SC3000.COM does not provide additional support for WinZip. If you need help with WinZip or have questions about it, please visit the WinZip Web site at www.winzip.com.
Display article in printer-friendly mode
Copyright and disclaimer: All HTML, text, and graphics in this article are copyrighted by SC3000.COM and/or the article's author(s). Only SC3000.COM has permission to reproduce the work of the author(s) unless otherwise noted. Reproduction of any text in this article without written consent of the article's author(s), or reproduction of any HTML or graphics by SC3000.COM without SC3000.COM's written consent, is strictly prohibited. Neither SC3000.COM, nor the author(s) of the article, are responsible for any damage caused by the use of this article.