Part 6:
Using Terrain, Chains, and Constellations
STK Pro, STK Premium (Air), STK Premium (Space), or STK Enterprise
You can obtain the necessary licenses for this tutorial by contacting AGI Support at support@agi.com or 1-800-924-7244.
The results of the tutorial may vary depending on the user settings and data enabled (online operations, terrain server, dynamic Earth data, etc.). It is acceptable to have different results.
This tutorial requires version 12.9 of the STK software or newer.
Capabilities covered
This lesson covers the following capability of the Ansys Systems Tool Kit® (STK®) digital mission engineering software:
- STK Pro
Problem statement
Engineers and operators require an expedient way to determine if local terrain is affecting visibility between ground sites and satellites for purposes such as communications, imaging, and general situational awareness. You are conducting a line-of-sight test between a constellation of GPS satellites, a ground-based test team located in mountainous terrain, a CubeSat communications satellite, and a base team located in Morton, Washington. The effects of the terrain must be taken into account. This test could be used to schedule times to transmit location information if someone has access to GPS and a simple FM transmitter and wants to schedule prearranged communications with the base team using a low-Earth-orbiting satellite.
Solution
Use the STK application to load a USGS Digital Elevation Model (DEM) file and analyze the impact of local terrain on accesses between the GPS constellation, the test team, a CubeSat satellite, and the base team. First, change the DEM file into a STK terrain file (.pdtt), which can be used to visualize terrain in the 3D Graphics window. Then, create a constellation of GPS satellites, use Place objects as the teams' locations, factor in the impact of local terrain using an azimuth-elevation (AzEl) mask, and utilize a Chain object to create connections between all the nodes.
What you will learn
Upon completion of this tutorial, you will be able to:
- Create an STK terrain file (.pdtt) from the local terrain file
- Use local terrain files for analysis
- Model a Constellation object
- Model a Chain object
Video guidance
Watch the following video. Then follow the steps below, which incorporate the systems and missions you work on (sample inputs provided).
Creating a new scenario
Create a new scenario with a run time of 24 hours.
- Launch the STK application (
).
- Click in the Welcome to STK dialog box.
- Enter the following in the STK: New Scenario Wizard:
- Click when you finish.
- Click Save (
) when the scenario loads. A folder with the same name as your scenario is created for you.
- Verify the scenario name and location in the Save As dialog box.
- Click .
Option | Value |
---|---|
Name |
TerrainChainsConstellations |
Start | Default |
Stop | Default |
Save () often!
Locating the U.S. Geological Survey DEM file
Find and copy the preinstalled
The DEM file used in this tutorial is located inside a compressed (zipped) file in the install directory. Take a moment to copy the file out of the zipped file archive. Do not extract the entire archive. Follow the instructions in the tutorial to use the file.
- Using File Explorer, browse to the location of the DEM file in the install directory:
- STK 12: C:\Program Files\AGI\STK 12\CodeSamples\CodeSamples.zip\SharedResources\Scenarios\Events
- STK 13: C:\Program Files\AGI\STK_ODTK 13\CodeSamples\STKCodeSamples.zip\SharedResources\Scenarios\Events
- Copy the file named hoquiam-e.dem.
- Paste the hoquiam-e.dem file on your desktop.
- Close File Explorer.
Using the DEM file for analysis and visualization
The STK application provides a foundation for analyzing and visualizing complex systems in the context of their missions. You'll use the DEM terrain data file you copied out of the zipped Code Samples file for both analytical and visual terrain in your scenario. The file contains digital elevation data for the Mount Saint Helens vicinity near the city of Hoquiam, Washington.
Turning off streaming terrain
By turning off
- Right-click on TerrainChainsContellations (
) in the Object Browser.
- Select Properties (
) in the shortcut menu.
- Select the Basic - Terrain page when the Properties Browser opens.
- Clear the Use terrain server for analysis check box in the Terrain Server panel.
- Click to accept your changes and keep the Properties Browser open.
Loading the local DEM file
Now, load the hoquiam-e.dem terrain data file on your local machine into the scenario for visualization and analysis.
- Click in the Custom Analysis Terrain Sources panel.
- Open the file type drop-down list when the Open dialog box opens.
- Select USGS DEM (DEM).
- Browse to your desktop.
- Select hoquiam-e.dem.
- Click to select the file and to close the Open dialog box.
- Click to accept your changes and keep the Properties Browser open.
Updating the local satellite database
If you do not have an internet connection, you can disregard this task. You'll still be able to insert GPS satellites using the default satellite database that is installed with your version of the STK application. The
If you're using an internet connection, use the following steps:
- Select the Basic - Database page.
- Make sure Satellite is showing in the Database Type drop-down list.
- Click .
- Click when the Update Satellite Database dialog box opens.
- Click to close the Information dialog box when the database update is complete.
- Click to close the Update Satellite Database dialog box.
- Click to accept your changes and to close the Properties Browser.
Creating a terrain inlay using the Imagery and Terrain Converter
Use the
Selecting the DEM file for conversion
Select your input data file for the source of the terrain data.
- Open the Utilities menu.
- Select Imagery and Terrain Converter....
- Select the Terrain Region page when the Imagery and Terrain Converter opens.
- Open the Terrain Source drop-down list in the Input Data panel.
- Select the path to the hoquiam-e.dem file.
Setting the terrain Output Data
Specify the file location and the filename of the terrain file to be created.
- Click the Directory ellipsis (
).
- Navigate to the location of your scenario (e.g. C:\Users\<username>\Documents\STK_ODTK 13\TerrainChainsConstellations when the Directory dialog box opens.
- Click to confirm your selection and to close the Directory dialog box.
- Enter StHelensTerrain in the Filename field in the Output Data panel.
- Click .
- Click to close the Imagery and Terrain Converter when finished.
Adding terrain and imagery files in Globe Manager
Globe Manager allows you to customize scenario globes with imagery and terrain data and to manage that data once it has been applied.
Opening Globe Manager
Open Globe Manager from the Globe Manager Toolbar in the 3D Graphics window.
- Bring the 3D Graphics window to the front.
- Click Globe Manager (
) in the 3D Graphics window toolbar.
- Click Add Terrain/Imagery (
) In the Hierarchy toolbar when Globe Manager opens.
- Select Add Terrain/Imagery... (
) in the shortcut menu.
The Hierarchy tab is used to add central bodies, image, and terrain items to a scenario.
Selecting the files to display in the 3D Graphics window
You can use the Globe Manager: Open Terrain and Imagery Data dialog box to select imagery and terrain data to display in the 3D Graphics window.
- Open the Path drop-down list when the Globe Manager: Open Terrain and Imagery Data dialog box opens.
- Select the path to your scenario (e.g. C:\Users\<username>\Documents\STK_ODTK 13\TerrainChainsConstellations).
- Select the check box for StHelensTerrain.pdtt.
- Click .
- Click when the Use Terrain for Analysis dialog box opens.
You're already using the hoquiam-e.dem file for analysis.
Viewing the terrain inlay in the 3D Graphics window
Gain situational awareness by viewing the terrain overlay in the 3D Graphics window.
- Bring the 3D Graphics window to the front.
- Right-click on StHelensTerrain.pdtt in Globe Manager.
- Select Zoom To (
) in the shortcut menu.
- Use your mouse to view the image and surrounding terrain.
Mount Saint Helens Terrain
Modeling the GPS satellite constellation
The Global Positioning System (GPS) is deployed and operated as a constellation of navigational satellites. A Constellation () object in the STK application allows you to group objects together for use with other analysis tools available in the STK software, such as Chains and Coverage capabilities. Constellation objects can be used to group together not just satellite constellations, but also ground station networks, groups of targets, and multiple sensors. A Constellation object allows you to apply constraints and a routing file that determine the criteria as to how the Constellation is used in Chain computations.
Inserting a Satellite object
Start by inserting a Satellite () object using the
) method.
- Bring the Insert STK Objects tool (
) to the front.
- Select Satellite (
) in the Insert STK Objects tool (
).
- Select the From Standard Object Database (
) method.
- Click
Inserting active GPS satellites
If you were analyzing navigational accuracy, dilution of precision, and so on, you would want to use the
- If you have an Internet connection, clear the Data Sources - Online check box when the Search Standard Object Data dialog box opens. This will only show satellite selections from your local database.
- Enter GPS in the Name or ID field.
- Select the Operational Status - Active check box. This selection will only show GPS satellites that are active or operational during your analysis time period.
- Click .
- Use CTRL+ Click to select only those GPS satellites whose Mission is listed as Navigation in the Results list.
- Select the Create Constellation from Selected check box in the Insert Options panel. This will automatically group all of the selected GPS satellites into a Constellation (
) object.
- Enter GPS_Satellites in the Name field in the Insert Options panel.
- Click .
- Click to close the Search Standard Object Data dialog box after your satellites have been propagated.
If you do not have an internet connection, the Online data source option will be unavailable and the Local option will be selected by default.
Viewing the objects assigned to the Constellation
Open the Constellation object's
- Open GPS_Satellites' (
) Properties (
).
- Select the Basic - Definition page when the Properties Browser opens.
You can see that the GPS Satellite () objects were placed in the Assigned Objects list when you created the Constellation (
) object in the Search Standard Object Data dialog box.
Updating the Constellation object's constraints
- Select the Constraints - Basic page.
- Open the From access position drop-down list in the Logical Restriction panel.
- Select At Least N.
- Enter 4 in the At Least N field.
- Click to accept your changes and to close the Properties Browser.
Although you aren't analyzing dilution of precision or navigation accuracy, you are testing the link for proper accesses. Therefore, you want to make sure that the test team can access at least four GPS satellites at all times. Anything less than four will not be considered a successful access.
Cleaning up the 2D and 3D Graphics windows
Although it's not required, you can adjust the properties of the 2D and 3D Graphics windows to have better situation awareness later in your scenario.
Clearing the satellite orbit tracks
Remove the visible orbit tracks from the 2D and 3D Graphics windows.
- Open TerrainChainsConstellations' (
) Properties (
).
- Select the 2D Graphics - Global Attributes page when the Properties Browser opens.
- Clear the Show Orbits/ Trajectories check box in the Vehicles panel.
- Click to accept your change and to close the Properties Browser.
Decluttering 3D Graphics window labels
Objects located on the surface of the terrain could be covered by the terrain, which makes them unreadable. You can fix this by making a change to the 3D Graphics window's properties.
- Bring the 3D Graphics window to the front.
- Click Properties (
) on the 3D Graphics window Default toolbar.
- Select the Details page when the Properties Browser opens.
- Select the Enable check box in the Label Declutter panel.
- Click to accept your change and to close the Properties Browser.
Inserting the test team's location
Insert a Place () object, which will simulate the location of the test team.
- Bring the Insert STK Objects tool to the front.
- Insert a Place (
) object using the Insert Default (
) method.
- Right-click on Place1 (
) in the Object Browser.
- Select Rename in the shortcut menu.
- Rename Place1 (
) to TestTeam.
Updating the test team's position
The test team is located in very mountainous terrain. Update the ) to reflect this.
- Open TestTeam's (
) Properties (
).
- Select the Basic - Position page when the Properties Browser opens.
- Set the following options in the Position panel:
- Click to accept your changes and to keep the Properties Browser open.
Option | Value |
---|---|
Latitude | 46.304 deg |
Longitude | -122.321 deg |
Height Above Ground | 6 ft |
Height Above Ground represents the height of Test Team's antenna if you were analyzing communication devices.
Using the terrain mask constraint
Use the
- Select the Constraints - Active page.
- Click Add new constraints (
) in the Active Constraints toolbar.
- Select Terrain Mask in the Constraint Name list when the Select Constraints to Add dialog box opens.
- Click .
- Click to close the Select Constraints to Add dialog box.
- Click to accept your changes and to close the Properties Browser.
Inserting the base team's location
The base team is located in the city of Morton, Washington.
- Bring the Insert STK Objects tool to the front.
- Insert a Place (
) object using the From City Database (
) method.
- Enter Morton in the Name field when the Search Standard Object Data dialog box opens.
- Click .
- Select Morton - Washington in the Results list.
- Click .
- Click to close the Search Standard Object Data dialog box.
Raising Morton's height above the ground
Although you aren't using an actual antenna in your analysis, the location of the antenna on the base team's building is located on the building's roof, which is 25 feet above ground level.
- Open Morton's (
) Properties (
).
- Select the Basic - Position page when the Properties Browser opens.
- Enter 25 ft in the Height Above Ground field in the Position panel.
- Click to accept your changes and to keep the Properties Browser open.
Defining an azimuth-elevation mask for analysis
Using the azimuth-elevation (AzEl) mask is another way of using analytical terrain in your analysis. The AzElMask properties, which are a part of the Basic properties for facilities, places and targets, enable you to
You can construct terrain-based AzEl masks by extending a number of rays in directions of constant azimuth outwards from the facility, place, or target location. Obstruction information is stored along each ray. During visibility computations, the STK software uses obstruction information from the two rays that bound the current direction of interest to compute an interpolated visibility metric.
Defining Morton's AzEk mask
Define an AzEl mask for Morton through its Properties.
- Select the Basic - AzElMask page.
- Set the following options:
- Click to accept your changes and to keep the Properties Browser open.
Option | Value |
---|---|
Use | Terrain Data |
Max range to consider | 160 km |
Use Mask for Access Constraint | Selected |
Using Terrain Data automatically creates and stores an AzEl mask file, which is an ASCII text file that is formatted for compatibility with the STK software and ends in an .aem extension, into your scenario folder. Selecting Use Mask for Access Constraint enables the AzEl Mask constraint located on the Constraints - Active page. Using the AzElMask constraint constrains access to a 360-degree field of view around the object being constrained.
Displaying Morton's AzEl mask
For situational awareness, you can display the AzEl mask in both the 2D Graphics and 3D Graphics windows at a specified number of steps from the minimum to the maximum range from Morton's antenna.
- Select the 2D Graphics - AzElMask page.
- Set the following properties in the At Range panel:
- Click to accept your changes and to close the Properties Browser.
Option | Value |
---|---|
Show | Selected |
Number of Steps | 16 |
Minimum Range | 0 km |
Maximum Range | 160 km |
Viewing the AzEl mask in the 3D Graphics window
View the AzEl mask in context in the 3D Graphics window.
- Bring the 3D Graphics window to the front.
- Right-click on Morton (
) in the Object Browser.
- Select Zoom To in the shortcut menu.
- Using your mouse, zoom out until you can see the visual representation of the AzEl mask.
Morton's Azimuth-Elevation Mask
Adding a communications satellite
When looking at the AzEl mask in the 3D Graphics window, it's clear that the base team cannot access test team directly through line-of-sight communication. In order for the test team to access the base team, a CubeSat communications satellite, which is located in a low Earth orbit (LEO), is needed.
Inserting a satellite object
Insert a Satellite () object to model the CubeSat satellite.
- Bring the Insert STK Objects tool to the front.
- Insert a Satellite (
) object using the Insert Default (
) method.
- Rename Satellite1 (
) to CubeSat.
Propagating the CubeSat satellite
You can set the orbital parameters of the CubeSat satellite using CubeSat's properties.
- Open CubeSat's (
) Properties (
).
- Select the Basic - Orbit page when the Properties Browser opens.
- Enter the following orbital parameters:
- Click
) and to close the Properties Browser.
to propagate CubeSat (
Option | Value |
---|---|
Semimajor Axis | 6997 km |
Eccentricity | 0.02 |
Inclination | 64.8 deg |
Argument of Perigee | 267 deg |
RAAN | 2 deg |
True Anomaly | 302 deg |
Building a Chain object
You are now ready to test access starting from the GPS satellite constellation and ending at Morton. You need a ) object to test all the links in the access. "Links" in the Chain can be individual objects like satellites, sensors, and places, or grouped objects, like constellations. By defining a Start object, an End object, and sets of paired object connections, the STK software can compute times when one object can access another through connections to one or more other objects.
Inserting the Chain object
Assign objects to the chain and define the order in which objects are accessed.
- Bring the Insert STK Objects tool to the front.
- Insert a Chain (
) object using the Insert Default (
) method.
- Rename Chain1 (
) to GPS_to_Morton.
Defining the start and end objects
Start by choosing the start object and end object in your chain.
- Open GPS_to_Morton's (
) Properties (
).
- Select the Basic - Definition page when the Properties Browser opens.
- Click the Start Object ellipsis (
).
- Select GPS_Satellites (
) when the Select Object dialog box opens.
- Click to close the Select Object dialog box.
- Click the End Object ellipsis (
).
- Select Morton (
) when the Select Object dialog box opens.
- Click to close the Select Object dialog box.
Creating the Chain object's first connection
After you choose the start and end objects in your chain, you need to build the chain's connections. It doesn't matter in which order you place the connections in the Connections list. What matters is the From Object must be able to access the To Object.
- Click in the Connections panel.
- Click the From Object ellipsis (
).
- Select GPS_Satellites (
) when the Select Object dialog box opens.
- Click to close the Select Object dialog box.
- Click the To Object ellipsis (
).
- Select TestTeam (
) when the Select Object dialog box opens.
- Click to close the Select Object dialog box.
Creating the Chain object's second connection
When the test team accesses at least four GPS satellites, it will upload its fix to the CubeSat satellite.
- Click in the Connections panel.
- Click the To Object ellipsis (
).
- Select CubeSat (
) when the Select Object dialog box opens.
- Click to close the Select Object dialog box.
Creating the Chain object's final connection
The CubeSat satellite will download test team's fix to the base team located in Morton.
- Click in the Connections panel.
- Click the To Object ellipsis (
).
- Select Morton (
) when the Select Object dialog box opens.
- Click to close the Select Object dialog box.
- Click to accept your changes and to close the Properties Browser.
Computing the Chain object accesses
You are ready to compute the Chain object's accesses.
- Select GPS_to_Morton (
) in the Object Browser.
- Select the Chain menu.
- Select Compute Accesses.
Generating a Complete Chain Access report
Generate a Complete Chain Access report to analyze whether or not you have accesses during your scenario analysis period. A complete chain access reports the time intervals for which the chain is completed. These intervals are computed by overlapping all the strand accesses.
- Right-click GPS_to_Morton (
) in the Object Browser.
- Select Report & Graph Manager... (
) in the shortcut menu.
- Select the Complete Chain Access (
) report in the Installed Styles folder (
) in the Styles panel when the Report & Graph Manager opens.
- Click .
- Right-click on the Start Time of the longest access duration.
- Select Start Time in the shortcut menu.
- Select Set Animation Time in the Start Time submenu.
You could use this report to schedule times during the next 24 hours, during which time you will have windows of opportunity to transmit test team's location to the base team.
Viewing the accesses in the 3D Graphics window
You can view the complete chain access in the 3D Graphics window.
- Bring the 3D Graphics window to the front.
- Zoom to Morton (
).
- Using your mouse, maneuver your view to get an idea of all the connections in your chain.
Complete chain access
Saving your work
Clean up and close out your scenario.
- Close any open reports, properties, and the Report & Graph Manager.
- Save (
) your work.
Summary
You conducted a line-of-sight test between a constellation of GPS satellites, a ground based test team located in mountainous terrain, a CubeSat and a base team located in Morton, Washington. You loaded a USGS DEM file to analyze the impact of local terrain on accesses between the GPS constellation, the test team, the CubeSat and the base team. Using the Terrain Region Converter, you changed the DEM file into a terrain inlay file and used that to visualize the terrain in the 3D Graphics window and to create an azimuth-elevation mask. Next, you created a constellation of GPS satellites, used Place objects to represent the teams' locations, and a Chain object to create connections between all the objects. Finally, you visualized the complete chain access linking the components together and generated a Complete Chain Access report, which could be used for further mission planning.