AgAsDtedConvert

AgAsDtedConvert.exe is a stand-alone application that converts terrain data. It uses a source file containing raw terrain data to create a processed terrain file (.datt format). The *.datt format is compatible with conversion tools that create *.pdtt terrain files. If you have a large area of terrain to convert, using a *.datt file as an intermediate form can be more efficient than converting it directly to *.pdtt format.

Using the application

You can run AgAsDtedConvert.exe from a command prompt window or from another application. The command format is:

AgAsDtedConvert -i "<terrain source file>"
  • -o "<converted datt terrain output file>"
  • -p terrain data type>
  • -cb <reference central body>
  • -minLat <minimum latitude in degrees>
  • -maxLat <maximum latitude in degrees>
  • -minLon <minimum longitude in degrees>
  • -maxLon <maximum longitude in degrees>
  • -additionalSources "<extra terrain source of same type>"
  • -noCache
Argument Description
-i "<terrain source file>" This is the terrain file that you want to convert. Make sure to put the quotes around the file path, otherwise the utility will hang without insight into the error.
-o "<converted datt terrain output file >" This is the .datt file (name and path) that you want to create. Make sure to put the quotes around the file path.
-p <terrain data type>
This is the raw terrain type of the source file. Valid types are:
  • MUSE - MUSE Raster File (DTE)

    The MUSE Raster file format is deprecated for STK 12.8.

  • USGS - USGS DEM (DEM)
  • GTOPO30 - GTOPO30 DEM (HDR)
  • NIMA - NIMA/NGA DMED
  • AGI - STK World Terrain (HDR) - Default.
  • GEODAS - GEODAS Grid Data (g98)
  • NIM0 - NIMA/NGA DTED Level 0 (DT0)
  • NIM1 - NIMA/NGA DTED Level 1 (DT1)
  • NIM2 - NIMA/NGA DTED Level 2 (DT2)
  • NIM3 - NIMA/NGA DTED Level 3 (DT3)
  • NIM4 - NIMA/NGA DTED Level 4 (DT4)
  • NIM5 - NIMA/NGA DTED Level 5 (DT5)
  • MOLA - MOLA Terrain (LBL)
-cb <reference central body> This is the central body associated with the terrain source. If you do not specify this keyword, the central body will be Earth.
-minLat <minimum latitude in degrees> This is the region of the terrain source that you want to convert. If you do not specify these parameters, the entire terrain source is converted.
-maxLat <maximum latitude in degrees>
-minLon <minimum longitude in degrees>
-maxLon <maximum longitude in degrees>
-additionalSources "<extra terrain source file>" Use this option to add a supporting terrain source to aid the application in converting the specified input file. This is useful when the application is converting a region that could possibly fall outside the terrain source it is converting. You can specify this argument two or more times to add more terrain sources to the conversion process. All additional terrain sources must be of the same type as the terrain file being converted. Make sure to put the quotes around the file path.
-noCache This disables the use of caching when converting the MOLA terrain format. It may help with performance when the native terrain data is in the polar stereographic projection.

Examples

The following examples are for lunar terrain conversions.

<Install Dir>\bin>AgAsDtedConvert.exe -i "J:\lunar_terrain\SLDEM2015\512ppd\512_source\SLDEM2015_512_00N_30N_000_045_FLOAT.LBL" -o "J:\lunar_terrain\SLDEM2015\512ppd\512_source\SLDEM2015_512_00N_30N_000_045_FLOAT.datt" -p MOLA -cb Moon -noCache

 

<Install Dir>\bin>AgAsDtedConvert.exe -i "J:\lunar_terrain\SLDEM2015\512ppd\512_source\SLDEM2015_512_00N_30N_000_045_FLOAT.LBL" -o "J:\lunar_terrain\SLDEM2015\512ppd\512_source\SLDEM2015_512_00N_30N_000_045_FLOAT.datt" -p MOLA -cb Moon

 

<Install Dir>\bin>AgAsDtedConvert.exe -i "J:\lunar_terrain\SLDEM2015\512ppd\512_source\SLDEM2015_512_00N_30N_000_045_FLOAT.LBL" -o "J:\lunar_terrain\SLDEM2015\512ppd\512_source\SLDEM2015_512_00N_30N_000_045_FLOAT.datt" -p MOLA -cb Moon -additionalSources "J:\lunar_terrain\SLDEM2015\512ppd\512_source\SLDEM2015_512_00N_30N_045_090_FLOAT.LBL"