/pyngl-streamline

Script to generate colored streamline plots using PyNGL.

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

License

pyngl-streamline

Script to generate colored streamline plots using PyNGL. Licensed under BSD-3.

Installation of PyNGL

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).

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

Example result using the example.sh script:

alt text