Import SRTM DEM

This tool can be used to convert Shuttle Radar Topography Mission (SRTM) digital elevation models (DEMs) to Whitebox GAT raster files. Only SRTM 1-arcsecond and SRTM 3-arcsecond formats are supported. The input files must follow the file structure specified by the SRTM white-paper (*.hgt), including the common file naming convention (e.g. NYYWXXX.hgt). The output Whitebox Raster files will be of the Integer data type, with elevations reported in meters to the nearest whole number. Void cells are assigned the NoData value of -32,768.

See Also:

Scripting:

The following is an example of a Python script using this tool:

wd = pluginHost.getWorkingDirectory()
# You may have multiple input files but they must
# be separated by semicolons in the string.
inputFiles = wd + "N51W124.hgt" + ";" + wd + "N51W125.hgt" + ";" + wd + "N51W126.hgt"
args = [inputFiles]
pluginHost.runPlugin("ImportSRTM", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
// You may have multiple input files but they must
// be separated by semicolons in the string.
def inputFiles = wd + "N51W124.hgt" + ";" + wd + "N51W125.hgt" + ";" + wd + "N51W126.hgt"
String[] args = [inputFiles]
pluginHost.runPlugin("ImportSRTM", args, false)

Credits: