Convert IMG Data to XYZ with GDAL Translate
Step | Description | Screenshot | ||||
1a | Obtain 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 (http://viewer.nationalmap.gov/basic/). 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. | ||||||
1b | Obtain 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. | ||||||
2 | Run 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:
|