https://github.com/bast/pyngl-streamline
Script to generate colored streamline plots using PyNGL.
https://github.com/bast/pyngl-streamline
Last synced: about 1 year ago
JSON representation
Script to generate colored streamline plots using PyNGL.
- Host: GitHub
- URL: https://github.com/bast/pyngl-streamline
- Owner: bast
- License: bsd-3-clause
- Created: 2014-06-16T20:46:33.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2016-11-21T11:49:42.000Z (over 9 years ago)
- Last Synced: 2025-01-28T02:42:38.993Z (over 1 year ago)
- Language: Python
- Size: 1.47 MB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](../master/LICENSE)
# pyngl-streamline
Script to generate colored streamline plots
using [PyNGL](http://www.pyngl.ucar.edu/).
Licensed under [BSD-3](../master/LICENSE).
## 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
```shell
$ 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:
```shell
$ python streamline.py --help
```
## Example
Example result using the [example.sh](../master/example/example.sh) script:
