kendrick-oppong/geoskills/terrain-and-elevation-analysis

Claude Code and agent skill by kendrick-oppong/geoskills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when analyzing digital elevation models (DEMs) — slope, aspect, hillshade, viewshed, flow direction/accumulation and watershed delineation, and choosing/resampling DEM sources (SRTM, Copernicus DEM, LiDAR-derived DTM).

Install

npx vskill@latest install kendrick-oppong/geoskills/terrain-and-elevation-analysis

SKILL.md

The same SKILL.md was published earlier as kendrick-oppong/geoskills/terrain-and-elevation-analysis.

Terrain & Elevation Analysis

When to use this skill

  • "Compute slope/aspect for this region" / hillshade generation for a basemap
  • Viewshed ("what's visible from this point") or line-of-sight analysis
  • Watershed delineation, flow accumulation, or other hydrological terrain analysis
  • Choosing a DEM source and resolution for a given analysis area

Core concepts

DEM source selection:

SourceResolutionNotes
SRTM~30m (1 arc-second)Free, near-global (60°N–56°S), voids in some rugged/water areas need filling
Copernicus DEM (GLO-30/GLO-90)30m/90mNewer, generally cleaner than SRTM, good global default for modern work
National LiDAR-derived DTMOften 1m or betterBest accuracy where available; coverage is patchy and licensing varies by country/agency
ASTER GDEM~30mMore artifact-prone than SRTM/Copernicus in practice; rarely the best first choice today

Derived products and what they need:

  • Slope/aspect: computed from a local neighborhood (typically 3×3 window) on the DEM — sensitive to DEM resolution and noise; a noisy low-resolution DEM produces speckled, unusable slope output without pre-smoothing.
  • Hillshade: a lighting simulation (sun azimuth/altitude parameters) over the DEM — purely cartographic in most WebGIS contexts (basemap relief shading), not an analytical product.
  • Viewshed: requires the DEM plus an observer point/height and target height; accuracy is bounded by DEM resolution — a 30m DEM cannot resolve visibility blocked by a building or a single tree.
  • Flow direction/accumulation/watershed delineation: requires a hydrologically-conditioned DEM (sinks/depressions filled or breached) before running flow algorithms — running flow accumulation on a raw, unfilled DEM produces broken, discontinuous drainage networks.

Checklist

  • [ ] Is the DEM resolution appropriate for the analysis scale — slope/viewshed on a 30m DEM cannot represent sub-30m features (buildings, small terrain breaks)?
  • [ ] Has the DEM been reprojected to a projected (metric) CRS before slope/aspect/flow calculations — computing these directly on geographic (degree-based) DEMs produces distorted results (see crs-and-reprojection)?
  • [ ] For hydrological analysis, has the DEM been depression-filled/breached (richdem, whitebox, GRASS r.fill.dir, or GDAL-adjacent tools) before running flow direction/accumulation?
  • [ ] For viewshed analysis, are observer/target heights (not bare ground elevation) correctly added to the DEM elevation value at those points?
  • [ ] Are DEM voids/nodata gaps (common in SRTM over water bodies and steep terrain) filled or explicitly masked before analysis, rather than silently propagating as spurious slope/aspect artifacts at the gap edges?
  • [ ] Is vertical datum consistency checked when combining a DEM with other elevation data (e.g., ellipsoidal heights from GNSS vs orthometric/geoid-referenced DEM elevations differ by tens of meters in some regions)?

Common pitfalls

  • Running flow accumulation on a raw, unfilled DEM: produces disconnected/broken drainage networks — always hydrologically condition the DEM first.
  • Computing slope/aspect in a geographic (lat/lon degree) CRS: distorts the neighborhood distance calculation since a degree of longitude isn't a constant real-world distance — reproject to a metric CRS first.
  • Treating DEM elevation as ground truth for objects that aren't ground: SRTM/Copernicus DEMs are often a blend that includes vegetation/building canopy height in places (especially SRTM) — a "bare earth" assumption can be wrong in forested/urban areas; a LiDAR-derived DTM (ground-only) is a meaningfully different product from a DSM (surface, includes canopy/buildings).
  • Ignoring vertical datum differences: mixing GNSS-derived ellipsoidal heights with geoid-referenced DEM elevations without a geoid correction introduces a systematic offset that can be tens of meters in some regions.
  • Expecting a 30m DEM to resolve fine-scale visibility/hydrology: viewshed and drainage results are only as fine-grained as the input DEM's actual resolution, not the display resolution of the map.

Reference snippets

bash
# Slope + hillshade with GDAL, after reprojecting to a metric CRS
gdaldem slope dem_utm.tif slope.tif
gdaldem hillshade dem_utm.tif hillshade.tif -az 315 -alt 45
python
# Depression filling before flow analysis (richdem)
import richdem as rd
dem = rd.LoadGDAL("dem_utm.tif")
filled = rd.FillDepressions(dem, epsilon=True, in_place=False)
flow_accum = rd.FlowAccumulation(filled, method='D8')

Related skills

  • crs-and-reprojection — reprojecting a DEM to a metric CRS before analysis
  • remote-sensing-imagery-processing — where DEMs are frequently combined with spectral imagery (e.g. topographic correction)
  • cesium-3d-geospatial — rendering the same terrain data, as distinct from analyzing it

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kendrick-oppong/geoskills/terrain-and-elevation-analysis/badge)](https://verified-skill.com/skills/kendrick-oppong/geoskills/terrain-and-elevation-analysis)

Something wrong with this skill or its page? Tell us.