Import DEM

This tool can be used to convert US Geological Survey/Canadian Digital Elevation Data (CDED) digital elevation models (DEMs) to Whitebox GAT raster files. The DEM format is an ASCII text file format for storing raster DEM data based on the description in "Standards for digital elevation models, U.S. Department of the Interior, U.S. Geological Survey, National Mapping Division." The algorithm was actually based on the description of the file format provided in "Canadian Digital Elevation Data, Level 1 Product Specifications". Input files should have a *.dem file extension. If the files are compressed (zipped), they must be decompressed prior to running this tool. The output Whitebox Raster files will be of the Float data type. 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 + "040p_0101_deme.dem" + ";" + wd + "040p_0101_demw.dem"
args = [inputFiles]
pluginHost.runPlugin("ImportDEM", 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 + "040p_0101_deme.dem" + ";" + wd + "040p_0101_demw.dem"
String[] args = [inputFiles]
pluginHost.runPlugin("ImportDEM", args, false)

Credits: