Convert ArcGrid Data to GeoTIFF with GDAL Scripts

These directions assume that gdal_translate.exe is in the path, or C:\Program Files\GDAL\.
1aObtain ArcGrid Data: Step 1
The primary method for downloading The National Map (TNM) raster ArcGrid (3D Elevation Program (3DEP) 1- or 1/3-arc-second only) 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 ArcGrid file format (3). Finally, click on the "Find Products" button (4) to bring up the available products.
1bObtain ArcGrid Data: Step 2
When the Available Products window appears, click on "Download" to download the ArcGrid data in a zip file. Once downloaded, unzip the file locally, making note of the location.
2Obtain USGS Raster Conversion Scripts
A set of scripts for converting raster staged data is available at USGS_Raster_Conversion_Scripts. These should be downloaded and unzipped locally. (These directions are part of the how to documentation in that archive.)
3aOption 1: Drag and Drop ArcGrid Download Folder
The GDAL_Convert_All_ADF_2_GeoTIFF.bat script takes a folder name as input and recursively scans that folder for all ADF files and attempts to create a GeoTIFF for each. In Windows Explorer, when you drag and drop a folder onto a batch file, the folder path is passed as the parameter to run that batch file with. Doing this produces a GeoTIFF in that same folder as the ArcGrid data. The resulting image(s) will have the name GDAL_ADF_2_GeoTIFF.tif.

In order to use this method, download the GDAL scripts into a user-controlled directory with write permissions. Drag and drop the original ArcGrid file from the same directory that the conversion script is located in.
3bOption 2: Run the GDAL_ADF_2_GeoTIFF.bat from the Command Line
The GDAL_ADF_2_GeoTIFF.bat file also uses a directory for the location of the ArcGrid data. This script will not recursively scan the sub-directories to find the data, so the path must point to the actual data folder. This is the folder that contains the ADF files. A second parameter that is optional allows you to specify the path and name of the output GeoTIFF file.

Since the second parameter is optional, the easiest way to run this is to drag and drop the ArcGrid data folder onto the batch file. The catch is that the default conversion is to BIL format. This means to get a GeoTIFF output, we need to specify the second parameter by running this from the command line. The script uses the file extension of the second parameter to determine the correct output type. The directions for using this script are presented below:
USAGE: GDAL_ADF_2_GeoTIFF.bat <ArcGrid Input Dir> [Output File Name]
<ArcGrid Input Dir>(REQUIRED) This is the relative or full path to the ArcGrid file that contains the source data.
[Output File Name](OPTIONAL) This is the relative or full path to the output file that will be created. If this is not set, it will attempt to make a sub-folder under the current directory called GeoTIFF_Output, and a file in that folder called GDAL_ADF_2_GeoTIFF.tif.

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: