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