Skip to content

Script to generate colored streamline plots using PyNGL.

License

Notifications You must be signed in to change notification settings

sthavishtha/pyngl-streamline

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Script to generate colored streamline plots using PyNGL.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.2%
  • Shell 2.8%