source: trunk/UTIL/PYTHON/planetoplot_v2/examples/vector.py @ 1004

Last change on this file since 1004 was 982, checked in by aslmd, 12 years ago

UTIL PYTHON planetoplot_v2. Finished the job about striding. Possibility to stride vectors and not field. Updated vector.py

  • Property svn:executable set to *
File size: 628 bytes
Line 
1#! /usr/bin/env python
2from ppclass import pp
3
4u = pp()
5u.file = "/home/aymeric/Big_Data/DATAPLOT/diagfired.nc"
6u.var = ["temp","phisinit","u","v"]
7u.vargoal = ["main","contour","vector","vector"]
8u.t = "0.5,0.8"
9u.z = "50000"
10u.filename = "vector"
11
12# stride both x and y
13# this impacts field + vector
14u.stridex = 3
15u.stridey = 3
16u.getplot()
17u.stridex = 1 # (reinitialise)
18u.stridey = 1 # (reinitialise)
19
20# stride vectors only
21# not field (here topography)
22u.stridevecx = 3
23u.stridevecy = 3
24u.getplot()
25
26
27
28u.z = "50"
29u.filename = "myplot"
30u.getplot()
31
32
33u.p[0].colorb = "jet"
34u.p[0].trans = 0.0
35u.p[0].back = "vis"
36
37u.makeplot()
Note: See TracBrowser for help on using the repository browser.