Convert IMG Data to XYZ with GDAL Translate

These directions assume that gdal_translate.exe is in the system path or C:\Program Files\GDAL\. GDAL installation instructions can be found here: gdal-installation-and-setup-guide.html.

1aObtain IMG Data: Step 1
The primary method for downloading The National Map (TNM) raster IMG (3D Elevation Program (3DEP) 1-, 1/3-, or 1/9-arc-second) type of staged products is by using the new TNM download client ( Zoom to the area of interest. Select "Elevation Products (3DEP)" from the Datasets section on the left (1), then a subcategory (2) and IMG file format (3). Finally, click on the "Find Products" button (4) to bring up the available products.
1bObtain IMG Data: Step 2
When the Available Products window appears, click on "Download" to download the IMG in a zip file. Once downloaded, unzip the file locally, making note of the location.
2Run the GDAL Translate Tool from the Command Line
The gdal_translate command requires two parameters to convert an IMG file. The first is the location and name of the IMG file to be converted. This tool will not recursively scan the sub-directories to find the data, so the path must point to the actual IMG file. The second parameter is the desired name and location of the XYZ output file.

Directions for using this script are presented below:
USAGE: gdal_translate -of XYZ <IMG Input File Name> <Output File Name>
<IMG Input File Name>(REQUIRED) This is the full or relative path to the IMG file that contains the source data.
<Output File Name>(REQUIRED) This is the full or relative path to the XYZ output file that will be created.

Accessibility FOIA Privacy Policies and Notices logo U.S. Department of the Interior | U.S. Geological Survey
Page Contact Information: The National Map
Page Last Modified: