grd2stream User Manual

Homepage: https://scienceflightplanner.github.io/grd2stream/

What is grd2stream?

grd2stream is a plugin that generates streamlines from gridded 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 containing X and Y component data
  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 & display the flowline as a vector layer

Configuration Options

Input Parameters

Parameter Description Default
Raster 1 X-component dataset Required
Raster 2 Y-component dataset Required
Backward Steps Trace flowline in both upstream & 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 & 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.