Script to generate colored streamline plots using PyNGL. Licensed under BSD-3.
We recommend to follow https://www.pyngl.ucar.edu/Download/. If you have Anaconda already installed, we recommend to install PyNGL using Anaconda. In case you have neither Anaconda nor Miniconda, we recommend installing PyNGL using Miniconda (faster and smaller disk usage).
$ python streamline.py --data=data_file
The data file contains 4 floats in each line: x, y, u, v, where u and v are the vector components along coordinates x and y. If a fifth column is present, the script will use that value to color the streamlines (you decide what that value means).
The script colors the streamlines according to the vector norm (and using --rgb_min, --rgb_max, and --smax).
To see all available options, please run:
$ python streamline.py --help
Example result using the example.sh script: