The SCAPE tools use the STM (Simple Terrain Model) file format. It consists of a brief header followed by raw binary data. The general structure of the file is: STM The height data is a sequence of unsigned 16-bit integers representing the height values. The four bytes c1..c4 are used to determine what byte order the integers are stored in. The STM-tools directory contains some simple programs for creating and manipulating STM files. In particular, the DEM2STM script converts USGS DEM files into STM files. It uses the CONVERT program by Christopher Keane to parse the DEM file into a simpler format, and then it converts that into an STM file. This will NOT account for the spherical mapping of DEM data. To properly warp the input data, look at the demtoflat and resample programs in the STM-tools/DEMutil directory. *PLEASE NOTE* These converters are in no way meant to be highly accurate or production quality. They are merely included as quick and dirty examples to let people experiment with USGS DEM data.