How To. .

Terrain Region Converter

Use the Terrain Region converter to create terrain inlays (pdtt files) for a specific region. Use this converter instead of the Image Converters to create a pdtt file without having to create a pdttx file. Creating these files separately enables you to convert an updated image for a particular region without having to reconvert the image data.

The Terrain Region converter is available from the Utilities menu-->Imagery and Terrain Converter.

You can select a terrain source or have STK automatically select the highest resolution terrain source for the specified region for a particular central body. If automatic selection is used, you must enter a lat, lon, region by either entering the values or dragging in the 2D Graphics window.

To display an image inlay or terrain inlay on the central body, use the Globe Manager.

You can also use AgGxChunkImageConverter, which is a stand-alone image converter application, to convert terrain and imagery to .pdttx and .pdtt file formats for 3D visualization. This stand-alone executable may be run from the command prompt or may be launched from another application.

The Terrain Region Converter creates terrain images with maximum extents of -180 to 180.

The converter creates temporary files during the conversion process and puts them in the output directory or a directory specified by an environment variable. If the drive that holds the temporary files becomes full, the conversion process fails and returns an error message indicating that STK was unable to create the output file at the desired location. If the converter fails you can:

  • Check the temporary directory drive for sufficient disk space.
  • Update your TMP or TEMP environment variable to point to a location with more disk space. STK checks the TMP environment variable first to determine the location to use. If the variable does not exist or is not set, then STK checks the TEMP variable. If that does not exist or is not set, then STK uses the C:\ directory.

Central Body. Associates the terrain source with the central body specified here.

Input Data

Terrain Source. Terrain sources can be:

    Raw terrain. Any terrain data set specified at the scenario level can be used.

    The terrain source used must overlap some region of the image to be converted. Altitudes of zero are inserted wherever the terrain region does not overlap the image.

    Processed Intermediate Terrain Files (.datt). The intermediate processed terrain file (.datt) is created whenever a raw terrain source is converted to a terrain file (.pdtt). This intermediate file is deleted in the conversion process unless the Delete Intermediate Terrain File button is disabled. The image converted must fall completely within the selected .datt file.

Use one of the following to select the terrain source:

    Automatic Selection. Selects an appropriate terrain source based on the position of the image and available terrain sources. The raw terrain sources are searched first, then any available .datt file.

    Click to add a new terrain source file (.datt). For convenience, all available .datt files in the directory with the selected terrain source files are also added as available sources. Raw terrain sources may be added via the scenario's Terrain properties page.

Source Extent. Specifies the coordinates of the terrain source.

Custom Region. Specifies the coordinates for the portion of the terrain to be converted.

Output Data

Directory. Use the button to choose the directory in which converted terrain will be stored.

Filename. Name of the converted file.

Delete Intermediate Terrain File. Deletes the intermediate terrain file (.datt) when the conversion is complete. This option is only available when terrain is generated and the terrain source is a raw data set.

Convert button. Click to convert the selected image file.

How To. . .