How do I load terrain into a scenario and process it for visualization?

« Go Back

Information

 
QuestionHow do I load terrain into a scenario and process it for visualization?
Answer

The Loading Terrain Data tutorial in STK Help uses the Utilities > Imagery and Terrain Converter to generate an STK terrain file (*.pdtt) that matches the extent of the input image (.jp2 or .pdttx). 

This tutorial uses the Utilities > Imagery and Terrain Converter to generate an STK terrain file (*.pdtt) with the same extent or optionally a subset of the input source.  

Load the Terrain into the Scenario

  1. Open scenario Properties.
  2. Select the Basic - Terrain page.
  3. Click the Add button.
  4. Select your format in the “Files of Type” drop-down menu.
  5. Find and Select your Terrain File.
  6. Click OK twice to accept and close Scenario Properties.

In this example, we chose the AGI World Terrain .hdr header file that is available on the STK data disc. To use the terrain file you've chosen, select "Add" and navigate to the file. Ensure that the "Files of type" field matches your file type. By default, the AGI World Terrain data set installs to C:\Program Files (x86)\AGI\PlanetaryData\Earth\AGI World Terrain.

User-added image
 

View the Terrain Extents in 2D Graphics

  1. Open the 2D Graphics Window Properties.
  2. Select the Details page.
  3. Select the Terrain Extents option.
  4. In the 2D Window, use the zoom controls to orient the view on the yellow rectangle in your terrain location (if the terrain source is the global extents, you will see a yellow outline on the edge of the 2D Window when zoomed out completely).

User-added image
 

Process your terrain for visualization

  1. Open the Utilities menu.
  2. Select the Imagery and Terrain Converter.
  3. Select the Terrain Region page on the left.
  4. Here you choose which scenario terrain source to convert into STK Terrain (.pdtt).  You can either convert the entire source or specify a custom subset extent.
  5. For the entire source, simply select it from Terrain Source drop-down and click Convert.

Important: AGI World Terrain is global and can take several hours to process. It will produce an STK Terrain file (.pdtt) that is several gigabytes in size.

Subset of Terrain Source

For a subset of Terrain Source extent, complete the following steps. Once complete, the output *.pdtt file can be dragged and dropped onto the 3D Graphics window or loaded via the Globe Manager. In the Globe Manager, you can "Zoom To" and/or "Toggle Extents" from the right-click menu. 

  1. Select your source from the Terrain Source drop-down.
  2. Check Custom Region.
  3. Switch to the 2D Graphics window and drag to draw a box by holding down the left mouse button while pointing within the yellow polygon representing the terrain extents.
  4. Switch back to the Imagery and Terrain Converter and notice the Custom Extent fields updated by the box you created.
  5. Optional: Type your coordinates instead of using the previous two steps.
  6.  Click Convert.

Two or More Terrain Sources

For a subset of two (2) or more Terrain Source extents, complete these steps.

Example 1:  You have two (2) Terrain Sources and you want an area that is on the edge.

  1. Leave the Terrain Source set to Automatic Selection.
  2. Note that the "Custom Extents" fields are editable.
  3. Complete steps 1 through 6 from the Subset of Terrain Source section above.

********************************************************************* 
Additional notes about specific STK Terrain Source file types
*********************************************************************

ESRI GRID Format

The ADF or GRID is a raster format created by ESRI software that can contain imagery or terrain. If this file contains terrain data, it may be used as an STK Terrain Source. The steps below assume land-based terrain with rectangular extents and elevations that are based on the WGS84 ellipsoid.    
 
Below is a sample GRID / ADF Directory. Note that all files must be kept together and that the one with the largest file size is loaded in STK.

User-added image
 

NGA DTED (.DT1, .DT2, etc) vs NGA DMED file: Which to use as Scenario Terrain source?

A typical NGA *dted disc will have a *dmed header that references subdirectories named by longitude containing files that are named by latitude. It is ideal to load the *dmed as the STK Terrain Source and let STK recursively load all of the children (*.dt) files.

After doing this, use the steps "For a subset of two or more Terrain Source extents" above to provide coordinates that span the entire extent of the *dted data set. This creates one STK Terrain File (*.pdtt). If no *dmed file is available, then you have no option but to load the individual *.dt files.

TitleHow do I load terrain into a scenario and process it for visualization?
URL NameHow-do-I-load-terrain-and-process-visualization

Related Files