steadfastasart/geoscience-skills/landlab
Claude Code and agent skill by steadfastasart/geoscience-skills
- community
Checking that the SKILL.md file is still in the repository.
Landscape evolution and surface process modelling in Python. Build 2D numerical models for erosion, hydrology, soil transport, and geomorphology. Use when the agent needs to: (1) Model landscape evolution over time, (2) Simulate river/stream erosion, (3) Route water flow across terrain, (4) Model hillslope diffusion processes, (5) Simulate weathering and soil production, (6) Analyze drainage networks, (7) Combine multiple geomorphic processes, (8) Load/save DEM data for modeling.
Install
npx vskill@latest install steadfastasart/geoscience-skills/landlabSKILL.md
Landlab - Surface Process Modelling
Quick Reference
Grid Types
| Grid | Use Case | |
|---|---|---|
RasterModelGrid | Regular rectangular grids (most common) | |
HexModelGrid | Hexagonal grids (isotropic flow) | |
VoronoiDelaunayGrid | Irregular point distributions | |
NetworkModelGrid | Channel networks only |
Key Concepts
Fields and Boundaries
Essential Operations
Flow Routing
Stream Power Erosion
Hillslope Diffusion
Load/Save DEM Data
Multi-Component Model
When to Use vs Alternatives
| Use Case | Tool | Why | |
|---|---|---|---|
| Landscape evolution modelling | Landlab | Modular components, Python-native | |
| Basin-scale stratigraphy | Badlands | Focus on sediment deposition and basin fill | |
| Topographic analysis (MATLAB) | TopoToolbox | Mature MATLAB toolkit for DEM analysis | |
| Simple diffusion/erosion | Custom numpy | Fewer dependencies for basic models | |
| Coupled surface-subsurface | Landlab | Components for hydrology + geomorphology | |
| Channel network extraction | Landlab or pysheds | Both handle flow routing well | |
| Soil production and transport | Landlab | Dedicated weathering and soil components | |
| Teaching geomorphology | Landlab | Clear component API, good tutorials |
Choose Landlab when: You need a modular, component-based framework for landscape evolution modelling that combines multiple surface processes (erosion, diffusion, flow routing, weathering) in a single simulation.
Choose Badlands when: Your focus is on basin-scale landscape evolution with emphasis on sediment transport and stratigraphic architecture.
Choose custom numpy when: You only need a simple 2D diffusion or stream power model without the overhead of a full component framework.
Common Workflows
Landscape Evolution Model with Erosion and Uplift
- [ ] Create
RasterModelGridwith appropriate dimensions and spacing - [ ] Initialize
topographic__elevationfield (flat + noise, or load DEM) - [ ] Set boundary conditions (open one edge as outlet, close others)
- [ ] Create
FlowAccumulatorwith chosen flow director (D8 or MFD) - [ ] Create
StreamPowerEroderwith erosion coefficient K_sp - [ ] Create
LinearDiffuserfor hillslope processes - [ ] Define time step
dtand total runtime; choose uplift rate - [ ] Run time loop: flow routing, erosion, diffusion, then uplift
- [ ] Save snapshots at intervals with
write_netcdf()orwrite_esri_ascii() - [ ] Visualize final topography with
grid.imshow() - [ ] Analyze drainage area and channel profiles
- [ ] Extract river long profiles for steepness analysis
Common Issues
| Issue | Solution | |
|---|---|---|
| Flat areas block flow | Add small random noise to initial topography | |
| Boundary effects | Ensure at least one open boundary edge for drainage | |
| Unstable erosion | Reduce dt or K_sp; check Courant condition | |
| Wrong field name | Use exact Landlab names: 'topographic__elevation', 'drainage_area' | |
| Memory with large grids | Reduce grid resolution or use NetworkModelGrid for channels only |
Tips
- Set boundaries first - before adding components
- Use core_nodes - excludes boundary nodes for operations
- Check field names - components expect specific names (e.g., 'topographic__elevation')
- Start simple - add components incrementally and verify each
References
- [Components Reference](references/components.md) - Available components by category
- [Grids Reference](references/grids.md) - Grid types and configuration
Scripts
- [scripts/erosion_model.py](scripts/erosion_model.py) - Basic erosion model template
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinglandlab/SKILL.md
Popularity
- 7-day trend score
- 0
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
[](https://verified-skill.com/skills/steadfastasart/geoscience-skills/landlab)