I am trying to replicate the “Planning Radar Network Coverage over Terrain” example in MATLAB and want to know how can I change the region of this example?

조회 수: 5 (최근 30일)
So as the question asks, I want to change the region of this example from southboulder, TX to any other region, for instance new york. How can I do that? So far I have tried:
```
dtedfile = "n39_w106_3arc_v2.dt1";
attribution = "SRTM 3 arc-second resolution. Data available from the U.S. Geological Survey.";
addCustomTerrain("newyork", dtedfile, "Attribution", attribution)
viewer = siteviewer("terrain", "newyork");
nyork_peak = txsite("Name", "newyork", ...
"Latitude", (#), ...
"Longitude", (#) );
>> show(nyork_peak)
```
After executing the last comment, I encounter an error:
```
Error using terrain.internal.TerrainSource/tileInterpolation
Terrain 'new york' is limited to latitudes in range [39,40] and longitudes in range [-106,-105].
Error in terrain.internal.TerrainSource/query
Error in terrain.internal.TerrainSource.queryTerrain
Error in rfprop.internal.AntennaSiteCoordinates/computeGroundHeight (line 588)
Z = terrain.internal.TerrainSource.queryTerrain(...
Error in rfprop.internal.AntennaSiteCoordinates/get.GroundHeightAboveGeoid (line 324)
Z = coords.computeGroundHeight('geoid');
Error in rfprop.internal.AntennaSiteCoordinates/computeSurfaceHeight (line 546)
Z = coords.GroundHeightAboveGeoid;
Error in rfprop.internal.AntennaSiteCoordinates/get.SurfaceHeightAboveGeoid (line 368)
Z = coords.computeSurfaceHeight('geoid');
Error in rfprop.AntennaSite/show (line 183)
'<br />' 'Surface elevation: ' char(compose(numericFormat,round(coords.SurfaceHeightAboveGeoid(k)))) ' m'];
```

답변 (1개)

millercommamatt
millercommamatt 2022년 9월 8일
You need the correct SRTM elevation file for the area you're interested in. These DTED files are only 1x1 degree. You're specifying a lat/lon outside what that file has. The 'n39_w106' in the prefix of the filename tells you the lower left corner. I suggesting searching how to get the data. It's a bit of a pain if you want the whole set. USGS Earth Explorer seems set up to prevent users from grabbing datasets in bulk.
  댓글 수: 2
millercommamatt
millercommamatt 2022년 9월 20일
Chang the name of the dtedfile variable to match your new file. Then, make sure the site you specify via txsite is within that file's area.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Environment and Clutter에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by