Main Content

addCustomTerrain

Add custom terrain data

Description

addCustomTerrain(terrainName,files) adds terrain data specified by files for use with UAV scenarios. Add the terrain to uavScenario objects using the addMesh object function. Custom terrain data is available for current and future sessions of MATLAB® until you call removeCustomTerrain.

addCustomTerrain(___,Name,Value) adds custom terrain data with additional options specified by one or more name-value pairs.

Input Arguments

collapse all

User-defined identifier for terrain data, specified as a string scalar or a character vector.

Data Types: char | string

List of DTED files, specified as a string scalar, a character vector or a cell array of character vectors.

Note

If you specify multiple files, they must combine to define a complete rectangular geographic region. If not, you must set the name-value pair 'FillMissing' to 'true'.

Data Types: char | string

Name-Value Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example: 'FillMissing',true

Fill data of missing files with value 0, specified as true or false. Missing file values are required to complete a rectangular geographic region with the input files.

Data Types: logical

Name of folder to write extracted terrain files to, specified as a character vector or a string scalar. The folder must exist and have write permissions. By default, addCustomTerrain writes extracted terrain files to a temporary folder that it generates using the tempname function.

Data Types: char | string

Tips

  • You can find and download DTED files by using EarthExplorer, a data portal provided by the US Geological Survey (USGS). From the list of data sets, search for DTED files by selecting Digital Elevation, SRTM, and then SRTM 1 Arc-Second Global and SRTM Void Filled.

Introduced in R2021a