grd2stream QGIS Plugin - User Guide

What is grd2stream?

grd2stream is a QGIS plugin that generates flowlines from velocity grid data. It allows you to:

Platform Support:

Getting Started

First-Time Setup

When you first run the plugin on Linux or macOS, it will check for required components:

  1. If needed, the plugin will offer to install GMT6 (via Miniconda) into an isolated environment
  2. It will also install the grd2stream command-line utility
  3. These installations won't affect any existing GMT installations on your system

Basic Usage

  1. Click the grd2stream icon in the QGIS toolbar
  2. Select two raster layers representing X and Y velocity components
  3. Configure your parameters (or load a preset)
  4. Choose how to select your seed point (map click or manual coordinates)
  5. The plugin will calculate and display the flowline as a vector layer

Configuration Options

Input Parameters

Parameter Description Default
Raster 1 X-component velocity grid Required
Raster 2 Y-component velocity grid Required
Backward Steps Trace flowline in both upstream and downstream directions Off
Step Size Distance increment for integration steps min(x_inc, y_inc) / 5
Max Integration Time Maximum time for integration process Unlimited
Max Steps Maximum number of steps to calculate 10,000
Output Format Data columns in output layer x y dist

Output Formats

Working with Presets

Save time by storing and reusing configurations:

Troubleshooting

Windows Users: Currently, the plugin can only display the command that would be executed. Full Windows support is under development.

Common Issues

For detailed logs, check the QGIS Python console.

License Information

grd2stream QGIS plugin is licensed under GNU GPL v3.

The plugin includes the grd2stream command-line utility by Thomas Kleiner, licensed under the BSD 3-Clause License. See the full license text in lib/LICENSE.txt.


© 2013-2025 Thomas Kleiner & ScienceFlightPlanner-Team